[PATCH net-next] add documents for snmp counters

2018-11-25 Thread yupeng
Add explaination of below counters: TcpExtTCPRcvCoalesce TcpExtTCPAutoCorking TcpExtTCPOrigDataSent TCPSynRetrans TCPFastOpenActiveFail TcpExtListenOverflows TcpExtListenDrops TcpExtTCPHystartTrainDetect TcpExtTCPHystartTrainCwnd TcpExtTCPHystartDelayDetect TcpExtTCPHystartDelayCwnd

RE: [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support

2018-11-25 Thread Ioana Ciocoi Radulescu
> -Original Message- > From: David Ahern > Sent: Saturday, November 24, 2018 11:49 PM > To: Ioana Ciocoi Radulescu ; > netdev@vger.kernel.org; da...@davemloft.net > Cc: Ioana Ciornei > Subject: Re: [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support > > On 11/23/18 9:56 AM, Ioana

[PATCH net] sctp: increase sk_wmem_alloc when head->truesize is increased

2018-11-25 Thread Xin Long
I changed to count sk_wmem_alloc by skb truesize instead of 1 to fix the sk_wmem_alloc leak caused by later truesize's change in xfrm in Commit 02968ccf0125 ("sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit"). But I should have also increased sk_wmem_alloc when head->truesize is

[PATCH rdma-next 6/7] IB/mlx5: Update the supported DEVX commands

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Update the supported DEVX commands, it includes adding to the query/modify command's list and to the encoding handling. In addition, a valid range for general commands was added to be used for future commands. Signed-off-by: Yishai Hadas Reviewed-by: Artemy Kovalyov

[PATCH rdma-next 7/7] IB/mlx5: Allow XRC usage via verbs in DEVX context

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Allows XRC usage from the verbs flow in a DEVX context. As XRCD is some shared kernel resource between processes it should be created with UID=0 to point on that. As a result once XRC QP/SRQ are created they must be used as well with UID=0 so that firmware will allow the XRCD

[PATCH rdma-next 5/7] IB/mlx5: Enforce DEVX privilege by firmware

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Enforce DEVX privilege by firmware, this enables future device functionality without the need to make driver changes unless a new privilege type will be introduced. Signed-off-by: Yishai Hadas Reviewed-by: Artemy Kovalyov Signed-off-by: Leon Romanovsky ---

[PATCH mlx5-next 1/7] net/mlx5: Update mlx5_ifc with DEVX UCTX capabilities bits

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Expose device capabilities for DEVX user context, it includes which caps the device is supported and a matching bit to set as part of user context creation. Signed-off-by: Yishai Hadas Reviewed-by: Artemy Kovalyov Signed-off-by: Leon Romanovsky ---

[PATCH rdma-next 0/7] Enrich DEVX support

2018-11-25 Thread Leon Romanovsky
From: Leon Romanovsky >From Yishai, --- This series enriches DEVX support in few aspects: it enables interoperability between DEVX and verbs and improves mechanism for controlling privileged DEVX commands. The first patch updates mlx5 ifc file. Next 3 patches

[PATCH rdma-next 3/7] IB/core: Enable getting an object type from a given uobject

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Enable getting an object type from a given uobject, the type is saved upon tree merging and is returned as part of some helper function. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/core/rdma_core.h | 5 -

[PATCH rdma-next 2/7] IB/core: Introduce UVERBS_IDR_ANY_OBJECT

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Introduce the UVERBS_IDR_ANY_OBJECT type to match any IDR object. Once used, the infrastructure skips checking for the IDR type, it becomes the driver handler responsibility. This enables drivers to get in a given method an object from various of types. Signed-off-by:

[PATCH rdma-next 4/7] IB/mlx5: Enable modify and query verbs objects via DEVX

2018-11-25 Thread Leon Romanovsky
From: Yishai Hadas Enables modify and query verbs objects via the DEVX interface. To support this the above DEVX handlers were changed to get any object type via the UVERBS_IDR_ANY_OBJECT mechanism. The type checking and handling is done per object as part of the driver code. Signed-off-by:

Re: [PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread Eric Dumazet
On 11/25/2018 07:52 PM, David Miller wrote: > > I fixed up the build in your original patch and am about to push that > out. Thanks David, sorry for this, I should have compiled the damn thing :/

Re: pull-request: bpf 2018-11-25

2018-11-25 Thread David Miller
From: Daniel Borkmann Date: Mon, 26 Nov 2018 01:16:51 +0100 > The following pull-request contains BPF updates for your *net* tree. Pulled, thanks.

Re: [PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread David Miller
From: Eric Dumazet Date: Sun, 25 Nov 2018 15:37:43 -0800 > On Sun, Nov 25, 2018 at 10:29 AM David Miller wrote: >> >> From: Eric Dumazet >> Date: Sun, 25 Nov 2018 08:26:23 -0800 >> >> > I do not see how one can effectively use skb_insert() without holding >> > some kind of lock. Otherwise

Re: [PATCH net-next] net: phy: fix two issues with linkmode bitmaps

2018-11-25 Thread Andrew Lunn
> Because function naming is the same I'm afraid they easily can be used > incorrectly (the bugs we just discuss are good examples). Maybe it > could be an option to reflect the semantics in the name like this > (better suited proposals welcome): > > case 1: mii_xxx_to_linkmode_yyy > case 2:

Re: consistency for statistics with XDP mode

2018-11-25 Thread Toshiaki Makita
On 2018/11/23 1:43, David Ahern wrote: > On 11/21/18 5:53 PM, Toshiaki Makita wrote: >>> We really need consistency in the counters and at a minimum, users >>> should be able to track packet and byte counters for both Rx and Tx >>> including XDP. >>> >>> It seems to me the Rx and Tx packet, byte

Re: [PATCH bpf-next 1/3] bpf: helper to pop data from messages

2018-11-25 Thread Daniel Borkmann
On 11/23/2018 02:38 AM, John Fastabend wrote: > This adds a BPF SK_MSG program helper so that we can pop data from a > msg. We use this to pop metadata from a previous push data call. > > Signed-off-by: John Fastabend > --- > include/uapi/linux/bpf.h | 13 +++- > net/core/filter.c| 169

Re: [PATCH bpf-next 0/3] bpf: add sk_msg helper sk_msg_pop_data

2018-11-25 Thread Daniel Borkmann
On 11/23/2018 02:38 AM, John Fastabend wrote: > After being able to add metadata to messages with sk_msg_push_data we > have also found it useful to be able to "pop" this metadata off before > sending it to applications in some cases. This series adds a new helper > sk_msg_pop_data() and the

Re: [PATCH bpf-next] bpf: align map type names formatting.

2018-11-25 Thread Daniel Borkmann
On 11/24/2018 12:58 AM, David Calavera wrote: > Make the formatting for map_type_name array consistent. > > Signed-off-by: David Calavera Applied, thanks!

Re: [PATCH] tags: Fix DEFINE_PER_CPU expansion

2018-11-25 Thread Daniel Borkmann
On 11/24/2018 12:48 AM, Rustam Kovhaev wrote: > Building tags produces warning: > ctags: Warning: kernel/bpf/local_storage.c:10: null expansion of name > pattern "\1" > > Let's use the same fix as in commit <25528213fe9f75f4>, even though it > violates the usual code style. > > Signed-off-by:

pull-request: bpf 2018-11-25

2018-11-25 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net* tree. The main changes are: 1) Fix an off-by-one bug when adjusting subprog start offsets after patching, from Edward. 2) Fix several bugs such as overflow in size allocation in queue / stack map creation, from

[PATCH linux-next 05/10] ARM: dts: dra7: switch to use phy-gmii-sel

2018-11-25 Thread Grygorii Strashko
Switch to use phy-gmii-sel PHY instead of cpsw-phy-sel. Cc: Kishon Vijay Abraham I Cc: Tony Lindgren Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/dra7-l4.dtsi | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/dra7-l4.dtsi

[PATCH linux-next 09/10] dt-bindings: net: ti: deprecate cpsw-phy-sel bindings

2018-11-25 Thread Grygorii Strashko
The cpsw-phy-sel driver was replaced with new PHY driver phy-gmii-sel, so deprecate cpsw-phy-sel bindings. Cc: Kishon Vijay Abraham I Cc: Tony Lindgren Signed-off-by: Grygorii Strashko --- Documentation/devicetree/bindings/net/cpsw-phy-sel.txt | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH linux-next 02/10] phy: ti: introduce phy-gmii-sel driver

2018-11-25 Thread Grygorii Strashko
TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces. The interface mode is selected by configuring the MII mode selection register(s) (GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL

[PATCH v2 net-next] net: remove unsafe skb_insert()

2018-11-25 Thread Eric Dumazet
I do not see how one can effectively use skb_insert() without holding some kind of lock. Otherwise other cpus could have changed the list right before we have a chance of acquiring list->lock. Only existing user is in drivers/infiniband/hw/nes/nes_mgt.c and this one probably meant to use

Re: [PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread Eric Dumazet
On Sun, Nov 25, 2018 at 10:29 AM David Miller wrote: > > From: Eric Dumazet > Date: Sun, 25 Nov 2018 08:26:23 -0800 > > > I do not see how one can effectively use skb_insert() without holding > > some kind of lock. Otherwise other cpus could have changed the list > > right before we have a

Re: [PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread kbuild test robot
Hi Eric, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/net-remove-unsafe-skb_insert/20181126-061342 config: x86_64-randconfig-x009-201847 (attached as .config) compiler: gcc-7 (Debian

Re: [PATCH net-next] net: phy: fix two issues with linkmode bitmaps

2018-11-25 Thread Andrew Lunn
> Eventually we'd have three types of mii_xxx_to_linkmode_yyy functions: > > 1. Function first zeroes the destination linkmode bitmap > 2. Function sets bits in the linkmode bitmap but doesn't clear bits >if condition isn't met > 3. Function clears / sets bits it's responsible for > >

Re: Can decnet be deprecated?

2018-11-25 Thread David Miller
From: Bjørn Mork Date: Sun, 25 Nov 2018 12:30:26 +0100 > David Miller writes: >> From: David Ahern >> Date: Sat, 24 Nov 2018 17:12:48 -0700 >> >>> IPX was moved to staging at the end of last year. Can decnet follow >>> suit? git log seems to indicate no active development in a very long time.

Re: [PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread David Miller
From: Eric Dumazet Date: Sun, 25 Nov 2018 08:26:23 -0800 > I do not see how one can effectively use skb_insert() without holding > some kind of lock. Otherwise other cpus could have changed the list > right before we have a chance of acquiring list->lock. > > Only existing user is in

Re: [PATCH net-next v2 0/2] r8169: make use of xmit_more and __netdev_sent_queue

2018-11-25 Thread David Miller
From: Heiner Kallweit Date: Sun, 25 Nov 2018 14:29:22 +0100 > This series adds helper __netdev_sent_queue to the core and makes use > of it in the r8169 driver. > > Heiner Kallweit (2): > net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue > r8169: make use of xmit_more

Re: [PATCH iproute2-next] man: tc: update man page for fq packet scheduler

2018-11-25 Thread David Ahern
On 11/24/18 6:44 PM, Eric Dumazet wrote: > Signed-off-by: Eric Dumazet > --- > man/man8/tc-fq.8 | 37 ++--- > 1 file changed, 26 insertions(+), 11 deletions(-) > applied to iproute2-next. Thanks, Eric.

Re: [PATCH net-next] net: phy: fix two issues with linkmode bitmaps

2018-11-25 Thread Heiner Kallweit
On 25.11.2018 17:45, Andrew Lunn wrote: > On Sun, Nov 25, 2018 at 03:23:42PM +0100, Heiner Kallweit wrote: >> I wondered why ethtool suddenly reports that link partner doesn't >> support aneg and GBit modes. It turned out that this is caused by two >> bugs in conversion to linkmode bitmaps. >> >>

Re: [PATCH net-next] net: phy: fix two issues with linkmode bitmaps

2018-11-25 Thread Andrew Lunn
On Sun, Nov 25, 2018 at 03:23:42PM +0100, Heiner Kallweit wrote: > I wondered why ethtool suddenly reports that link partner doesn't > support aneg and GBit modes. It turned out that this is caused by two > bugs in conversion to linkmode bitmaps. > > 1. In genphy_read_status the value of

[PATCH net-next] net: remove unsafe skb_insert()

2018-11-25 Thread Eric Dumazet
I do not see how one can effectively use skb_insert() without holding some kind of lock. Otherwise other cpus could have changed the list right before we have a chance of acquiring list->lock. Only existing user is in drivers/infiniband/hw/nes/nes_mgt.c and this one probably meant to use

[PATCH net-next] net: phy: fix two issues with linkmode bitmaps

2018-11-25 Thread Heiner Kallweit
I wondered why ethtool suddenly reports that link partner doesn't support aneg and GBit modes. It turned out that this is caused by two bugs in conversion to linkmode bitmaps. 1. In genphy_read_status the value of phydev->lp_advertising is overwritten, thus GBit modes aren't reported any

[PATCH net-next v2 2/2] r8169: make use of xmit_more and __netdev_sent_queue

2018-11-25 Thread Heiner Kallweit
Make use of xmit_more and add the functionality introduced with 3e59020abf0f ("net: bql: add __netdev_tx_sent_queue()"). I used the mlx4 driver as template. Signed-off-by: Heiner Kallweit --- v2: - fix minor style issue --- drivers/net/ethernet/realtek/r8169.c | 19 +-- 1 file

[PATCH net-next v2 1/2] net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue

2018-11-25 Thread Heiner Kallweit
Similar to netdev_sent_queue add helper __netdev_sent_queue as variant of __netdev_tx_sent_queue. Signed-off-by: Heiner Kallweit --- v2: - no changes --- include/linux/netdevice.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h

[PATCH net-next v2 0/2] r8169: make use of xmit_more and __netdev_sent_queue

2018-11-25 Thread Heiner Kallweit
This series adds helper __netdev_sent_queue to the core and makes use of it in the r8169 driver. Heiner Kallweit (2): net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue r8169: make use of xmit_more and __netdev_sent_queue v2: - fix minor style issue

Re: Can decnet be deprecated?

2018-11-25 Thread Loganaden Velvindron
On Sun, Nov 25, 2018 at 4:14 AM David Ahern wrote: > > IPX was moved to staging at the end of last year. Can decnet follow > suit? git log seems to indicate no active development in a very long time. > > David Kill it :)

Re: Can decnet be deprecated?

2018-11-25 Thread Bjørn Mork
David Miller writes: > From: David Ahern > Date: Sat, 24 Nov 2018 17:12:48 -0700 > >> IPX was moved to staging at the end of last year. Can decnet follow >> suit? git log seems to indicate no active development in a very long time. > > Last time I tried to do that someone immediately said on the

[PATCH net-next 4/5] mlxsw: spectrum_router: Introduce emulated VLAN RIFs

2018-11-25 Thread Ido Schimmel
Router interfaces (RIFs) constructed on top of VLAN-aware bridges are of "VLAN" type, whereas RIFs constructed on top of VLAN-unaware bridges of "FID" type. In other words, the RIF type is derived from the underlying FID type. VLAN RIFs are used on top of 802.1Q FIDs, whereas FID RIFs are used on

[PATCH net-next 2/5] mlxsw: spectrum_fid: Make flood index calculation more robust

2018-11-25 Thread Ido Schimmel
802.1D FIDs use a per-FID flood table, where the flood index into the table is calculated by subtracting 4K from the FID's index. Currently, 802.1D FIDs start at 4K, so the calculation is correct, but if it was ever to change, the calculation will no longer be correct. In addition, this change

[PATCH net-next 0/5] mlxsw: Prepare for VLAN-aware bridge w/VxLAN

2018-11-25 Thread Ido Schimmel
The driver is using 802.1Q filtering identifiers (FIDs) to represent the different VLANs in the VLAN-aware bridge (only one is supported). However, the device cannot assign a VNI to such FIDs, which prevents the driver from supporting the enslavement of VxLAN devices to the VLAN-aware bridge.

[PATCH net-next 3/5] mlxsw: spectrum_fid: Introduce emulated 802.1Q FIDs

2018-11-25 Thread Ido Schimmel
The driver uses 802.1Q FIDs when offloading a VLAN-aware bridge. Unfortunately, it is not possible to assign a VNI to such FIDs, which prompts the driver to forbid the enslavement of VxLAN devices to a VLAN-aware bridge. Workaround this hardware limitation by creating a new family of FIDs,

[PATCH net-next 1/5] mlxsw: spectrum_switchdev: Do not set field when it is reserved

2018-11-25 Thread Ido Schimmel
When configuring an FDB entry pointing to a LAG netdev (or its upper), the driver should only set the 'lag_vid' field when the FID (filtering identifier) is of 802.1D type. Extend the 802.1D FID family with an attribute indicating whether this field should be set and based on its value set the

[PATCH net-next 5/5] mlxsw: spectrum: Flip driver to use emulated 802.1Q FIDs

2018-11-25 Thread Ido Schimmel
Replace 802.1Q FIDs and VLAN RIFs with their emulated counterparts. The emulated 802.1Q FIDs are actually 802.1D FIDs and thus use the same flood tables, of per-FID type. Therefore, add 4K-1 entries to the per-FID flood tables for the new FIDs and get rid of the FID-offset flood tables that were