[PATCH net-next v5 1/7] vmxnet3: prepare for version 3 changes

2016-06-16 Thread Shrikrishna Khare
vmxnet3 is currently at version 2, but some command definitions from previous vmxnet3 versions are missing. Add those definitions before moving to version 3. Also, introduce utility macros for vmxnet3 version comparison and update Copyright information and Maintained by. Signed-off-by: Shrikrishn

[PATCH net-next v5 7/7] vmxnet3: update to version 3

2016-06-16 Thread Shrikrishna Khare
With all vmxnet3 version 3 changes incorporated in the vmxnet3 driver, the driver can configure emulation to run at vmxnet3 version 3, provided the emulation advertises support for version 3. Signed-off-by: Shrikrishna Khare --- drivers/net/vmxnet3/vmxnet3_drv.c | 7 ++- drivers/net/vmxnet3/

[PATCH net-next v5 6/7] vmxnet3: introduce command to register memory region

2016-06-16 Thread Shrikrishna Khare
In vmxnet3 version 3, the emulation added support for the vmxnet3 driver to communicate information about the memory regions the driver will use for rx/tx buffers. The driver can also indicate which rx/tx queue the memory region is applicable for. If this information is communicated to the emulatio

[PATCH net-next 1/8] net: Change SKB_GSO_DODGY to be a tx_flag

2016-06-16 Thread Tom Herbert
This replaces gso_type SKB_GSO_DODGY with a new tx_flag named SKBTX_UNTRUSTED_SOURCE. This more generically desrcibes the skb being created from a untrusted source as a characteristic of and skbuff. This also frees up one gso_type flag bit. Signed-off-by: Tom Herbert --- drivers/net/xen-netfront

[PATCH net-next 4/8] ipv4: Support TOU

2016-06-16 Thread Tom Herbert
Add tou_encap structure to inet_sock. In transmit path (ip_queue_xmit) check if encapsulation is enabled and call the build header op if it is. Add IP_TOU_ENCAP setsockopt for IPv4 sockets. Signed-off-by: Tom Herbert --- include/uapi/linux/in.h | 1 + net/ipv4/ip_output.c| 42 ++

[PATCH net-next 3/8] tou: Base infrastructure for Transport over UDP

2016-06-16 Thread Tom Herbert
Add tou.c that implements common setsockopt functionality. This includes initialization and argument structure for the setsockopt. Signed-off-by: Tom Herbert --- include/net/inet_sock.h| 2 + include/net/ip_tunnels.h | 1 + include/uapi/linux/if_tunnel.h | 10 +++ net/ipv4/Mak

[PATCH net-next 0/8] tou: Transports over UDP - part I

