MERGE net --> net-next

2015-12-03 Thread David Miller
I've merged net into net-next. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH (net.git)] stmmac: fix resource management when resume

2015-12-03 Thread Giuseppe CAVALLARO
Hi David This is the v2, sorry I missed it in the subject. Re-based on top of net.git. peppe On 12/4/2015 7:21 AM, Giuseppe Cavallaro wrote: There is a memleak when suspend/resume this driver version. Currently the stmmac, during resume step, reallocates all the resources but they are not

[PATCH] VSOCK: mark virtio_transport.ko experimental

2015-12-03 Thread Stefan Hajnoczi
Be explicit that the virtio_transport.ko code implements a draft virtio specification that is still subject to change. Signed-off-by: Stefan Hajnoczi --- If you'd rather wait until the device specification has been finalized, feel free to revert the virtio-vsock code for

Re: ipsec impact on performance

2015-12-03 Thread Sandy Harris
This article is old (turn of the century) but it may have numbers worth comparing to http://www.freeswan.org/freeswan_trees/CURRENT-TREE/doc/performance.html -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH (net.git)] stmmac: fix resource management when resume

2015-12-03 Thread Giuseppe Cavallaro
There is a memleak when suspend/resume this driver version. Currently the stmmac, during resume step, reallocates all the resources but they are not released when suspend. The patch is not to release these resources but the logic has been changed. In fact, it is not necessary to free and

Re: [PATCH v2 0/5] Add virtio transport for AF_VSOCK

2015-12-03 Thread Michael S. Tsirkin
On Wed, Dec 02, 2015 at 02:43:58PM +0800, Stefan Hajnoczi wrote: > v2: > * Rebased onto Linux v4.4-rc2 > * vhost: Refuse to assign reserved CIDs > * vhost: Refuse guest CID if already in use > * vhost: Only accept correctly addressed packets (no spoofing!) > * vhost: Support flexible rx/tx

[PATCH v2] Revert "i40e: remove CONFIG_I40E_VXLAN"

2015-12-03 Thread Anjali Singhai Jain
This reverts commit 8fe269991aece394a7ed274f525d96c73f94109a. The case where VXLAN is a module and i40e driver is inbuilt will not be handled properly with this change since i40e will have an undefined symbol vxlan_get_rx_port in it. v2: Add a signed-off-by. Signed-off-by: Anjali Singhai Jain

[PATCH v4 1/1] atm: solos-pci: Replace simple_strtol by kstrtoint

2015-12-03 Thread LABBE Corentin
The simple_strtol function is obsolete. This patch replace it by kstrtoint. This will simplify code, since some error case not handled by simple_strtol are handled by kstrtoint. Signed-off-by: LABBE Corentin --- drivers/atm/solos-pci.c | 28

[PATCH v4 0/1] atm: solos-pci: Replace simple_strtol by kstrtoint

2015-12-03 Thread LABBE Corentin
Hello Change since v3 - rework the test logic with ver/err Change since v2 - Invert a test logic Change since v1 - Always return error code from kstrtox. LABBE Corentin (1): atm: solos-pci: Replace simple_strtol by kstrtoint drivers/atm/solos-pci.c | 28 +--- 1 file

Re: ipsec impact on performance

2015-12-03 Thread Steffen Klassert
On Wed, Dec 02, 2015 at 07:05:38AM -0500, Sowmini Varadhan wrote: > On (12/02/15 07:53), Steffen Klassert wrote: > > > > I'm currently working on a GRO/GSO codepath for IPsec too. The GRO part > > works already. I decapsulate/decrypt the packets on layer2 with a esp GRO > > callback function and

Re: [patch net-next v2 4/6] mlxsw: core: Implement temperature hwmon interface

2015-12-03 Thread Or Gerlitz
On Thu, Dec 3, 2015 at 10:19 AM, Jiri Pirko wrote: > Thu, Dec 03, 2015 at 12:37:58AM CET, da...@davemloft.net wrote: >>From: Jiri Pirko >>Date: Wed, 2 Dec 2015 23:35:31 +0100 >> >>> Why to continue to work if we know that we are making things wrong >>>

