Re: [net-next PATCH V2 5/5] samples/bpf: like LLC also verify and allow redefining CLANG command

2016-04-26 Thread Jesper Dangaard Brouer
On Tue, 26 Apr 2016 10:36:10 -0700 Alexei Starovoitov wrote: > On Tue, Apr 26, 2016 at 06:27:32PM +0200, Jesper Dangaard Brouer wrote: > > Users are likely to manually compile both LLVM 'llc' and 'clang' > > tools. Thus, also allow redefining CLANG and verify command exist. > > > > Makefile imp

[no subject]

2016-04-26 Thread Leon Romanovsky
, Doug Ledford Bcc: Subject: Re: [PATCH net] RDMA/nes: don't leak skb if carrier down Reply-To: l...@kernel.org In-Reply-To: <1461529139-28582-1-git-send-email...@strlen.de> On Sun, Apr 24, 2016 at 10:18:59PM +0200, Florian Westphal wrote: > Alternatively one could free the skb, OTOH I don't thi

Re: [PATCH net] net/mlx4: Avoid wrong virtual mappings

2016-04-26 Thread Leon Romanovsky
On Mon, Apr 25, 2016 at 04:34:47PM +0300, Haggai Abramovsky wrote: > -int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, > -struct mlx4_buf *buf, gfp_t gfp) > +static int mlx4_buf_direct_alloc(struct mlx4_dev *dev, int size, > + struct ml

Re: [net-next PATCH V2 3/5] samples/bpf: add a README file to get users started

2016-04-26 Thread Jesper Dangaard Brouer
On Tue, 26 Apr 2016 10:31:06 -0700 Alexei Starovoitov wrote: > On Tue, Apr 26, 2016 at 06:27:22PM +0200, Jesper Dangaard Brouer wrote: > > + > > +Manually compiling LLVM with 'bpf' support > > +-- > > + > > +In some LLVM versions the BPF target were marked

Re: [RFC PATCH 4/5] bnxt: Add support for segmentation of tunnels with outer checksums

2016-04-26 Thread Michael Chan
On Tue, Apr 19, 2016 at 12:06 PM, Alexander Duyck wrote: > This patch assumes that the bnxt hardware will ignore existing IPv4/v6 > header fields for length and checksum as well as the length and checksum > fields for outer UDP and GRE headers. > > I have no means of testing this as I do not have

[PATCH v2] net: Add Qualcomm IPC router

2016-04-26 Thread Bjorn Andersson
From: Courtney Cavin Add an implementation of Qualcomm's IPC router protocol, used to communicate with service providing remote processors. Signed-off-by: Courtney Cavin Signed-off-by: Bjorn Andersson [bjorn: Cope with 0 being a valid node id and implement RTM_NEWADDR] Signed-off-by: Bjorn And

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Anup Patel
On Wed, Apr 27, 2016 at 1:11 AM, Andrew Lunn wrote: > On Tue, Apr 26, 2016 at 09:24:34PM +0200, Arnd Bergmann wrote: >> On Tuesday 26 April 2016 20:23:35 Andrew Lunn wrote: >> > > A more complex problem would be having a PHY driver for a device >> > > that can be either an ethernet phy or some oth

Re: [PATCH -next] net: w5100: support W5500

2016-04-26 Thread David Miller
From: Akinobu Mita Date: Wed, 27 Apr 2016 05:43:48 +0900 > This adds support for W5500 chip. Applied, thanks.

Re: [PATCH net-next] net-rfs: fix false sharing accessing sd->input_queue_head

2016-04-26 Thread David Miller
From: Eric Dumazet Date: Tue, 26 Apr 2016 15:30:07 -0700 > From: Eric Dumazet > > sd->input_queue_head is incremented for each processed packet > in process_backlog(), and read from other cpus performing > Out Of Order avoidance in get_rps_cpu() > > Moving this field in a separate cache line k

Re: [net-next 08/15] i40e: Allow user to change input set mask for flow director

2016-04-26 Thread David Miller
From: Jeff Kirsher Date: Tue, 26 Apr 2016 13:55:41 -0700 > From: Kiran Patil > > This patch implements feature, which allows user to change > input set mask for flow director using side-band channel. > This patch adds definition of FLOW_TYPE_MASK into the header file. > With this patch, user ca

Re: [PATCH v5 09/21] IB/hns: Add hca support

2016-04-26 Thread oulijun
On 2016/4/26 22:18, Leon Romanovsky wrote: > On Tue, Apr 26, 2016 at 02:34:44PM +0800, oulijun wrote: >> On 2016/4/24 15:54, Leon Romanovsky wrote: >>> On Sat, Apr 23, 2016 at 06:26:47PM +0800, Lijun Ou wrote: This patch mainly setup hca for RoCE. it will do a series of initial works as f

Re: [PATCH v2 net-next 11/13] Documentation: Bindings: Update DT binding for separating dsaf dev support

2016-04-26 Thread Yisen Zhuang
Hi Rob and David, Please see my comments inline. David have merged this series to net-next, but we need to modify some codes according to Rob's comments. I am not sure if i need to send V3 for this series, or separate patches of documentation to independent series and generate a new patch for h

Re: [PATCH v5 09/21] IB/hns: Add hca support

2016-04-26 Thread oulijun
On 2016/4/26 22:25, Jiri Pirko wrote: > Tue, Apr 26, 2016 at 04:18:21PM CEST, l...@kernel.org wrote: >> On Tue, Apr 26, 2016 at 02:34:44PM +0800, oulijun wrote: >>> On 2016/4/24 15:54, Leon Romanovsky wrote: > > > > +int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, u32 *obj) > +