2016-06-16 Thread Tom Herbert
Transports over UDP is intended to encapsulate TCP and other transport protocols directly and securely in UDP. The goal of this work is twofold: 1) Allow applications to run their own transport layer stack (i.e.from userspace). This eliminates dependencies on the OS (e.g. solves a major dep

[PATCH net-next 6/8] ipv6: Support TOU

2016-06-16 Thread Tom Herbert
In transmit path (inet6_csk_xmit) check if encapsulation is enabled and call the build header op if it is. Add IP_TOU_ENCAP setsockopt for IPv6 sockets. Signed-off-by: Tom Herbert --- include/uapi/linux/in6.h | 1 + net/ipv6/inet6_connection_sock.c | 58 +

[PATCH net-next 5/8] tcp: Support for TOU

2016-06-16 Thread Tom Herbert
Need to adjust MSS to account for encapsulation overhead. This is done by add encpasulation header length into icsk_ext_hdr_len. Signed-off-by: Tom Herbert --- net/ipv4/tcp_ipv4.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4

[PATCH net-next 2/8] fou: Change ip_tunnel_encap to take net argument

2016-06-16 Thread Tom Herbert
Add a struct net argument to ip_tunnel_encap function and pass into backend build_header functions. This give build_header function the correct netns and so they don't have to fish for it in the skbuff. Signed-off-by: Tom Herbert --- include/net/fou.h| 4 ++-- include/net/ip6_tunnel.h |

[PATCH net-next v5 4/7] vmxnet3: add receive data ring support

2016-06-16 Thread Shrikrishna Khare
vmxnet3 driver preallocates buffers for receiving packets and posts the buffers to the emulation. In order to deliver a received packet to the guest, the emulation must map buffer(s) and copy the packet into it. To avoid this memory mapping overhead, this patch introduces the receive data ring - a

[PATCH net-next 7/8] tcp6: Support for TOU

2016-06-16 Thread Tom Herbert
Need to adjust MSS to account for encapsulation overhead. This is done by add encpasulation header length into icsk_ext_hdr_len. Signed-off-by: Tom Herbert --- net/ipv6/tcp_ipv6.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_i

[PATCH net-next 8/8] tou: Support for GSO

2016-06-16 Thread Tom Herbert
Add SKB_GSO_TOU. In udp[64]_ufo_fragment check for SKB_GSO_TOU. If this is set call skb_udp_tou_segment. skb_udp_tou_segment is very similar to skb_udp_tunnel_segment except that we only need to deal with the L4 headers. Signed-off-by: Tom Herbert --- include/linux/netdev_features.h | 3 +- i

[PATCH net-next v5 2/7] vmxnet3: introduce generalized command interface to configure the device

2016-06-16 Thread Shrikrishna Khare
Shared memory is used to exchange information between the vmxnet3 driver and the emulation. In order to request emulation to perform a task, the driver first populates specific fields in this shared memory and then issues corresponding command by writing to the command register(CMD). The layout of

RE: [PATCH 1/1] ixgbe: add fiber tranceiver plug/unplug notifier

2016-06-16 Thread Skidmore, Donald C
From: zhuyj [mailto:zyjzyj2...@gmail.com] Sent: Thursday, June 16, 2016 3:43 AM To: e1000-de...@lists.sourceforge.net; netdev ; Skidmore, Donald C Cc: Zhu Yanjun Subject: Re: [PATCH 1/1] ixgbe: add fiber tranceiver plug/unplug notifier Sorry, Maybe last_tranceiver_status and tranceiver_pollt

Re: [PATCH net] ixgbe: napi_poll must return the work done

2016-06-16 Thread Keller, Jacob E
On Wed, 2016-06-15 at 09:34 -0700, Venkatesh Srinivas wrote: > Reviewed-by: Venkatesh Srinivas > > The same bit of code appears in fm10k and i40e/i40evf. ixgb appears > to > correctly return work_done. > > ixgbe_poll also appears to return an (minor) incorrect work_done in > another case, BTW. I

Re: [PATCH net] ixgbe: napi_poll must return the work done

2016-06-16 Thread Keller, Jacob E
On Wed, 2016-06-15 at 09:34 -0700, Venkatesh Srinivas wrote: > On Wed, Jun 15, 2016 at 6:37 AM, Paolo Abeni > wrote: > > > > Currently the function ixgbe_poll() returns 0 when it clean > > completely > > the rx rings, but this foul budget accounting in core code. > > Fix this returning the actual

Re: [PATCH v6 net-next 2/2] tcp: Add Redundant Data Bundling (RDB)

2016-06-16 Thread Bendik Rønning Opstad
On 21/03/16 19:54, Yuchung Cheng wrote: > On Thu, Mar 17, 2016 at 4:26 PM, Bendik Rønning Opstad > wrote: >> diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt index 6a92b15..8f3f3bf 100644 --- a/Documentation/networking/ip-sysctl.txt

Re: [PATCH net] ixgbe: napi_poll must return the work done

2016-06-16 Thread Keller, Jacob E
On Wed, 2016-06-15 at 09:34 -0700, Venkatesh Srinivas wrote: > On Wed, Jun 15, 2016 at 6:37 AM, Paolo Abeni > wrote: > > > > Currently the function ixgbe_poll() returns 0 when it clean > > completely > > the rx rings, but this foul budget accounting in core code. > > Fix this returning the actual

Re: [PATCH 4/5] netdev: implement infrastructure for threadable napi irq

2016-06-16 Thread Eric Dumazet
> > I guess you means 'consumer' here. The scheduler doesn't fail to migrate > it: the consumer is actually migrated a lot of times, but on each cpu a > competing and running ksoftirqd thread is found. > > The general problem is that under significant network load (not > necessary udp flood, simila

PATCH 1/1] AX.25: Close socket connection on session completion

2016-06-16 Thread Basil Gunn
A socket connection made in ax.25 is not closed when session is completed. The heartbeat timer is stopped prematurely and this is where the socket gets closed. Allow heatbeat timer to run to close socket. Symptom occurs in kernels >= 4.2.0 Originally sent 6/15/2016. Resend with distribution list

Re: [iproute PATCH v2 0/2] Two cosmetic fixes in tc/m_action.c

2016-06-16 Thread Stephen Hemminger
On Thu, 16 Jun 2016 00:50:37 +0200 Phil Sutter wrote: > Found these when doing something else. Shouldn't cause any functional > change. > > Changes since v1: > - Replace patch 1/2 with a better solution as suggested by Stephen > Hemminger. > > Phil Sutter (2): > tc: m_action: Use C99 style