[net-next v2 01/15] ixgbe: Prevent KR PHY reset in ixgbe_init_phy_ops_x550em

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad This patch removes KR PHY reset from ixgbe_init_phy_ops_x550em, since this function is meant to initialize function pointers for the detected PHY type. Internal PHY reset was moved to ixgbe_setup_internal_phy_t_x550em which will now detect which mode

Re: ipsec impact on performance

2015-12-03 Thread Sowmini Varadhan
On (12/03/15 09:45), Steffen Klassert wrote: > pcrypt(echainiv(authenc(hmac(sha1-ssse3),cbc-aes-aesni))) > > Result: > > iperf -c 10.0.0.12 -t 60 > > Client connecting to 10.0.0.12, TCP port 5001 > TCP window size: 45.0 KByte (default)

Re: [PATCH] i40e: Fix i40e_print_features() VEB mode output

2015-12-03 Thread Jeff Kirsher
On Wed, 2015-12-02 at 00:38 -0800, Joe Perches wrote: > Commit 7fd89545f337 ("i40e: remove BUG_ON from feature string > building") > added defective output when I40E_FLAG_VEB_MODE_ENABLED was set in > function i40e_print_features. > > Fix it. > > Miscellanea: > > o Remove unnecessary string

[PATCH V7 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-03 Thread Salil Mehta
From: Salil This patch adds the support of ethtool TSO option to support Hip06 SoC to HNS Signed-off-by: Salil Mehta Signed-off-by: lisheng --- PATCH V7/V6/V5: - No change over the previous patch PATCH V4: This fixes the

[net-next v2] i40e: Fix i40e_print_features() VEB mode output

2015-12-03 Thread Jeff Kirsher
From: Joe Perches Commit 7fd89545f337 ("i40e: remove BUG_ON from feature string building") added defective output when I40E_FLAG_VEB_MODE_ENABLED was set in function i40e_print_features. Fix it. Miscellanea: - Remove unnecessary string variable - Add space before not after

[PATCH V7 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-03 Thread Salil Mehta
This patchset adds support of Hisilicon Hip06 SoC to the existing HNS ethernet driver. The changes in the driver are mainly due to changes in the DMA descriptor provided by the Hip06 ethernet hardware. These changes need to co-exist with already present Hip05 DMA descriptor and its operating

Re: [patch net-next v3 04/28] net: add netif_is_team_master helper

2015-12-03 Thread Eric Dumazet
On Thu, 2015-12-03 at 12:12 +0100, Jiri Pirko wrote: > * struct net_device - The DEVICE structure. > @@ -3887,6 +3890,11 @@ static inline bool netif_is_ovs_master(const struct > net_device *dev) > return dev->priv_flags & IFF_OPENVSWITCH; > } > > +static inline bool

rhashtable: ENOMEM errors when hit with a flood of insertions

2015-12-03 Thread Herbert Xu
On Mon, Nov 30, 2015 at 06:18:59PM +0800, Herbert Xu wrote: > > OK that's better. I think I see the problem. The test in > rhashtable_insert_rehash is racy and if two threads both try > to grow the table one of them may be tricked into doing a rehash > instead. > > I'm working on a fix. While

[net-next v5 1/8] devres: add devm_alloc_percpu()

2015-12-03 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur Tested-by: Madalin-Cristian Bucur ---

[net-next v5 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-03 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. The DPAA Ethernet driver defines a ndo_select_queue() callback for optimal selection of the egress FQ. That will override the XPS support for this netdevice and should provide a certain increase in performance. Standard XPS support

[net-next v5 2/8] dpaa_eth: add support for DPAA Ethernet

2015-12-03 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur ---

[v9, 6/6] fsl/fman: Add FMan MAC driver

2015-12-03 Thread igal.liberman
From: Igal Liberman This patch adds the Ethernet MAC driver supporting the three different types of MACs: dTSEC, tGEC and mEMAC. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |3 +-

[v9, 5/6] fsl/fman: Add FMan Port Support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Port Driver. The FMan driver uses a module called "Port" to represent the physical TX and RX ports. Each FMan version has different number of physical ports. This patch adds The FMan Port

[patch net-next v3 06/28] net: add netif_is_lag_master helper

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Some code does not mind if the master is bond or team and treats them the same, as generic LAG. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/netdevice.h

[v9, 2/6] fsl/fman: Add FMan support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Driver. The FMan embeds a series of hardware blocks that implement a group of Ethernet interfaces. This patch adds The FMan configuration, initialization and runtime control routines. The

[PATCH net 3/4] qed: Fix BAR size split for some servers

2015-12-03 Thread Manish Chopra
From: Ariel Elior Can't rely on pci config space to discover bar size, as in some environments this returns a wrong, too large value. Instead, rely on device register, which contains the value provided by MFW at preboot. Signed-off-by: Ariel Elior

[PATCH net 0/4] qed: Bug fixes

2015-12-03 Thread Manish Chopra
Hi David, Please consider applying this seris for net. Thanks, Manish Ariel Elior (1): qed: Fix BAR size split for some servers Sudarsana Kalluru (1): qed: Correct slowpath interrupt scheme Tomer Tayar (2): qed: Fix corner case for chain in-between pages qed: fix handling of

Re: ipsec impact on performance

2015-12-03 Thread Steffen Klassert
On Thu, Dec 03, 2015 at 06:38:20AM -0500, Sowmini Varadhan wrote: > On (12/03/15 09:45), Steffen Klassert wrote: > > pcrypt(echainiv(authenc(hmac(sha1-ssse3),cbc-aes-aesni))) > > > > Result: > > > > iperf -c 10.0.0.12 -t 60 > > > >

[net-next v5 3/8] dpaa_eth: add support for S/G frames

2015-12-03 Thread Madalin Bucur
Add support for Scatter/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur ---

Re: [PATCH v3 1/1] atm: solos-pci: Replace simple_strtol by kstrtoint

2015-12-03 Thread LABBE Corentin
On Thu, Dec 03, 2015 at 06:26:31AM -0500, Charles (Chas) Williams wrote: > On Thu, 2015-12-03 at 09:06 +0100, LABBE Corentin wrote: > > @@ -357,11 +357,11 @@ static int process_status(struct solos_card *card, > > int port, struct sk_buff *skb > > if (!str) > > return -EIO; > > >

[net-next v2 08/15] ixgbe: Allow FDB entries access to more RAR filters

2015-12-03 Thread Jeff Kirsher
From: Alexander Duyck This change makes it so that we allow the PF to make use of all free RAR entries for FDB use if needed. Previously the code limited us to 16 unicast entries, however this was shared between MACVLAN which wasn't limited and the FDB code which was. So

[net-next v2 00/15][pull request] Intel Wired LAN Driver Updates 2015-12-03

2015-12-03 Thread Jeff Kirsher
This series contains updates to ixgbe and ixgbevf only. Mark cleans up ixgbe_init_phy_ops_x550em, since this was designed to initialize function pointers only and moves the KR PHY reset to the ixgbe_setup_internal_phy_t_x550em which was designed to detect which mode the PHY operates in and set it

[net-next v5 0/8] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-12-03 Thread
From: Madalin Bucur This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul

[v9, 1/6] fsl/fman: Add FMan MURAM support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add Frame Manager Multi-User RAM support. This internal FMan memory block is used by the FMan hardware modules, the management being made through the generic allocator. The FMan Internal memory, for example, is used for allocating transmit and

[v9, 4/6] fsl/fman: Add FMan SP support

2015-12-03 Thread igal.liberman
From: Igal Liberman The Storage Profiles contain parameters that are used by the FMan for frame reception and transmission. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |2 +-

[v9, 0/6] Freescale DPAA FMan

2015-12-03 Thread igal.liberman
From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators

[net-next v5 1/8] devres: add devm_alloc_percpu()

2015-12-03 Thread
From: Madalin Bucur Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur Tested-by: Madalin-Cristian Bucur

[net-next v5 5/8] dpaa_eth: add ethtool functionality

2015-12-03 Thread
From: Madalin Bucur Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 +

[v9, 3/6] fsl/fman: Add FMan MAC support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger MAC support. This patch adds The FMan MAC configuration, initialization and runtime control routines. This patch contains support for these types of MACs: - dTSEC: Three speed

[net-next v5 3/8] dpaa_eth: add support for S/G frames

2015-12-03 Thread
From: Madalin Bucur Add support for Scatter/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur

[net-next v5 2/8] dpaa_eth: add support for DPAA Ethernet

2015-12-03 Thread
From: Madalin Bucur This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by:

[PATCH V7 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-12-03 Thread Salil Mehta
This patch adds the support of "RSS (Receive Side Scaling)" feature provided by the Hip06 ethernet hardware to the HNS ethernet driver. This feature helps in distributing the different flows (mapped as hash by hardware using Toeplitz Hash) to different Queues asssociated with the processor cores.

[PATCH V7 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-12-03 Thread Salil Mehta
This patch adds the support of "TSO (TCP Segment Offload)" feature provided by the Hip06 ethernet hardware to the HNS ethernet driver. Enabling this feature would help offload the TCP Segmentation process to the Hip06 ethernet hardware. This eventually would help in saving precious cpu cycles.

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-03 Thread Christian Zigotzky
Hi Michael, I checked out the Linux git till the commit 'powerpc-4.3-1' git checkout ff474e8ca8547d09cb82ebab56d4c96f9eea01ce Output: Checking out files: 100% (13843/13843), done. Note: checking out 'ff474e8ca8547d09cb82ebab56d4c96f9eea01ce'. You are in 'detached HEAD' state. You can look

[net-next v5 6/8] dpaa_eth: add ethtool statistics

2015-12-03 Thread
From: Madalin Bucur Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames

[PATCH net-next v2] vxlan: consolidate output route calculation

2015-12-03 Thread Jiri Benc
The code for output route lookup is duplicated for ndo_start_xmit and ndo_fill_metadata_dst. Move it to a common function. Signed-off-by: Jiri Benc --- This applies on top of the "vxlan: IPv6 fill_metadata_dst support" patchset submitted to net.git. v2: rebased on top of the

[PATCH net 4/4] qed: Correct slowpath interrupt scheme

2015-12-03 Thread Manish Chopra
From: Sudarsana Kalluru When using INTa, ISR might be called before device is configured for INTa [E.g., due to other device asserting the shared interrupt line], in which case the ISR would read the SISR registers that shouldn't be read unless HW is already

[PATCH net 2/4] qed: fix handling of concurrent ramrods

2015-12-03 Thread Manish Chopra
From: Tomer Tayar Concurrent non-blocking slowpath ramrods can be completed out-of-order on the completion chain. Recycling completed elements, while previously sent elements are still completion pending, can lead to overriding of active elements on the chain.

[PATCH net 1/4] qed: Fix corner case for chain in-between pages

2015-12-03 Thread Manish Chopra
From: Tomer Tayar The amount of chain next pointer elements between the producer and the consumer indices depends on which pages they currently point to. The current calculation is based only on their difference, and it can lead to a number of free elements which is

[PATCH V7 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-12-03 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta --- PATCH V7: - This

[PATCH V7 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-03 Thread Salil Mehta
This PATCH V7 addresses the TAB formatting comments by Sergei Shtylyov. Missing TABs at some other palces have also been corrected. PATCH V6: This addresses the review comments provided by David Miller over the existing use of ENABLE/DISABLE hash defines with the code. These hash defines are

[net-next v2 02/15] ixgbe: Add support for newer thermal alarm

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad The newer copper PHY implementation used with newer X550EM_x devices uses a different thermal alarm type than the earlier one. Make changes to support both types. Signed-off-by: Mark Rustad Tested-by: Darin Miller

[net-next v2 10/15] ixgbe: Correct spec violations by waiting after reset

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad The ixgbe driver was violating the specification in the datasheet by not waiting 1ms before checking for the reset bit clearing. This is called out for devices supported by ixgbe, so implement the required delay. Reported-by: Dan Streetman

[net-next v2 11/15] ixgbe: Wait for master disable to be set

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad According to the datasheets, the driver should wait for the master disable bit to read as being set before checking the status register for master disable. Reported-by: Dan Streetman Signed-off-by: Mark Rustad

[net-next v2 07/15] ixgbe: Use __dev_uc_sync and __dev_uc_unsync for unicast addresses

2015-12-03 Thread Jeff Kirsher
From: Alexander Duyck This change replaces the ixgbe_write_uc_addr_list call in ixgbe_set_rx_mode with a call to __dev_uc_sync instead. This works much better with the MAC addr list code that was already in place and solves an issue in which you couldn't remove an FDB

[net-next v2 13/15] ixgbe: Handle extended IPv6 headers in Tx path

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Check for and handle IPv6 extended headers so that Tx checksum offload can be done. Also use skb_checksum_help for unexpected cases. Thanks to Tom Herbert for noticing these problems. Thanks to Alexander Duyck for recognizing problems with the first

[net-next v2 15/15] ixgbevf: Handle extended IPv6 headers in Tx path

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Check for and handle IPv6 extended headers so that Tx checksum offload can be done. Also use skb_checksum_help for unexpected cases. Thanks to Tom Herbert for noticing these problems. Thanks to Alexander Duyck for seeing how to coalesce the error

[net-next v2 06/15] ixgbe: Refactor MAC address configuration code

2015-12-03 Thread Jeff Kirsher
From: Alexander Duyck In the process of tracking down a memory leak when adding/removing FDB entries I had to go through the MAC address configuration code for ixgbe. In the process of doing so I found a number of issues that impacted readability and performance. This

[net-next v2 03/15] ixgbe: Use private workqueue to avoid certain possible hangs

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Use a private workqueue to avoid hangs that were otherwise possible when performing stress tests, such as creating and destroying many VFS repeatedly. Signed-off-by: Mark Rustad Tested-by: Darin Miller

[net-next v2 12/15] ixgbe: Save VF info and take references

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Save VF device pointers and take references to speed accesses used to monitor the device behavior to avoid slot resets. The saved information avoids lock contention during the search used to access each of the VFs. Signed-off-by: Mark Rustad

[net-next v2 05/15] ixgbevf: Minor cleanups

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Make some minor cleanups, such as simplifying return paths, deleting unneeded initializations, return values more directly and so forth. Signed-off-by: Mark Rustad Tested-by: Darin Miller

[net-next v2 09/15] ixgbe: Update PTP to support X550EM_x devices

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad The X550EM_x devices handle clocking differently, so update the PTP implementation to accommodate them. This involves significant changes to ixgbe's PTP code to accommodate the new range of behaviors including things like non-power-of-2 clock wrapping.

[net-next v2 14/15] ixgbe: Always turn PHY power on when requested

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Instead of inhibiting PHY power control when manageability is present, only inhibit turning PHY power off when manageability is present. Consequently, PHY power will always be turned on when requested. Without this patch, some systems with X540 or X550

[net-next v2 04/15] ixgbevf: Use a private workqueue to avoid certain possible hangs

2015-12-03 Thread Jeff Kirsher
From: Mark Rustad Use a private workqueue to avoid hangs that were otherwise possible when performing stress tests, such as creating and destroying many VFS repeatedly. Signed-off-by: Mark Rustad Tested-by: Darin Miller

[patch net-next v3 10/28] net: add info struct for LAG changeupper

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko This struct will be shared by bonding and team to pass internal information to notifier listeners. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 13 + 1 file changed, 13 insertions(+) diff --git

[patch net-next v3 15/28] team: rtnl_lock for options set

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko During options set, there will be needed to hold rtnl_mutex in order to safely call netdev notifiers. Signed-off-by: Jiri Pirko --- drivers/net/team/team.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

[patch net-next v3 22/28] mlxsw: pci: Implement LAG processing for received packets

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Completion queue element for receive queue provides information if the packet was received via LAG port. Extract this info and pass it along to core. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/pci.c | 19

[patch net-next v3 19/28] bonding: set inactive flags on release

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Be correct and symmetric to enslave and set inactive flags during release. That gives LAG offload drivers - lower state change listeners - possibility to do proper cleanup. Signed-off-by: Jiri Pirko --- drivers/net/bonding/bond_main.c | 2

[patch net-next v3 21/28] mlxsw: core: Add support for packets received from LAG port

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Lower layer (pci) has information if the packet is received via LAG port. If that is the case, it fills up rx_info accordingly. However upper layer does not care about lag_id/port_index for received packets so convert it to local_port before passing it up. For

[patch net-next v3 07/28] net: add netif_is_lag_port helper

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Some code does not mind if a device is bond slave or team port and treats them the same, as generic LAG ports. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 5 + 1 file changed, 5 insertions(+) diff --git

[patch net-next v3 25/28] mlxsw: reg: Add definition of LAG unicast record for SFN register

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko LAG-related records have specific format in SFN register. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git

[patch net-next v3 09/28] net: add possibility to pass information about upper device via notifier

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Sometimes the drivers and other code would find it handy to know some internal information about upper device being changed. So allow upper-code to pass information down to notifier listeners during linking. Signed-off-by: Jiri Pirko ---

[patch net-next v3 03/28] bonding: add 802.3ad support for 100G speeds

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Similar to other speeds, add 100G to bonding 802.3ad code. Signed-off-by: Jiri Pirko --- drivers/net/bonding/bond_3ad.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_3ad.c

[patch net-next v3 20/28] mlxsw: spectrum: Add set_rx_mode ndo stub

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Add just a stub for now. This allows to pass check in dev_ifsioc, SIOCADDMULTI and SIOCDELMULTI cases. Teamd is using these to add LACP slow MAC. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 5 + 1

[patch net-next v3 14/28] net: introduce lower state changed info structure for LAG lowers

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko This is shared info structure for bonding and team. Serves to pass down info about link state and port activity to notification listeners. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 5 + 1 file changed, 5 insertions(+)

[patch net-next v3 23/28] mlxsw: reg: Add link aggregation configuration registers definitions

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Add definitions of SLDR, SLCR2, SLCOR registers that are used to configure LAG. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 293 ++ 1 file changed, 293 insertions(+) diff --git

[patch net-next v3 24/28] mlxsw: reg: Add definition of LAG unicast record for SFD register

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko LAG-related records have specific format in SFD register. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 79 +++ 1 file changed, 71 insertions(+), 8 deletions(-) diff --git

[patch net-next v3 12/28] bonding: fill-up LAG changeupper info struct and pass it along

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Initialize netdev_lag_upper_info structure by TX type according to current bonding mode and pass it along via netdev_master_upper_dev_link. Signed-off-by: Jiri Pirko Reviewed-by: Nikolay Aleksandrov ---

[patch net-next v3 01/28] net: Check CHANGEUPPER notifier return value

2015-12-03 Thread Jiri Pirko
From: Ido Schimmel switchdev drivers reflect the newly requested topology to hardware when CHANGEUPPER is received, after software links were already formed. However, the operation can fail and user will not be notified, as the return value of the notifier is not checked.

[patch net-next v3 05/28] net: add netif_is_team_port helper

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Similar to other helpers, caller can use this to find out if device is team port. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/netdevice.h

[patch net-next v3 11/28] team: fill-up LAG changeupper info struct and pass it along

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Initialize netdev_lag_upper_info structure by TX type according to current team mode and pass it along via netdev_master_upper_dev_link. Signed-off-by: Jiri Pirko --- drivers/net/team/team.c | 23 ---

[net-next v5 8/8] dpaa_eth: add trace points

2015-12-03 Thread
From: Madalin Bucur Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++

[patch net-next v3 17/28] bonding: allow notifications for bond_set_slave_link_state

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Similar to state notifications. We allow caller to indicate if the notification should happen now or later, depending on if he holds rtnl mutex or not. Introduce bond_slave_link_notify function (similar to bond_slave_state_notify) which is later on called

[patch net-next v3 26/28] mlxsw: spectrum: Implement LAG port join/leave

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Implement basic procedures for joining/leaving port to/from LAG. That includes HW setup of collector, core LAG mapping setup. Signed-off-by: Jiri Pirko --- v1->v2: - return NOTIFY_BAD in case join/leave fails as requested by Andy - change

[net-next v5 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-03 Thread
From: Madalin Bucur Allow the selection of the transmission queue based on the CPU id. The DPAA Ethernet driver defines a ndo_select_queue() callback for optimal selection of the egress FQ. That will override the XPS support for this netdevice and should provide a

[patch net-next v3 04/28] net: add netif_is_team_master helper

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Similar to other helpers, caller can use this to find out if device is team master. Signed-off-by: Jiri Pirko --- drivers/net/team/team.c | 1 + include/linux/netdevice.h | 8 2 files changed, 9 insertions(+) diff --git

[patch net-next v3 02/28] net: Add support for CHANGEUPPER notifier error injection

2015-12-03 Thread Jiri Pirko
From: Ido Schimmel Since CHANGEUPPER can now fail, add support for it in the newly introduced netdev notifier error injection infrastructure. Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko Acked-by: Nikolay Aleksandrov

[patch net-next v3 28/28] mlxsw: spectrum: Implement LAG tx enabled lower state change

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Enabling/disabling TX on a LAG port means enabling/disabling distribution in our HW. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 81 +- 1 file changed, 79 insertions(+), 2

[patch net-next v3 00/28] bonding/team offload + mlxsw implementation

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko This patchset introduces needed infrastructure for link aggregation offload - for both team and bonding. It also implements the offload in mlxsw driver. Particulary, this patchset introduces possibility for upper driver (bond/team/bridge/..) to pass

[patch net-next v3 16/28] team: implement lower state change propagation

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Let netdev notifier listeners know about link-up and port-enable state changes. Signed-off-by: Jiri Pirko --- drivers/net/team/team.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[patch net-next v3 13/28] net: introduce change lower state notifier

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko When lower device like bonding slave, team/bridge port, etc changes its state, it is useful for others to notice this change. Currently this is implemented specificly for bonding as NETDEV_BONDING_INFO notifier. This patch aims to replace this specific usage

[patch net-next v3 27/28] mlxsw: spectrum: Implement FDB add/remove/dump for LAG

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Implement FDB offloading for lagged ports, including learning LAG FDB entries, adding/removing static FDB entries and dumping existing LAG FDB entries. Signed-off-by: Jiri Pirko --- .../ethernet/mellanox/mlxsw/spectrum_switchdev.c | 182

[net-next v5 7/8] dpaa_eth: add sysfs exports

2015-12-03 Thread
From: Madalin Bucur Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +

[patch net-next v3 18/28] bonding: implement lower state change propagation

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Let netdev notifier listeners know about link and slave state change. Signed-off-by: Jiri Pirko --- drivers/net/bonding/bond_main.c | 10 ++ include/net/bonding.h | 7 +++ 2 files changed, 17 insertions(+) diff

[patch net-next v3 08/28] net: propagate upper priv via netdev_master_upper_dev_link

2015-12-03 Thread Jiri Pirko
From: Jiri Pirko Eliminate netdev_master_upper_dev_link_private and pass priv directly as a parameter of netdev_master_upper_dev_link. Signed-off-by: Jiri Pirko --- drivers/net/bonding/bond_main.c | 2 +- drivers/net/team/team.c | 2 +-

[net-next v5 7/8] dpaa_eth: add sysfs exports

2015-12-03 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 +

[net-next v5 8/8] dpaa_eth: add trace points

2015-12-03 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h

[net-next v5 6/8] dpaa_eth: add ethtool statistics

2015-12-03 Thread Madalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion

Re: [PATCH v3 1/1] atm: solos-pci: Replace simple_strtol by kstrtoint

2015-12-03 Thread Charles (Chas) Williams
On Thu, 2015-12-03 at 09:06 +0100, LABBE Corentin wrote: > @@ -357,11 +357,11 @@ static int process_status(struct solos_card *card, int > port, struct sk_buff *skb > if (!str) > return -EIO; > > - ver = simple_strtol(str, NULL, 10); > - if (ver < 1) { > + err =

  1   2   3   4   >