RE: [PATCH v8 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-04-26 Thread Dexuan Cui
> From: Cathy Avery [mailto:cav...@redhat.com] > Sent: Wednesday, April 27, 2016 0:19 > To: Dexuan Cui ; gre...@linuxfoundation.org; > da...@davemloft.net; netdev@vger.kernel.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; Jason Wang > ; KY Srinivasan ; Haiyang Zh

Re: [PATCH] net: phy: at803x: only the AT8030 needs a hardware reset on link change

2016-04-26 Thread Florian Fainelli
Le 26/04/2016 10:44, Timur Tabi a écrit : > Commit 13a56b44 ("at803x: Add support for hardware reset") added a > work-around for a hardware bug on the AT8030. However, the work-around > was being called for all 803x PHYs, even those that don't need it. > Function at803x_link_change_notify() checks

linux-next: manual merge of the net-next tree with the net tree

2016-04-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/en_main.c between commit: d8edd2469ace ("et/mlx5e: Fix minimum MTU") from the net tree and commit: 0e405443e803 ("net/mlx5e: Improve set features ndo resiliency") from the n

linux-next: manual merge of the net-next tree with the net tree

2016-04-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/macsec.c between commit: 748164802c1b ("macsec: add missing macsec prefix in uapi") from the net tree and commit: f60d94c00968 ("macsec: use nla_put_u64_64bit()") from the net-next tree. I fixed it up

Re: [PATCH net-next 9/9] taskstats: use the libnl API to align nlattr on 64-bit

2016-04-26 Thread Balbir Singh
On 23/04/16 01:31, Nicolas Dichtel wrote: > Goal of this patch is to use the new libnl API to align netlink attribute > when needed. > The layout of the netlink message will be a bit different after the patch, > because the padattr (TASKSTATS_TYPE_STATS) will be inside the nested > attribute inst

[PATCH 3.2 085/115] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2016-04-26 Thread Ben Hutchings
3.2.80-rc1 review patch. If anyone has any objections, please let me know. -- From: Vijay Pandurangan [ Upstream commit ce8c839b74e3017996fad4e1b7ba2e2625ede82f ] Packets that arrive from real hardware devices have ip_summed == CHECKSUM_UNNECESSARY if the hardware verified the

Re: [PATCH net-next] net-rfs: fix false sharing accessing sd->input_queue_head

2016-04-26 Thread Tom Herbert
On Tue, Apr 26, 2016 at 3:30 PM, Eric Dumazet wrote: > From: Eric Dumazet > > sd->input_queue_head is incremented for each processed packet > in process_backlog(), and read from other cpus performing > Out Of Order avoidance in get_rps_cpu() > > Moving this field in a separate cache line keeps it

[PATCH net-next 1/1] pch_gbe: replace private tx ring lock with common netif_tx_lock

2016-04-26 Thread Francois Romieu
pch_gbe_tx_ring.tx_lock is only used in the hard_xmit handler and in the transmit completion reaper called from NAPI context. Signed-off-by: Francois Romieu --- CONFIG_COMPILE_TESTed drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 2 -- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_mai

Re: [PATCH V3] net: stmmac: socfpga: Remove re-registration of reset controller

2016-04-26 Thread Marek Vasut
On 04/26/2016 11:22 PM, Joachim Eastwood wrote: > On 26 April 2016 at 14:47, Marek Vasut wrote: >> On 04/26/2016 02:26 PM, Joachim Eastwood wrote: >>> On 26 April 2016 at 00:55, Marek Vasut wrote: On 04/25/2016 08:11 PM, Joachim Eastwood wrote: > On 21 April 2016 at 14:11, Marek Vasut w

[PATCH net-next] net-rfs: fix false sharing accessing sd->input_queue_head

2016-04-26 Thread Eric Dumazet
From: Eric Dumazet sd->input_queue_head is incremented for each processed packet in process_backlog(), and read from other cpus performing Out Of Order avoidance in get_rps_cpu() Moving this field in a separate cache line keeps it mostly hot for the cpu in process_backlog(), as other cpus will o

[GIT] Networking

2016-04-26 Thread David Miller
1) Handle v4/v6 mixed sockets properly in soreuseport, from Craig Gallak. 2) Bug fixes for the new macsec facility (missing kmalloc NULL checks, missing locking around netdev list traversal, etc.) from Sabrina Dubroca. 3) Fix handling of host routes on ifdown in ipv6, from David Ahern. 4)

Darlehen anbieten. Kontaktieren Sie uns für weitere Informationen