Re: [PATCH 1/2] net: smsc911x: Fix bug where PHY interrupts are overwritten by 0

2016-06-16 Thread Andrew Lunn
On Thu, Jun 16, 2016 at 10:54:30AM -0500, Jeremy Linton wrote: > By default, mdiobus_alloc() sets the PHY's to polling mode, but a > pointer size memcpy means that couple IRQs (depending > on 32-bit or 64-bit kernels) end up being overwritten with > a value of 0. This means that PHY_POLL is disable

Re: [v3,1/2] b43: Remove unused phy_a code

2016-06-16 Thread Michael Büsch
On Thu, 16 Jun 2016 18:56:14 +0300 Kalle Valo wrote: > Michael Büsch writes: > > > On Thu, 16 Jun 2016 15:23:37 + (UTC) > > Kalle Valo wrote: > > > >> Guenter Roeck wrote: > >> > gcc-6 reports the following error with -Werror=unused-const-variable. > >> > > >> > drivers/net/wireless/

Re: [PATCH] rtlwifi: use s8 instead of char

2016-06-16 Thread Jes Sorensen
David Laight writes: > From: Arnd Bergmann >> On Wednesday, June 15, 2016 5:10:51 PM CEST Jes Sorensen wrote: >> > >> > Arnd, >> > >> > rtlwifi and rtl8xxxu are two distinct drivers managed by different >> > people. I'd be really nice if you could split this into a per driver >> > patch. >> > >> >

Re: [PATCH 2/2] net: smsc911x: Fix register_netdev, phy startup ordering and driver unload

2016-06-16 Thread Sergei Shtylyov
Hello. On 06/16/2016 06:54 PM, Jeremy Linton wrote: Previously the mdio and phy's were started in the drv probe following register_netdev(). This could lead to a situation where if the netdev was opened before the mdio/phys were configured, it would fail with a EAGAIN. Also, the use of phy_con

RE: [PATCH] rtlwifi: use s8 instead of char

2016-06-16 Thread David Laight
From: Arnd Bergmann > On Wednesday, June 15, 2016 5:10:51 PM CEST Jes Sorensen wrote: > > > > Arnd, > > > > rtlwifi and rtl8xxxu are two distinct drivers managed by different > > people. I'd be really nice if you could split this into a per driver > > patch. > > > > That said, the use of char in rt

[PATCH net-next v2 1/1] ixgbe: add fiber tranceiver plug/unplug notifier

2016-06-16 Thread zyjzyj2000
From: Zhu Yanjun When the fiber tranceiver is plugged/unplugged, a netdev notifier is sent. The userspace tools or kernel can receive this notifier. Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/intel/ixgbe/ixgbe.h |2 ++ drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 24 +

[PATCH net-next v3 1/1] ixgbe: add fiber tranceiver plug/unplug notifier

2016-06-16 Thread zyjzyj2000
Hi, all The changes are as below: V3: 1.move the 2 variables from ixgbe_hw struct to ixgbe_adapter struct; V2: 1. Replace IXGBE_IDENTIFIER with IXGBE_ESDP; 2. Replace plug interrupt with poll; 3. Indicate the NICs that does not support to plug/unplug tranceiver as plugged; Hi, Don Than

Re: [v3,1/2] b43: Remove unused phy_a code

2016-06-16 Thread Kalle Valo
Michael Büsch writes: > On Thu, 16 Jun 2016 15:23:37 + (UTC) > Kalle Valo wrote: > >> Guenter Roeck wrote: >> > gcc-6 reports the following error with -Werror=unused-const-variable. >> > >> > drivers/net/wireless/broadcom/b43/phy_a.c:576:40: error: >> >'b43_phyops_a' defined but not us

[PATCH 2/2] net: smsc911x: Fix register_netdev, phy startup ordering and driver unload

2016-06-16 Thread Jeremy Linton
Previously the mdio and phy's were started in the drv probe following register_netdev(). This could lead to a situation where if the netdev was opened before the mdio/phys were configured, it would fail with a EAGAIN. Also, the use of phy_connect_direct() in the drv_probe routine results in a situ

[PATCH 1/2] net: smsc911x: Fix bug where PHY interrupts are overwritten by 0

2016-06-16 Thread Jeremy Linton
By default, mdiobus_alloc() sets the PHY's to polling mode, but a pointer size memcpy means that couple IRQs (depending on 32-bit or 64-bit kernels) end up being overwritten with a value of 0. This means that PHY_POLL is disabled and results in unpredictable behavior depending on the PHYs location

Re: [v3,1/2] b43: Remove unused phy_a code

2016-06-16 Thread Michael Büsch
On Thu, 16 Jun 2016 15:23:37 + (UTC) Kalle Valo wrote: > Guenter Roeck wrote: > > gcc-6 reports the following error with -Werror=unused-const-variable. > > > > drivers/net/wireless/broadcom/b43/phy_a.c:576:40: error: > > 'b43_phyops_a' defined but not used > > > > Per Michael Büsch: "A

Re: [PATCH 1/2] ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround

2016-06-16 Thread Arnd Bergmann
On Wednesday, June 1, 2016 5:29:42 PM CEST Lucas Stach wrote: > +/* > + * i.MX6 Q/DL has an erratum (ERR006687) that prevents the FEC from waking > the > + * CPUs when they are in wait(unclocked) state. As the hardware workaround > isn't > + * applicable to all boards, disable the deeper idle sta

Re: [Bug 120441] af_packet no longer uses symmetric hashing

2016-06-16 Thread Willem de Bruijn
>> Isn't a symmetric hashing for af-packet something very fundamental? >> Looks much more like a bug to me. > > > I agree it would be useful resp. fundamental. I'm not quite sure whether > PACKET_FANOUT_HASH always had this guarantee since the initial > implementation It is based on rxhash, which

Re: [net-next PATCH v2 02/17] net: Combine GENEVE and VXLAN port notifiers into single functions

2016-06-16 Thread Alexander Duyck
On Wed, Jun 15, 2016 at 4:50 PM, Jesse Gross wrote: > On Wed, Jun 15, 2016 at 3:07 PM, Alexander Duyck wrote: >> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c >> index e5e33cd01082..d12ee3a92fb5 100644 >> --- a/drivers/net/geneve.c >> +++ b/drivers/net/geneve.c >> static void geneve_n

Re: libertas: Remove create_workqueue

2016-06-16 Thread Kalle Valo
Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > In if_sdio.c, the workqueue card->workqueue has workitem > &card->packet_worker, which is mapped to if_sdio_host_to_card_worker. > The workitem is involved in sending packets to firmware. > Forward progress

Re: brcmfmac: include required headers in cfg80211.h

2016-06-16 Thread Kalle Valo
Rafał Miłecki wrote: > Without this including cfg80211.h in a wrong order could result in: > > drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:122:24: error: > array type has incomplete element type > struct brcmf_wsec_key key[BRCMF_MAX_DEFAULT_KEYS]; > ^ > d

Re: [v3,1/2] b43: Remove unused phy_a code

2016-06-16 Thread Kalle Valo
Guenter Roeck wrote: > gcc-6 reports the following error with -Werror=unused-const-variable. > > drivers/net/wireless/broadcom/b43/phy_a.c:576:40: error: > 'b43_phyops_a' defined but not used > > Per Michael Büsch: "All a-phy code is usused", so remove it all, > and move the remaining Type

Re: brcmfmac: drop unused pm_block vif attribute

2016-06-16 Thread Kalle Valo
Rafał Miłecki wrote: > This attribute was added 3 years ago by > commit 3eacf866559c ("brcmfmac: introduce brcmf_cfg80211_vif structure") > but it remains unused since then. It seems we can safely drop it. > > Signed-off-by: Rafał Miłecki Thanks, 1 patch applied to wireless-drivers-next.git: 26

Re: [net-next PATCH v2 05/17] bnxt: Update drivers to support unified UDP encapsulation offload functions

2016-06-16 Thread Alexander Duyck
On Wed, Jun 15, 2016 at 9:23 PM, Michael Chan wrote: > On Wed, Jun 15, 2016 at 3:07 PM, Alexander Duyck wrote: >> This patch ends up doing several things. First it updates the driver to >> make use of the new unified UDP tunnel offload notifier functions. In >> addition I updated the code so th

Re: [Bug 120441] af_packet no longer uses symmetric hashing

2016-06-16 Thread Daniel Borkmann
On 06/16/2016 04:50 PM, Hannes Frederic Sowa wrote: On 16.06.2016 16:37, Daniel Borkmann wrote: On 06/16/2016 03:57 PM, Derek Ditch wrote: [...] Begin forwarded message: From: bugzilla-dae...@bugzilla.kernel.org Subject: [Bug 120441] af_packet no longer uses symmetric hashing Date: June 16, 20

Re: libertas_tf: Drop unused variable and define

2016-06-16 Thread Kalle Valo
Guenter Roeck wrote: > gcc-6 reports: > > drivers/net/wireless/marvell/libertas_tf/main.c:30:19: error: > 'lbtf_driver_version' defined but not used > > with -Werror=unused-const-variable=. > > Reported-by: Fengguang Wu [0-day test robot] > Signed-off-by: Guenter Roeck Thanks, 1 patch

Re: rtlwifi: fix error handling in *_read_adapter_info()

2016-06-16 Thread Kalle Valo
Arnd Bergmann wrote: > There are nine copies of the _rtl88ee_read_adapter_info() function, > and most but not all of them cause a build warning in some configurations: > > rtl8192de/hw.c: In function '_rtl92de_read_adapter_info': > rtl8192de/hw.c:1767:12: error: 'hwinfo' may be used uninitialized

Re: [V2, next] brcmfmac: don't remove interface on link down firmware event

2016-06-16 Thread Kalle Valo
Rafał Miłecki wrote: > There are two firmware events we handle similarly in brcmfmac: > BRCMF_E_LINK and BRCMF_E_IF. The difference from firmware point of view > is that the first one means BSS remains present in the firmware. Trying > to (re)create it (e.g. when adding new virtual interface) will

Re: [PATCH 4.7 FIX] brcmfmac: fix lockup when removing P2P interface after event timeout

2016-06-16 Thread Kalle Valo
Rafał Miłecki writes: > Removing P2P interface is handled by sending a proper request to the > firmware. On success firmware triggers an event and driver's handler > removes a matching interface. > > However on event timeout we remove interface directly from the cfg80211 > callback. Current code

Re: [net PATCH] mlx4e: Do not attempt to offload VXLAN ports that are unrecognized

2016-06-16 Thread Tariq Toukan
The mlx4e driver does not support more than one port for VXLAN offload. As such expecting the hardware to offload other ports is invalid since it appears the parsing logic is used to perform Tx checksum and segmentation offloads. Use the vxlan_port number to determine in which cases we can app

Re: [V2] brcmfmac: fix setting AP channel with new firmwares

2016-06-16 Thread Kalle Valo
Rafał Miłecki wrote: > Firmware for new chipsets is based on a new major version of code > internally maintained at Broadcom. E.g. brcmfmac4366b-pcie.bin (used for > BCM4366B1) is based on 10.10.69.3309 while brcmfmac43602-pcie.ap.bin was > based on 7.35.177.56. > > Currently setting AP 5 GHz chan

Re: wl3501_cs: avoid bogus gcc-6 warning

2016-06-16 Thread Kalle Valo
Arnd Bergmann wrote: > gcc-6 on x86 started warning about wl3501_get_encode when building > with -O2: > > drivers/net/wireless/wl3501_cs.c: In function ‘wl3501_get_encode’: > drivers/net/wireless/wl3501_cs.c:1769:5: warning: ‘implemented’ may be used > uninitialized in this function > drivers/ne

Re: [1/8] mwifiex: only call mwifiex_sdio_probe_of() if dev has an OF node

2016-06-16 Thread Kalle Valo
Javier Martinez Canillas wrote: > SDIO is an auto enumerable bus so the SDIO devices are matched using the > sdio_device_id table and not using compatible strings from a OF id table. > > However, commit ce4f6f0c353b ("mwifiex: add platform specific wakeup > interrupt support") allowed to match no

Re: net: stmmac: dwmac-rk: fixes for Wake-on-Lan on RK3288

2016-06-16 Thread Vincent Palatin
Hi Giuseppe, On Thu, Jun 16, 2016 at 6:37 AM, Giuseppe CAVALLARO wrote: > > Hi Vincent > > > On 6/15/2016 7:04 PM, Vincent Palatin wrote: >> >> On Sun, Jun 12, 2016 at 11:46 PM, Giuseppe CAVALLARO >> wrote: >>> >>> On 6/11/2016 3:00 AM, Vincent Palatin wrote: In order to support W

Re: [Bug 120441] af_packet no longer uses symmetric hashing

2016-06-16 Thread Hannes Frederic Sowa
On 16.06.2016 16:37, Daniel Borkmann wrote: > On 06/16/2016 03:57 PM, Derek Ditch wrote: > [...] >>> Begin forwarded message: >>> >>> From: bugzilla-dae...@bugzilla.kernel.org >>> Subject: [Bug 120441] af_packet no longer uses symmetric hashing >>> Date: June 16, 2016 at 07:35:54 -0500 >>> To: dere

Re: [Bug 120441] af_packet no longer uses symmetric hashing

2016-06-16 Thread Derek Ditch
> On 16Jun 2016, at 09:37, Daniel Borkmann wrote: > > On 06/16/2016 03:57 PM, Derek Ditch wrote: > [...] >>> Begin forwarded message: >>> >>> From: bugzilla-dae...@bugzilla.kernel.org >>> Subject: [Bug 120441] af_packet no longer uses symmetric hashing >>> Date: June 16, 2016 at 07:35:54 -0500

Re: [Bug 120441] af_packet no longer uses symmetric hashing

2016-06-16 Thread Daniel Borkmann
On 06/16/2016 03:57 PM, Derek Ditch wrote: [...] Begin forwarded message: From: bugzilla-dae...@bugzilla.kernel.org Subject: [Bug 120441] af_packet no longer uses symmetric hashing Date: June 16, 2016 at 07:35:54 -0500 To: derek.di...@gmail.com https://bugzilla.kernel.org/show_bug.cgi?id=120441

[PATCH v10 16/22] IB/hns: Add ah operations support

2016-06-16 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the P

[PATCH v10 11/22] IB/hns: Add IB device registration

2016-06-16 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes the comments given by Leon Romanovsky over the PATCH v8: Link: https://lkml.org/lkml/2016/6/9/53 PATCH v8/

[PATCH v10 12/22] IB/hns: Set mtu and gid support

2016-06-16 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned ba

[PATCH v10 00/22] Add HiSilicon RoCE driver

2016-06-16 Thread Lijun Ou
The HiSilicon Network Substem is a long term evolution IP which is supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network Sybsystem) also has a hardware support of performing RDMA with RoCEE. The driver for HiSilicon RoCEE(RoCE Engine) is a platform driver and will support mulitple versi

[PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-16 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned

[PATCH v10 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-06-16 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes comments given by Leon Romanovsky over the PATCH v8: Link: https://lkml.org/lk

[PATCH v10 13/22] IB/hns: Add interface of the protocol stack registration

2016-06-16 Thread Lijun Ou
This patch mainly added the function module which netif notify registered the protocol stack. It includes interface functions as follows: 1. The executive called interface of RoCE when the netlink event that registered protocol stack was generated 2. The executive called interface of

[PATCH v10 01/22] net: hns: Add reset function support for RoCE driver

2016-06-16 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Wei Hu Signed-off

[PATCH v10 08/22] IB/hns: Add icm support

2016-06-16 Thread Lijun Ou
This patch mainly added icm support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

[PATCH v10 05/22] IB/hns: Add initial profile resource

2016-06-16 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: This fixes the comments given by Leon Romanovsky over the PATCH v8: Link: https://lkml.or

Re: [PATCH] openvswitch: Add cutlen info to upcall.

2016-06-16 Thread William Tu
Hi Pravin, Yes, I think that's better. Instead of cutlen, I will pass the skb->len to userspace. Regards, William On Wed, Jun 15, 2016 at 7:55 PM, pravin shelar wrote: > On Wed, Jun 15, 2016 at 7:28 PM, William Tu wrote: >> The commit f2a4d086ed4c ("openvswitch: Add packet truncation support."

[PATCH v10 18/22] IB/hns: Add CQ operations support

2016-06-16 Thread Lijun Ou
This patch was implementing for Completion Queue(CQ) operations. A CQ can be used to multiplex work completions from multiple work queues across queue pairs on the same HCA. CQ as the notification mechanism for Work Request completions. CQ operations as follows: 1. create CQ. CQ are created thr

[PATCH v10 17/22] IB/hns: Add QP operations support

2016-06-16 Thread Lijun Ou
This patch was implementing for queue pair operations. QP Consists of a Send Work Queue and a Receive Work Queue. Send and receive queues are always created as a pair and remain that way throughout their lifetime. A Queue Pair is identified by its Queue Pair Number. QP operations as follows: 1.

[PATCH v10 09/22] IB/hns: Add hca support

2016-06-16 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v10 04/22] IB/hns: Add RoCE engine reset function

2016-06-16 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8: - No change over the PATCH v7 PATCH v7: This fixes the comments given by Leon Romanovsk

[PATCH v10 07/22] IB/hns: Add event queue support

2016-06-16 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8: - No change over the PATC

[PATCH v10 10/22] IB/hns: Add process flow to init RoCE engine

2016-06-16 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9: - No change over the

[PATCH v10 14/22] IB/hns: Add operations support for IB device and port

2016-06-16 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v10 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-06-16 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v9: - No change over the PATCH v8 PATCH v8: This fixes the comments given by Joe Perches over the PATCH v7: Link: https://lkml.org/lkml/2016/5/25/396 PATCH v7/v6/v5/v4: - No change over the

[PATCH v10 15/22] IB/hns: Add PD operations support

2016-06-16 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redesigned ba

[PATCH v10 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-06-16 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6/v5: - No change over the PATCH v4 PATCH v4: This fixes the comments given by Christoph Hellwig over the PATCH v3: Link: https://lkm

[PATCH v10 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-06-16 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v9/v8/v7/v6/v5/v4/v3: - No change over the PATCH v2 PATCH v2: This fixes the comments given by Sergei Shtylyov over PATCH v1: Link: https://lkml.org/lkml/2016/3/11/304 PAT

[PATCH v10 20/22] IB/hns: Add operation for getting immutable port

2016-06-16 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v9: - No change over the PATCH v8 PATCH v8: - The initial patch -

[PATCH v10 19/22] IB/hns: Add memory region operations support

2016-06-16 Thread Lijun Ou
This patch was mainly for implementing of memory region. Memory Registration provides mechanisms that allow consumers to describe a set of virtually contiguous memory locations or a set of physically contiguous memory locations. MR operations includes as follows: 1. get dma MR in kernel mode

[PATCH net-next 12/13] qeth: omit outbound queue 3 for unicast packets in Priority Queuing on HiperSockets

2016-06-16 Thread Ursula Braun
From: Hans Wippel On HiperSockets only outbound queues 0 to 2 are available for unicast packets. Current Priority Queuing implementation in the qeth driver puts outgoing packets in outbound queues 0 to 3. This puts outgoing unicast packets into outbound queue 2 instead of outbound queue 3 when u

[PATCH net-next 03/13] qeth: clean up condition when tso is used

2016-06-16 Thread Ursula Braun
From: Eugene Crosser Make conditions under which TSO is activated more stringent. Make calculation of SBALEs required for the skb more accurate. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun --- drivers/s390/net/qeth_core.h| 6 ++ drivers/s390/net/qeth_l3_main.c | 44

[iproute PATCH 1/2] iplink: Add missing variable initialization

2016-06-16 Thread Phil Sutter
Without this, we might feed garbage to the kernel when the address is shorter than expected. Signed-off-by: Phil Sutter --- ip/iplink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iplink.c b/ip/iplink.c index d2e586b6d1332..4cb9bab66b916 100644 --- a/ip/iplink.c +++ b/

[PATCH net-next 13/13] s390/qeth: fix indentation in qeth_l3_arp_query

2016-06-16 Thread Ursula Braun
From: Sebastian Ott gcc-6 warns about obviously wrong indentation: drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_arp_query': drivers/s390/net/qeth_l3_main.c:2315:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (copy_to_user(udata, qinfo.udata, 4)) ^~ dri

[iproute PATCH 2/2] iplink: Check address length via netlink

2016-06-16 Thread Phil Sutter
This is a feature which was lost during the conversion to netlink interface: If the device exists and a user tries to change the link layer address, query the kernel for the old address first and reject the new one if sizes differ. This patch adds the same check when setting VF address by assuming

[PATCH net-next 09/13] qeth layer 2 and layer 3 common feature handling

2016-06-16 Thread Ursula Braun
From: Thomas Richter This patch introduces a common set of fix_features and set_features functions for layer 2 and layer 3. The RX, TX and TSO offload functionality on the OSA card is enabled using ethtool at user's request and not at device initialization as done before. For layer 3 the RX chec

[PATCH net-next 06/13] qeth: enable scatter/gather by default

2016-06-16 Thread Ursula Braun
From: Eugene Crosser Set scatter/gather ON by default on OSA, for both layer 2 and layer 3 modes. We always use fragmentation over QDIO anyway, so let the upper layers of the stack take advantage of that. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun Reviewed-by: Lakhvich Dmitriy

[PATCH net-next 08/13] qeth: optimize IP handling in rx_mode callback

2016-06-16 Thread Ursula Braun
From: Lakhvich Dmitriy In layer3 mode of the qeth driver, multicast IP addresses from struct net_device and other type of IP addresses from other sources require mapping to the OSA-card. This patch simplifies the IP address mapping logic, and changes imple- mentation of ndo_set_rx_mode callback a

[PATCH net-next 11/13] qeth: improve set_features error handling

2016-06-16 Thread Ursula Braun
From: Hans Wippel The function set_features is called to configure network device features on the hardware. If errors occur, the network device features should reflect the changed hardware state and the function should return an error in order to notify the user. In case of an error, the current

[iproute PATCH 0/2] Check MAC address length when changing it

2016-06-16 Thread Phil Sutter
Due to minimal checking in kernel space, MAC address setting was problematic in multiple ways: - Setting an overly long MAC address was accepted and the extra parts simply ignored. - Setting an overly short MAC address for VFs was accepted and the missing part filled with random garbage. Whi

[PATCH net-next 05/13] qeth: enable scatter/gather in layer 2 mode

2016-06-16 Thread Ursula Braun
From: Eugene Crosser The patch enables NETIF_F_SG flag for OSA in layer 2 mode. It also adds performance accounting for fragmented sends, adds a conditional skb_linearize() attempt if the skb had too many fragments for QDIO SBAL, and fills netdevice->gso_* attributes. Signed-off-by: Eugene Cross

[PATCH net-next 04/13] qeth: fill netdevice->gso_* attributes accurately

2016-06-16 Thread Ursula Braun
From: Eugene Crosser Use QETH_MAX_BUFFER_ELEMENTS(card) instead of constant 16. Also fill gso_max_segs and gso_min_segs. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun --- drivers/s390/net/qeth_l3_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH net-next 07/13] qeth: introduce linearization fail count to stats

2016-06-16 Thread Ursula Braun
From: Eugene Crosser When skb data touches too many pages, skb_linearize() is called opportunistically in the hope that less pages will be required for a big linear buffer than for multiple fragments. This patch intoduces a separate counter in ethtool statistics structure representing _failed_ li

[PATCH net-next 10/13] qeth: add network device features for VLAN devices

2016-06-16 Thread Ursula Braun
From: Hans Wippel Network device features indicate the capabilities of network devices (e.g., TX checksum offloading and TSO) and their configuration state. Additional network device features (vlan_features) indicate for each network device, which capabilities can be used on VLAN devices, that ar

[PATCH net-next 01/13] qeth: Include error message for "OS Mismatch"

2016-06-16 Thread Ursula Braun
From: Eugene Crosser Having understood the semantics of BRIDGEPORT error code 0x0010, we can introduce a meaningful error message. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun --- drivers/s390/net/qeth_l2_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/s3

[PATCH net-next 00/13] s390: qeth patches

2016-06-16 Thread Ursula Braun
From: Ursula Braun Hi Dave, here are patches for the s390 qeth driver for net-next: Patch 01 is a minor improvement for the bridgeport code in qeth. Patches 02-07 take care about scatter/gather handling in qeth. Patch 08 improves handling of multicast IP addresses in the qeth layer3 disciplin

[PATCH net-next 02/13] qeth: refactor calculation of SBALE count

2016-06-16 Thread Ursula Braun
From: Eugene Crosser Rewrite the functions that calculate the required number of buffer elements needed to represent SKB data, to make them hopefully more comprehensible. Plus a few cleanups. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun --- drivers/s390/net/qeth_core.h | 13

[PATCH 4/8] hamradio: baycom: fix old-style declaration

2016-06-16 Thread Arnd Bergmann
Modern C standards expect the '__inline__' keyword to come before the return type in a declaration, and we get a warning for this with "make W=1": drivers/net/hamradio/baycom_par.c:159:1: error: '__inline__' is not at beginning of declaration [-Werror=old-style-declaration] For consistency with

[PATCH 6/8] net: gianfar: fix old-style declaration

2016-06-16 Thread Arnd Bergmann
Modern C standards expect the '__inline__' keyword to come before the return type in a declaration, and we get a warning for this with "make W=1": drivers/net/ethernet/freescale/gianfar.c:2278:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] Signed-off-by: Ar

RE: [PATCH 1/5] net: qlcnic: don't set unused function argument

2016-06-16 Thread Rajesh Borundia
>-Original Message- >From: Arnd Bergmann [mailto:a...@arndb.de] >Sent: Thursday, June 16, 2016 5:08 PM >To: Dept-GE Linux NIC Dev >Cc: Arnd Bergmann ; David Miller >; Rajesh Borundia ; >netdev ; linux-kernel ker...@vger.kernel.org> >Subject: [PATCH 1/5] net: qlcnic: don't set unused functi

[PATCH 7/8] net: xfrm: fix old-style declaration

2016-06-16 Thread Arnd Bergmann
Modern C standards expect the '__inline__' keyword to come before the return type in a declaration, and we get a couple of warnings for this with "make W=1" in the xfrm{4,6}_policy.c files: net/ipv6/xfrm6_policy.c:369:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declar

[PATCH 8/8] sunrpc: fix old-style declaration

2016-06-16 Thread Arnd Bergmann
Modern C standards expect the 'static' keyword to come before the return type in a declaration, and we get a warning for this with "make W=1": net/sunrpc/clnt.c:2580:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] Signed-off-by: Arnd Bergmann --- net/sunrp

<    1   2   3   >