2016-04-26 Thread Kredit-Firma
Guten Tag, Wir möchten Sie darüber informieren, dass wir anbieten, Geschäftdarlehen, Projektfinanzierung und Immobilienfinanzierung bei 1% Jahreszins. Für weitere Informationen kontaktieren Sie uns bitte über unsere offizielle E-Mail: eurofinanc...@gmail.com. Sie sind verpflichtet, Ihre Kredit

Quote Request

2016-04-26 Thread Al Waleed Co.
Hi, My name is Al Waleed From Al Waleed trading company Dubai we got you recommendation from one of your customer, so we decided to order a product from you. Kindly get back to us if you can ship to us in Dubai so that we can get back to you with our products needed from you and other requirem

Quote Request

2016-04-26 Thread Al Waleed Co.
Hi, My name is Al Waleed From Al Waleed trading company Dubai we got you recommendation from one of your customer, so we decided to order a product from you. Kindly get back to us if you can ship to us in Dubai so that we can get back to you with our products needed from you and other requirem

Quote Request

2016-04-26 Thread Al Waleed Co.
Hi, My name is Al Waleed From Al Waleed trading company Dubai we got you recommendation from one of your customer, so we decided to order a product from you. Kindly get back to us if you can ship to us in Dubai so that we can get back to you with our products needed from you and other requirem

Re: [PATCH -next] pch_gbe: fix bogus trylock conversion

2016-04-26 Thread David Miller
From: Florian Westphal Date: Tue, 26 Apr 2016 23:14:30 +0200 > Should have converted 'if (trylock)' to 'lock'. > > Fixes: a6086a893718db ("drivers: net: remove NETDEV_TX_LOCKED") > Signed-off-by: Florian Westphal > --- > I re-checked the series and this was the only place where I messed up. A

Re: [PATCH net-next V1 00/11] Mellanox 100G extending mlx5 ethtool support

2016-04-26 Thread David Miller
From: Saeed Mahameed Date: Tue, 26 Apr 2016 23:55:03 +0300 > It will be a nightmare to rollback in such case. What if the rollback failed > ? It is absolutely essential to handle this properly. Which means you must have a prepare/commit model, wherein the prepare phase makes sure to pre-alloc

Re: [PATCH] bpf: fix double-fdput in replace_map_fd_with_map_ptr()

2016-04-26 Thread David Miller
From: Jann Horn Date: Tue, 26 Apr 2016 22:26:26 +0200 > When bpf(BPF_PROG_LOAD, ...) was invoked with a BPF program whose bytecode > references a non-map file descriptor as a map file descriptor, the error > handling code called fdput() twice instead of once (in __bpf_map_get() and > in replace_m

Re: [PATCH net-next] macvlan: fix failure during registration v3

2016-04-26 Thread Mahesh Bandewar
[...] >> > -destroy_port: >> > - port->count -= 1; >> > - if (!port->count) >> > - macvlan_port_destroy(lowerdev); >> I think you still need this when it fails netdev_upper_dev_link(). The >> only thing you should remove is the label. > > I don't think so. I think the doub

[PATCH net-next 0/5] stmmac: dwmac-socfpga refactor+cleanup

2016-04-26 Thread Joachim Eastwood
This patch aims to remove the init/exit callbacks from the dwmac- socfpga driver and instead use standard PM callbacks. Doing this will also allow us to cleanup the driver. Eventually the init/exit callbacks will be deprecated and removed from all drivers dwmac-* except for dwmac-generic. Drivers

[PATCH net-next 1/5] stmmac: let remove/resume/suspend functions take device pointer

2016-04-26 Thread Joachim Eastwood
Change stmmac_remove/resume/suspend to take a device pointer so they can be used directly by drivers that doesn't need to perform anything device specific. This lets us remove the PCI pm functions and later simplifiy the platform drivers. Signed-off-by: Joachim Eastwood Tested-by: Marek Vasut -

[PATCH net-next 2/5] stmmac: dwmac-socfpga: add PM ops and resume function

2016-04-26 Thread Joachim Eastwood
Implement the needed PM callbacks in the driver instead of relying on the init/exit hooks in stmmac_platform. This gives the driver more flexibility in how the code is organized. Eventually the init/exit callbacks will be deprecated in favor of the standard PM callbacks and driver remove function.

[PATCH net-next 5/5] stmmac: dwmac-socfpga: kill init() and rename setup() to set_phy_mode()

2016-04-26 Thread Joachim Eastwood
Remove old init callback which now contains only a call to socfpga_dwmac_setup(). Also rename socfpga_dwmac_setup() to indicate what the function really does. Signed-off-by: Joachim Eastwood Tested-by: Marek Vasut --- drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 17 +++-- 1

[PATCH net-next 4/5] stmmac: dwmac-socfpga: call phy_resume() only in resume callback

2016-04-26 Thread Joachim Eastwood
Calling phy_resume() should only be need during driver resume to workaround a hardware errata. Signed-off-by: Joachim Eastwood Tested-by: Marek Vasut --- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c| 50 -- 1 file changed, 19 insertions(+), 31 deletions(-) diff --git

[PATCH net-next 3/5] stmmac: dwmac-socfpga: keep a copy of stmmac_rst in driver priv data

2016-04-26 Thread Joachim Eastwood
The dwmac-socfpga driver needs to control the reset usually managed by the core driver to set the PHY mode. Take a copy of the reset handle from core priv data so it can be used by the driver later. This also allow us to move reset handling into socfpga_dwmac_setup() where the code that needs it i

Re: [PATCH V3] net: stmmac: socfpga: Remove re-registration of reset controller

2016-04-26 Thread Joachim Eastwood
On 26 April 2016 at 14:47, Marek Vasut wrote: > On 04/26/2016 02:26 PM, Joachim Eastwood wrote: >> On 26 April 2016 at 00:55, Marek Vasut wrote: >>> On 04/25/2016 08:11 PM, Joachim Eastwood wrote: On 21 April 2016 at 14:11, Marek Vasut wrote: > > Finally, plat_dat->exit and socfpga_

[PATCH -next] pch_gbe: fix bogus trylock conversion

2016-04-26 Thread Florian Westphal
Should have converted 'if (trylock)' to 'lock'. Fixes: a6086a893718db ("drivers: net: remove NETDEV_TX_LOCKED") Signed-off-by: Florian Westphal --- I re-checked the series and this was the only place where I messed up. diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers

Re: [net-next PATCH 6/8] mlx4: Add support for inner IPv6 checksum offloads and TSO

2016-04-26 Thread Alexander Duyck
On Tue, Apr 26, 2016 at 1:23 PM, Saeed Mahameed wrote: > On Tue, Apr 26, 2016 at 6:50 PM, Alex Duyck wrote: >> >> The setup is pretty straight forward. Basically I left the first port >> in the default namespace and moved the second int a secondary >> namespace referred to below as $netns. I th

[net-next 12/15] i40e/i40evf: Only offload VLAN tag if enabled

2016-04-26 Thread Jeff Kirsher
From: Jesse Brandeburg The driver was offloading the VLAN tag into the skb any time there was a VLAN tag and the hardware stripping was enabled. Just check to make sure it's enabled before put_tag. Change-Id: Ife95290c06edd9a616393b38679923938b382241 Signed-off-by: Jesse Brandeburg Tested-by:

[net-next 10/15] i40e: Add DeviceID for X722 QSFP+

2016-04-26 Thread Jeff Kirsher
From: Kamil Krawczyk Change-ID: I1370fbc7774e815ac1ad56561e97488e829592fc Signed-off-by: Kamil Krawczyk Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/i40e/i40e_common.c | 1 + drivers/net/ethernet/intel/i40e/i40e_devids.h | 1 + drivers/net/ethernet/i

[net-next 09/15] i40e: Add device capability which defines if update is available

2016-04-26 Thread Jeff Kirsher
From: Michal Kosiarz Add device capability which defines if update is available and security check is needed during update process. Change-ID: I380787c878275e1df18b39198df3ee3666342282 Signed-off-by: Michal Kosiarz Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet

[net-next 04/15] i40evf: Don't Panic

2016-04-26 Thread Jeff Kirsher
From: Mitch Williams Under some circumstances the driver remove function may be called before the driver is fully initialized. So we can't assume that we know where our towel is at, or that all of the data structures are initialized. To ensure that we don't panic, check that the vsi_res pointer

[net-next 03/15] i40e: Add support for configuring VF RSS

2016-04-26 Thread Jeff Kirsher
From: Mitch Williams Add support for configuring RSS on behalf of the VFs. This removes the burden of dealing with different hardware interfaces from the VF drivers, allowing for better future compatibility. Change-ID: Icea75d3f37241ee8e447be5779e5abb53ddf04c0 Signed-off-by: Mitch Williams Test

[net-next 08/15] i40e: Allow user to change input set mask for flow director

2016-04-26 Thread Jeff Kirsher
From: Kiran Patil This patch implements feature, which allows user to change input set mask for flow director using side-band channel. This patch adds definition of FLOW_TYPE_MASK into the header file. With this patch, user can now specify less than 4 tuple(src ip, dsp ip, src port, dst port) for

[net-next 15/15] i40evf: Add driver support for promiscuous mode

2016-04-26 Thread Jeff Kirsher
From: Anjali Singhai Jain Add necessary Linux Ethernet driver support for promiscuous mode operation. Add a flag so the VF knows it is in promiscuous mode and two state flags to discreetly track multicast and unicast promiscuous states. Change-Id: Ib2f2dc7a7582304fec90fc917ebb7ded21ba1de4 Signed

[net-next 06/15] i40e: Specify AQ event opcode to wait for

2016-04-26 Thread Jeff Kirsher
From: Shannon Nelson To add a little flexibility to the nvmupdate facility, this code adds the ability to specify an AQ event opcode to wait on after the Exec_AQ request. Change-ID: Iddbfd63c3de8df3edb9d3e90678b08989bc4946e Signed-off-by: Shannon Nelson Signed-off-by: Jeff Kirsher --- drivers

[net-next 02/15] i40e/i40evf: Add support for IPIP and SIT offloads

2016-04-26 Thread Jeff Kirsher
From: Alexander Duyck Looking over the documentation it turns out enabling IPIP and SIT offloads for i40e is pretty straightforward. As such I decided to enable them with this patch. In my testing I am seeing an improvement of 8 to 10 Gb/s for IPIP and SIT tunnels with this offload enabled. Si

[net-next 11/15] i40e: Remove zero check

2016-04-26 Thread Jeff Kirsher
From: Greg Rose A mirror rule ID may be zero so do not return invalid parameter when the user passes in a zero value for a rule ID. Change-ID: I261b8c24725ce2c6ed32f859da81093dfcbe2970 Signed-off-by: Greg Rose Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/inte

[net-next 13/15] i40e: Add promiscuous on VLAN support

2016-04-26 Thread Jeff Kirsher
From: Greg Rose NFV use cases require the ability to steer packets to VSIs by VLAN tag alone while being in promiscuous mode for multicast and unicast MAC addresses. These two new functions support that ability. Signed-off-by: Greg Rose Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --

[net-next 01/15] i40e/i40evf: Clean up feature flags

2016-04-26 Thread Jeff Kirsher
From: Alexander Duyck The feature flags list for i40e and i40evf is beginning to become pretty massive. I plan to add another 4 or so features to these drivers and duplicating the flags for each and every flags list is becoming a bit repetitive. The primary change here is that we now build our

[net-next 05/15] i40e: Code cleanup in i40e_add_fdir_ethtool

2016-04-26 Thread Jeff Kirsher
From: Shannon Nelson A little bit of code cleanup in prep for more cloud filter work. Change-ID: I0dc33ce0d4c207944336a07437640fef920c100c Signed-off-by: Shannon Nelson Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 12 +++-

[net-next 07/15] i40evf: Allow PF driver to configure RSS

2016-04-26 Thread Jeff Kirsher
From: Mitch Williams If the PF driver reports proper support, allow the PF driver to configure RSS on the behalf of the VF driver. This will allow for RSS support on future hardware without changes to the VF driver. Unfortunately, the old RSS code still needs to stay as the driver needs to be co

[net-next 14/15] i40e: Add VF promiscuous mode driver support

2016-04-26 Thread Jeff Kirsher
From: Anjali Singhai Jain Add infrastructure for Network Function Virtualization VLAN tagged packet steering feature. Change-Id: I9b873d8fcc253858e6baba65ac68ec5b9363944e Signed-off-by: Anjali Singhai Jain Signed-off-by: Greg Rose Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- dri

[net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2016-04-26

2016-04-26 Thread Jeff Kirsher
This series contains updates to i40e and i40evf. Alex Duyck cleans up the feature flags since they are becoming pretty "massive", the primary change being that we now build our features list around hw_encap_features. Added support for IPIP and SIT offloads, which should improvement in throughput

Re: [PATCH net-next V1 00/11] Mellanox 100G extending mlx5 ethtool support

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 11:03 PM, David Miller wrote: > > Series applied. > > Be careful about what feature update semantics you implement. If you get a > request > to change multiple feature bits, and even one of them cannot be done, the > entire > update operation should fail and the bits sho

Re: [PATCH] bpf: fix double-fdput in replace_map_fd_with_map_ptr()

2016-04-26 Thread Daniel Borkmann
On 04/26/2016 10:26 PM, Jann Horn wrote: When bpf(BPF_PROG_LOAD, ...) was invoked with a BPF program whose bytecode references a non-map file descriptor as a map file descriptor, the error handling code called fdput() twice instead of once (in __bpf_map_get() and in replace_map_fd_with_map_ptr())

Re: [PATCH] bpf: fix double-fdput in replace_map_fd_with_map_ptr()

2016-04-26 Thread Alexei Starovoitov
On Tue, Apr 26, 2016 at 10:26:26PM +0200, Jann Horn wrote: > When bpf(BPF_PROG_LOAD, ...) was invoked with a BPF program whose bytecode > references a non-map file descriptor as a map file descriptor, the error > handling code called fdput() twice instead of once (in __bpf_map_get() and > in replac

[PATCH -next] net: w5100: support W5500

2016-04-26 Thread Akinobu Mita
This adds support for W5500 chip. W5500 has similar register and memory organization with W5100 and W5200. There are a few important differences listed below but it is still possible to share common code with W5100 and W5200. * W5500 register and memory are organized by multiple blocks. Each one

[PATCH] bpf: fix double-fdput in replace_map_fd_with_map_ptr()

2016-04-26 Thread Jann Horn
When bpf(BPF_PROG_LOAD, ...) was invoked with a BPF program whose bytecode references a non-map file descriptor as a map file descriptor, the error handling code called fdput() twice instead of once (in __bpf_map_get() and in replace_map_fd_with_map_ptr()). If the file descriptor table of the curre

Re: [net-next PATCH 6/8] mlx4: Add support for inner IPv6 checksum offloads and TSO

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 6:50 PM, Alex Duyck wrote: > > The setup is pretty straight forward. Basically I left the first port > in the default namespace and moved the second int a secondary > namespace referred to below as $netns. I then assigned the IPv6 > addresses fec0::10:1 and fec0::10:2. Af

Re: [PATCH] netem: Segment GSO packets on enqueue.

2016-04-26 Thread Eric Dumazet
On Tue, 2016-04-26 at 15:00 -0400, Neil Horman wrote: > I can understand that, but that raises two questions in my mind: > > 1) Doesn't that make all the statistical manipulation for netem wrong? That > is > to say, if netem drops 5% of packets, and it happens to drop a GSO packet, its > actual

Re: [PATCH RFC net-next] net: dsa: Provide CPU port statistics to master netdev

2016-04-26 Thread Andrew Lunn
> > Hi Florian > > > > Interesting concept. My one concern is that by concatenating the two > > sets of statistics, we get a name clash. I'm not sure the Marvell > > switch statistics counters have different names to the Marvell > > Ethernet driver statistics counters. ethtool does not care, but m

Re: [PATCH 0/2] sh_eth: couple of software reset bit cleanups

2016-04-26 Thread David Miller
From: Sergei Shtylyov Date: Sun, 24 Apr 2016 23:42:48 +0300 >Here's a set of 2 patches against DaveM's 'net-next.git' repo. We clean up > the use of the software reset bits... > > [1/2] sh_eth: use EDMR_SRST_GETHER in sh_eth_check_reset() > [2/2] sh_eth: rename ARSTR register bit Series app

[PATCH v6 03/25] io-mapping: Specify mapping size for io_mapping_map_wc()

2016-04-26 Thread Chris Wilson
The ioremap() hidden behind the io_mapping_map_wc() convenience helper can be used for remapping multiple pages. Extend the helper so that future callers can use it for larger ranges. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: Yishai

Re: [PATCH net-next V1 00/11] Mellanox 100G extending mlx5 ethtool support

2016-04-26 Thread David Miller
From: Saeed Mahameed Date: Sun, 24 Apr 2016 22:51:45 +0300 > Changes from V0: > - Dropped: net/mlx5e: Disable link up on INIT HCA command > Due to Ido's and Or's requests we will submit this patch to net and > will need it for -stable. > - Rebased to: 11afbff86168 ("Merge >

Re: [PATCH net-next 0/6] net: core: remove TX_LOCKED support

2016-04-26 Thread David Miller
From: Florian Westphal Date: Sun, 24 Apr 2016 21:38:08 +0200 > Not that many users left, lets kill it. > > TX_LOCKED was meant to be used by LLTX drivers when spin_trylock() > failed. Stack then re-queued if collisions happened on different > cpus or free'd the skb to prevent deadlocks. >

Re: [PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread David Miller
Submitting a cover letter and the patch itself with identical Subject lines is not correct. You must also use proper "[PATCH $(TREE) X/Y] " prefixes in your Subject lines as well. Please format your Subject lines correctly and resubmit, thank you.

Re: [PATCH RFC net-next] net: dsa: Provide CPU port statistics to master netdev

2016-04-26 Thread Florian Fainelli
On 25/04/16 14:43, Andrew Lunn wrote: > On Wed, Apr 20, 2016 at 10:58:21AM -0700, Florian Fainelli wrote: >> This patch overloads the DSA master netdev, aka CPU Ethernet MAC to also >> include switch-side statistics, which is useful for debugging purposes, >> when the switch is not properly connect

Re: [PATCH 0/5] Don't return NULL from get_phy_device() anymore

2016-04-26 Thread David Miller
From: Sergei Shtylyov Date: Sun, 24 Apr 2016 20:23:03 +0300 >Here's the set of 5 patches against DaveM's 'net-next.git' repo. The first > patch makes get_phy_device() return only error values on error, the rest of > the patches clean up the callers of that function... Series applied, thanks.

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Andrew Lunn
On Tue, Apr 26, 2016 at 09:24:34PM +0200, Arnd Bergmann wrote: > On Tuesday 26 April 2016 20:23:35 Andrew Lunn wrote: > > > A more complex problem would be having a PHY driver for a device > > > that can be either an ethernet phy or some other phy. > > > > I doubt that ever happens. You can have u

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Arnd Bergmann
On Tuesday 26 April 2016 20:23:35 Andrew Lunn wrote: > > A more complex problem would be having a PHY driver for a device > > that can be either an ethernet phy or some other phy. > > I doubt that ever happens. You can have up to 32 different devices on > an MDIO bus. Since an Ethernet PHY and a "

Re: [PATCH] sh_eth: get rid of the 2nd parameter to sh_eth_dev_init()

2016-04-26 Thread David Miller
From: Sergei Shtylyov Date: Sun, 24 Apr 2016 19:11:07 +0300 > sh_eth_dev_init() is now always called with 'true' as the 2nd argument, > so that there's no more sense in having 2 parameters to this function... > > Signed-off-by: Sergei Shtylyov Applied.

Re: [PATCH net-next] sctp: sctp_diag should fill RMEM_ALLOC with asoc->rmem_alloc when rcvbuf_policy is set

2016-04-26 Thread David Miller
From: Xin Long Date: Sun, 24 Apr 2016 23:21:22 +0800 > For sctp assoc, when rcvbuf_policy is set, it will has it's own > rmem_alloc, when we dump asoc info in sctp_diag, we should use that > value on RMEM_ALLOC as well, just like WMEM_ALLOC. > > Signed-off-by: Xin Long Applied.

Re: [PATCH net-next] macvlan: fix failure during registration v3

2016-04-26 Thread David Miller
From: Francesco Ruggeri Date: Sat, 23 Apr 2016 15:03:32 -0700 > If macvlan_common_newlink fails in register_netdevice after macvlan_init > then it decrements port->count twice, first in macvlan_uninit (from > register_netdevice or rollback_registered) and then again in > macvlan_common_newlink. >

Re: [PATCH net-next] macvtap: check minor when unregistering

2016-04-26 Thread David Miller
From: Francesco Ruggeri Date: Sat, 23 Apr 2016 15:04:31 -0700 > macvtap_device_event(NETDEV_UNREGISTER) should check vlan->minor to > determine if it is being invoked in the context of a macvtap_newlink > that failed, for example in this code sequence: > > macvtap_newlink > macvlan_common_newl

Re: [PATCH net-next] ravb: Remove rx buffer ALIGN

2016-04-26 Thread Sergei Shtylyov
Hello. On 04/24/2016 07:16 PM, Yoshihiro Kaneko wrote: From: Kazuya Mizuguchi Aligning the reception data size is not required. OK, the gen 2/3 manuals indeed don't require this. I assume the patch has been tested... Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Kaneko

Re: [PATCH] can: m_can: fix bitrate setup on latest silicon

2016-04-26 Thread Oliver Hartkopp
On 04/26/2016 03:46 PM, Florian Vallee wrote: According to the m_can user manual changelog the BTP register layout was updated with core revision 3.1.0 Hello Florian, nice to see a real v3.1.0 user emerging on the mailing list :-) I wonder whether this small change covers the updates made bet

Re: [PATCH net-next] macvlan: fix failure during registration v3

2016-04-26 Thread Francesco Ruggeri
On Tue, Apr 26, 2016 at 11:54 AM, Mahesh Bandewar wrote: > > On Sat, Apr 23, 2016 at 3:03 PM, Francesco Ruggeri > wrote: > > If macvlan_common_newlink fails in register_netdevice after macvlan_init > > then it decrements port->count twice, first in macvlan_uninit (from > > register_netdevice or

Re: [PATCH] netem: Segment GSO packets on enqueue.

2016-04-26 Thread Neil Horman
On Tue, Apr 26, 2016 at 11:49:58AM -0700, Eric Dumazet wrote: > On Tue, 2016-04-26 at 13:43 -0400, Neil Horman wrote: > > This was recently reported to me, and reproduced on the latest net kernel, > > when > > attempting to run netperf from a host that had a netem qdisc attached to the > > egress

Re: [PATCH net-next] macvlan: fix failure during registration v3

2016-04-26 Thread Mahesh Bandewar
On Sat, Apr 23, 2016 at 3:03 PM, Francesco Ruggeri wrote: > If macvlan_common_newlink fails in register_netdevice after macvlan_init > then it decrements port->count twice, first in macvlan_uninit (from > register_netdevice or rollback_registered) and then again in > macvlan_common_newlink. > A si

Re: [PATCH v2] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 6:52 PM, Arnd Bergmann wrote: > struct mlx5e_channel_param is a large structure that is allocated > on the stack of mlx5e_open_channels, and with a recent change > it has grown beyond the warning size for the maximum stack > that a single function should use: > > mellanox/m

Re: [PATCH] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 6:49 PM, Arnd Bergmann wrote: > On Tuesday 26 April 2016 17:41:45 Saeed Mahameed wrote: >> On Tue, Apr 26, 2016 at 4:53 PM, Arnd Bergmann wrote: >> > >> > Sure, do you want to just edit this when you forward the patch, or >> > do you need me to do it? >> > >> >> Well, I wo

[PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread Petko Manolov
usb_fill_bulk_urb() receives buffer length parameter 8 bytes larger than what's allocated by alloc_skb(); This seems to be a problem with older (pegasus usb-1.1) devices, which may silently return more data than the maximal packet length. Going through the chip's documentation i figured out the et

[PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread Petko Manolov
As noticed by Lincoln Ramsay some old (usb 1.1) Pegasus based devices may actually return more bytes than the specified in the datasheet amount. That would not be a problem if the allocated space for the SKB was equal to the parameter passed to usb_fill_bulk_urb(). Some poor bugger (i reall

Re: [PATCH] netem: Segment GSO packets on enqueue.

2016-04-26 Thread Eric Dumazet
On Tue, 2016-04-26 at 13:43 -0400, Neil Horman wrote: > This was recently reported to me, and reproduced on the latest net kernel, > when > attempting to run netperf from a host that had a netem qdisc attached to the > egress interface: .. > The problem occurs because netem is not prepared to ha

Re: [PATCH] ARM: dts: at91: VInCo: fix phy reset gpio flag

2016-04-26 Thread Sergei Shtylyov
On 04/26/2016 08:17 PM, David Miller wrote: I plan to queue this patch through arm-soc for 4.7. Ok. How about this patch going thru your net-next repo instead? I'd like to keep the kernel bisectable... if my phylib/macb patches get merged earlier than this one, that board would be broken

Re: [PATCH] ARM: dts: at91: VInCo: fix phy reset gpio flag

2016-04-26 Thread Sergei Shtylyov
Hello. On 04/26/2016 01:24 PM, Nicolas Ferre wrote: Fix gpio active flag for the phy reset-gpios property. The line is active low instead of active high. Actually, this flags was never used by the macb driver. Reported-by: Sergei Shtylyov Cc: Andrew Lunn Cc: David Miller Signed-off-by: Nico

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Andrew Lunn
> A more complex problem would be having a PHY driver for a device > that can be either an ethernet phy or some other phy. I doubt that ever happens. You can have up to 32 different devices on an MDIO bus. Since an Ethernet PHY and a "some other sort of PHY" are completely different things, why wo

Re: [PATCH net-next 0/3] qed: Bandwidth configuration support

2016-04-26 Thread David Miller
From: Manish Chopra Date: Tue, 26 Apr 2016 10:56:07 -0400 > This series adds support in driver for min/max bandwidth configuration > for the PF on the link change notification or on explicit request of > bandwidth update from the MFW [management firmware]. > > The same infrastructure would later

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Arnd Bergmann
On Tuesday 26 April 2016 10:23:02 Florian Fainelli wrote: > On 26/04/16 05:13, Andrew Lunn wrote: > >> 4. Apart from these, by using MDIO mux framework we are making our > >> non-ethernet PHYs dependent on Linux network drivers which is not > >> acceptable. What if some product line does not need n

Re: [PATCH 1/6] bus: Add shared MDIO bus framework

2016-04-26 Thread Andrew Lunn
> I am not clear on how common a shared MDIO bus is on other SoCs, but the > other Broadcom SoCs I am familiar with have dedicated MDIO buses > instances per type of PHY (PCIe, BUSB, Ethernet), thus making the split > a ton easier. I don't actually see this shared bus being an issue, once the mux

[PATCH] netem: Segment GSO packets on enqueue.

2016-04-26 Thread Neil Horman
This was recently reported to me, and reproduced on the latest net kernel, when attempting to run netperf from a host that had a netem qdisc attached to the egress interface: [ 788.073771] [ cut here ] [ 788.096716] WARNING: at net/core/dev.c:2253 skb_warn_bad_offload+0xc

[PATCH] net: phy: at803x: only the AT8030 needs a hardware reset on link change

2016-04-26 Thread Timur Tabi
Commit 13a56b44 ("at803x: Add support for hardware reset") added a work-around for a hardware bug on the AT8030. However, the work-around was being called for all 803x PHYs, even those that don't need it. Function at803x_link_change_notify() checks to make sure that it only resets the PHY on the 8

Re: [net-next PATCH V2 5/5] samples/bpf: like LLC also verify and allow redefining CLANG command

2016-04-26 Thread Alexei Starovoitov
On Tue, Apr 26, 2016 at 06:27:32PM +0200, Jesper Dangaard Brouer wrote: > Users are likely to manually compile both LLVM 'llc' and 'clang' > tools. Thus, also allow redefining CLANG and verify command exist. > > Makefile implementation wise, the target that verify the command have > been generali

Re: [net-next PATCH V2 4/5] samples/bpf: allow make to be run from samples/bpf/ directory

2016-04-26 Thread Alexei Starovoitov
On Tue, Apr 26, 2016 at 06:27:27PM +0200, Jesper Dangaard Brouer wrote: > It is not intuitive that 'make' must be run from the top level > directory with argument "samples/bpf/" to compile these eBPF samples. > > Introduce a kbuild make file trick that allow make to be run from the > "samples/bpf/

Re: [net-next PATCH V2 3/5] samples/bpf: add a README file to get users started

2016-04-26 Thread Alexei Starovoitov
On Tue, Apr 26, 2016 at 06:27:22PM +0200, Jesper Dangaard Brouer wrote: > + > +Manually compiling LLVM with 'bpf' support > +-- > + > +In some LLVM versions the BPF target were marked experimental. They > +needed the 'cmake .. -DLLVM_EXPERIMENTAL_TARGETS_TO_B

Re: [net-next PATCH V2 1/5] samples/bpf: add back functionality to redefine LLC command

2016-04-26 Thread Alexei Starovoitov
On Tue, Apr 26, 2016 at 06:27:11PM +0200, Jesper Dangaard Brouer wrote: > It is practical to be-able-to redefine the location of the LLVM > command 'llc', because not all distros have a LLVM version with bpf > target support. Thus, it is sometimes required to compile LLVM from > source, and someti

  1   2   >