[PATCH net-next 07/11] bnxt_en: Reduce default rings on multi-port cards.

2017-08-28 Thread Michael Chan
Reduce default rings from 8 to 4 on multi-port cards to reduce memory usage. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 13 + drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + 2 files changed, 10 insertions(+), 4

[PATCH net-next 09/11] bnxt_en: bnxt: add TC flower filter offload support

2017-08-28 Thread Michael Chan
From: Sathya Perla This patch adds support for offloading TC based flow rules and actions for the 'flower' classifier in the bnxt_en driver. It includes logic to parse flow rules and actions received from the TC subsystem, store them and issue the corresponding

[PATCH net-next 02/11] bnxt_en: Improve tx ring reservation logic.

2017-08-28 Thread Michael Chan
When the number of TX rings is changed (e.g. ethtool -L, enabling XDP TX rings, etc), the current code tries to reserve the new number of TX rings before closing and re-opening the NIC. If we are unable to reserve the new TX rings, we abort the operation and keep the current TX rings. The

[PATCH net-next 04/11] bnxt: Add PCIe device IDs for bcm58802/bcm58808

2017-08-28 Thread Michael Chan
From: Ray Jui Add PCIe device ID for bcm58802 and bcm58808. Also add chip number update to declare bcm588xx as chip class phase 4 and later Signed-off-by: Ray Jui Signed-off-by: Michael Chan ---

[PATCH net-next 05/11] bnxt: initialize board_info values with proper enums

2017-08-28 Thread Michael Chan
From: Scott Branden initialize board_info values with proper enums for defensive programming purposes. This will avoid any errors of the enums being declared not lining up with the board_info array. Signed-off-by: Scott Branden

[PATCH net-next 10/11] bnxt_en: add TC flower offload flow_alloc/free FW cmds

2017-08-28 Thread Michael Chan
From: Sathya Perla This patch adds the hwrm_cfa_flow_alloc/free() routines that are needed to issue the FW cmds needed for TC flower offload. Signed-off-by: Sathya Perla Signed-off-by: Michael Chan ---

[PATCH net-next 08/11] bnxt_en: fix clearing devlink ptr from bnxt struct

2017-08-28 Thread Michael Chan
From: Sathya Perla The routine bnxt_link_bp_to_dl() is used to set the devlink ptr in bnxt struct (bp) and also to set the bnxt back ptr in the devlink struct. If devlink_register() fails, bp->dl must be cleared which is not happening currently. This patch fixes

[PATCH net-next 11/11] bnxt_en: add code to query TC flower offload stats

2017-08-28 Thread Michael Chan
From: Sathya Perla This patch adds code to implement TC_CLSFLOWER_STATS TC-cmd and the required FW code to query the stats from the HW. Signed-off-by: Sathya Perla Signed-off-by: Michael Chan ---

Re: [PATCH 2/2] drivers: net: xgene: Clean up all outstanding tx descriptors

2017-08-28 Thread Iyappan Subramanian
Hi Andrew, On Fri, Aug 25, 2017 at 4:10 PM, Andrew Lunn wrote: > On Fri, Aug 25, 2017 at 03:23:30PM -0700, Iyappan Subramanian wrote: >> When xgene_enet is rmmod'd and there are still outstanding tx descriptors >> that have been setup but have not completed, it is possible on the

Re: [PATCH net v2 1/4] net: mvpp2: fix the mac address used when using PPv2.2

2017-08-28 Thread David Miller
From: Antoine Tenart Date: Fri, 25 Aug 2017 16:14:17 +0200 > The mac address is only retrieved from h/w when using PPv2.1. Otherwise > the variable holding it is still checked and used if it contains a valid > value. As the variable isn't initialized to an

[PATCH] packet: Don't write vnet header beyond end of buffer

2017-08-28 Thread Benjamin Poirier
... which may happen with certain values of tp_reserve and maclen. Fixes: 58d19b19cd99 ("packet: vnet_hdr support for tpacket_rcv") Signed-off-by: Benjamin Poirier Cc: Willem de Bruijn --- net/packet/af_packet.c | 12 +--- 1 file changed, 9

Re: [PATCH 2/7] bridge: make ebt_table const

2017-08-28 Thread David Miller
From: Bhumika Goyal Date: Fri, 25 Aug 2017 19:51:42 +0530 > Make this const as it is only passed to a const argument of the function > ebt_register_table. > > Signed-off-by: Bhumika Goyal Applied.

Re: [PATCH net-next] selftests/bpf: check the instruction dumps are populated

2017-08-28 Thread Martin KaFai Lau
On Fri, Aug 25, 2017 at 02:39:57PM -0700, Jakub Kicinski wrote: > Add a basic test for checking whether kernel is populating > the jited and xlated BPF images. It was used to confirm > the behaviour change from commit d777b2ddbecf ("bpf: don't > zero out the info struct in

Re: [PATCH net-next 3/3 v9] drivers: net: ethernet: qualcomm: rmnet: Initial implementation

2017-08-28 Thread Subash Abhinov Kasiviswanathan
In these code paths where you are the writer, you have to rely upon the RTNL mutex (or some other mutual exclusion mechanism) to protect the update operation. RCU locking itself does not provide this. So you should use something like rcu_dereference_rtnl() or similar. So this would be

[PATCH net-next 01/11] bnxt_en: Update firmware interface spec. to 1.8.1.4.

2017-08-28 Thread Michael Chan
Flow APIs are added in this firmware interface. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 186 +- 1 file changed, 181 insertions(+), 5 deletions(-) diff --git

[PATCH net-next 03/11] bnxt_en: assign CPU affinity hints to bnxt_en IRQs

2017-08-28 Thread Michael Chan
From: Vasundhara Volam This patch provides hints to irqbalance to map bnxt_en device IRQs to specific CPU cores. cpumask_local_spread() is used, which first maps IRQs to near NUMA cores; when those cores are exhausted, IRQs are mapped to far NUMA cores.

[PATCH net-next 06/11] bnxt_en: Improve -ENOMEM logic in NAPI poll loop.

2017-08-28 Thread Michael Chan
If we cannot allocate RX buffers in the NAPI poll loop when processing an RX event, the current code does not count that event towards the NAPI budget. This can cause us to potentially loop forever in NAPI if we consistently cannot allocate new buffers. Improve it by counting -ENOMEM event as 1

[PATCH net-next 00/11] bnxt_en: Updates.

2017-08-28 Thread Michael Chan
Various changes including updated firmware interface, improved TX ring allocation scheme, improved out-of-memory logic in NAPI loop, reduced default rings on multi-port devices, new PCI IDs. Of particular note, CPU affinity hints from Vasundhara Volam. TC Flower eswitch support from Sathya

Re: mlxsw and rtnl lock

2017-08-28 Thread David Ahern
On 8/26/17 11:04 AM, Ido Schimmel wrote: > Regarding the silent abort, that's intentional. You can look at the same > code in v4.9 - when the chain was still blocking - and you'll see that > we didn't propagate the error even then. This was discussed in the past > and the conclusion was that user

Re: [PATCH net-next v7 01/10] selftest: Enhance kselftest_harness.h with a step mechanism

2017-08-28 Thread Shuah Khan
On 08/25/2017 07:07 PM, Alexei Starovoitov wrote: > On Fri, Aug 25, 2017 at 09:58:33AM +0200, Mickaël Salaün wrote: >> >> >> On 24/08/2017 04:31, Alexei Starovoitov wrote: >>> On Mon, Aug 21, 2017 at 02:09:24AM +0200, Mickaël Salaün wrote: This step mechanism may be useful to return an

Re: [PATCH v2] cdc_ncm: flag the u-blox TOBY-L4 as wwan

2017-08-28 Thread David Miller
From: Aleksander Morgado Date: Fri, 25 Aug 2017 15:39:16 +0200 > The u-blox TOBY-L4 is a LTE Advanced (Cat 6) module with HSPA+ and 2G > fallback. > > Unlike the TOBY-L2, this module has one single USB layout and exposes > several TTYs for control and a NCM interface

Re: [PATCH 4/7] ipv4: make net_protocol const

2017-08-28 Thread David Miller
From: Bhumika Goyal Date: Fri, 25 Aug 2017 19:51:44 +0530 > Make these const as they are only passed to a const argument of the > function inet_add_protocol. > > Signed-off-by: Bhumika Goyal Applied.

Re: [Intel-wired-lan] how to submit fixes for i40e/i40evf?

2017-08-28 Thread Alexander Duyck
On Fri, Aug 25, 2017 at 3:28 PM, Stefano Brivio wrote: > On Fri, 25 Aug 2017 15:10:08 -0700 > Alexander Duyck wrote: > >> On Fri, Aug 25, 2017 at 1:52 PM, Stefano Brivio wrote: >> >> [...] >> >> > Once patches reach Intel's

Re: [net-next PATCH 2/9] bpf: sockmap, remove STRPARSER map_flags and add multi-map support

2017-08-28 Thread Alexei Starovoitov
On Mon, Aug 28, 2017 at 07:10:25AM -0700, John Fastabend wrote: > The addition of map_flags BPF_SOCKMAP_STRPARSER flags was to handle a > specific use case where we want to have BPF parse program disabled on > an entry in a sockmap. > > However, Alexei found the API a bit cumbersome and I agreed.

Re: [net-next PATCH 0/9] sockmap UAPI updates and fixes

2017-08-28 Thread David Miller
From: John Fastabend Date: Mon, 28 Aug 2017 07:09:45 -0700 > This series updates sockmap UAPI, adds additional test cases and > provides a couple fixes. > > First the UAPI changes. The original API added two sockmap specific > API artifacts (a) a new map_flags field

Re: [PATCH] net: missing call of trace_napi_poll in busy_poll_stop

2017-08-28 Thread David Miller
From: Jesper Dangaard Brouer Date: Fri, 25 Aug 2017 15:04:32 +0200 > Noticed that busy_poll_stop() also invoke the drivers napi->poll() > function pointer, but didn't have an associated call to trace_napi_poll() > like all other call sites. > > Signed-off-by: Jesper Dangaard

Re: [PATCH net] l2tp: initialise session's refcount before making it reachable

2017-08-28 Thread David Miller
From: Guillaume Nault Date: Fri, 25 Aug 2017 16:22:17 +0200 > Sessions must be fully initialised before calling > l2tp_session_add_to_tunnel(). Otherwise, there's a short time frame > where partially initialised sessions can be accessed by external users. > > Fixes:

Re: [PATCH iproute2 net-next 1/2] iproute: add support for seg6 l2encap mode

2017-08-28 Thread Stephen Hemminger
On Mon, 28 Aug 2017 20:11:59 +0100 David Lebrun wrote: > On 08/28/2017 08:07 PM, Stephen Hemminger wrote: > > Since these values probably will grow over time, it would make > > sense to have this a name/value table. > > I wasn't sure if it was worth it for 3 values.

Re: XDP redirect measurements, gotchas and tracepoints

2017-08-28 Thread Andy Gospodarek
On Mon, Aug 28, 2017 at 09:14:20AM -0700, John Fastabend wrote: > On 08/28/2017 09:02 AM, Andy Gospodarek wrote: > > On Fri, Aug 25, 2017 at 08:28:55AM -0700, Michael Chan wrote: > >> On Fri, Aug 25, 2017 at 8:10 AM, John Fastabend > >> wrote: > >>> On 08/25/2017 05:45

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Florian Fainelli
On 08/28/2017 12:50 PM, Jiri Pirko wrote: > Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com > wrote: >> This commit adds a DEBUG_FS dependent DSA core file creating a generic >> debug filesystem interface for the DSA switch devices. >> >> The interface can be mounted

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:58:12PM CEST, f.faine...@gmail.com wrote: >On 08/28/2017 12:50 PM, Jiri Pirko wrote: >> Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com >> wrote: >>> This commit adds a DEBUG_FS dependent DSA core file creating a generic >>> debug filesystem

Re: [PATCH net-next v2 03/10] net: dsa: debugfs: add tag_protocol

2017-08-28 Thread Andrew Lunn
On Mon, Aug 28, 2017 at 03:17:41PM -0400, Vivien Didelot wrote: > Add a debug filesystem "tag_protocol" entry to query the switch tagging > protocol through the .get_tag_protocol operation. > > # cat switch1/tag_protocol > EDSA > > To ease maintenance of tag protocols, add a

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Andrew Lunn
On Mon, Aug 28, 2017 at 03:17:39PM -0400, Vivien Didelot wrote: > This commit adds a DEBUG_FS dependent DSA core file creating a generic > debug filesystem interface for the DSA switch devices. > > The interface can be mounted with: > > # mount -t debugfs none /sys/kernel/debug > > The dsa

Re: [PATCH] ipv6: sr: fix get_srh() to comply with IPv6 standard "RFC 8200"

2017-08-28 Thread David Lebrun
On 08/28/2017 07:20 PM, Ahmed Abdelsalam wrote: > This patch fixes the get_srh(), so it gets the segment routing header > regardless of its position in the chain of the extension headers in IPv6 > packet, and makes sure that the IPv6 routing extension header is of > Type 4. Ahmed, You need to

[PATCH net v2 1/6] net:ethernet:aquantia: Extra spinlocks removed.

2017-08-28 Thread Pavel Belous
From: Pavel Belous This patch removes datapath spinlocks which does not perform any useful work. Fixes: 6e70637f9f1e ("net: ethernet: aquantia: Add ring support code") Signed-off-by: Pavel Belous ---

[PATCH net v2 3/6] net:ethernet:aquantia: Workaround for HW checksum bug.

2017-08-28 Thread Pavel Belous
From: Pavel Belous The hardware has the HW Checksum Offload bug when small TCP patckets (with length <= 60 bytes) has wrong "checksum valid" bit. The solution is - ignore checksum valid bit for small packets (with length <= 60 bytes) and mark this as CHECKSUM_NONE to

[PATCH net v2 0/6] net:ethernet:aquantia: Atlantic driver Update 2017-08-23

2017-08-28 Thread Pavel Belous
From: Pavel Belous This series contains updates for aQuantia Atlantic driver. It has bugfixes and some improvements. Changes in v2: - "MCP state change" fix removed (will be sent as a separate fix after further investigation.) Igor Russkikh (1):

Re: Fwd: DA850-evm MAC Address is random

2017-08-28 Thread Grygorii Strashko
Cc: Sekhar On 08/28/2017 10:32 AM, Adam Ford wrote: The davinvi_emac MAC address seems to attempt a call to ti_cm_get_macid in cpsw-common.c but it returns the message 'davinci_emac davinci_emac.1: incompatible machine/device type for reading mac address ' and then generates a random MAC

[PATCH net v2 2/6] net:ethernet:aquantia: Fix for number of RSS queues.

2017-08-28 Thread Pavel Belous
From: Pavel Belous The number of RSS queues should be not more than numbers of CPU. Its does not make sense to increase perfomance, and also cause problems on some motherboards. Fixes: 94f6c9e4cdf6 ("net: ethernet: aquantia: Support for NIC-specific code")

[PATCH net-next 0/3] tc: act_ife: handle IEEE IFE ethertype as default

2017-08-28 Thread Alexander Aring
Hi, this patch series will introduce the IFE ethertype which is registered by IEEE. If the netlink act_ife type netlink attribute is not given it will use this value by default now. At least it will introduce some UAPI testcases to check if the default type is used if not specified and vice

[PATCH iproute2 0/4] tc: m_ife: handle IFE ethertype value

2017-08-28 Thread Alexander Aring
Hi, this patch series fix some ife type handling for example it allows to set ethertype to zero and prints IFE type like IEE specification. Also it will report about the new introduced IFE type as fallback if no IFE type as parameter is given. This new behaviour is also added to the manpage of

[PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Alexander Aring
This patch uses the usually IEEE format to display an ethertype which is 4-digits and every digit in upper case. Signed-off-by: Alexander Aring --- tc/m_ife.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/m_ife.c b/tc/m_ife.c index e05e2276..7b57130e

[PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-08-28 Thread Vivien Didelot
This commit adds the boiler plate to create a DSA related debug filesystem entry as well as a "tree" file, containing the tree index. # cat switch1/tree 0 Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli Reviewed-by:

[PATCH iproute2 net-next v2 1/2] iproute: add support for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch adds support for the L2ENCAP seg6 mode, enabling to encapsulate L2 frames within SRv6 packets. Signed-off-by: David Lebrun --- ip/iproute_lwtunnel.c | 41 ++--- 1 file changed, 30 insertions(+), 11 deletions(-) diff

[PATCH iproute2 net-next v2 0/2] Add support for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch series adds support for the new L2ENCAP mode for SRv6 encapsulations. v2: use a name/value table for encap modes David Lebrun (2): iproute: add support for seg6 l2encap mode man: add documentation for seg6 l2encap mode ip/iproute_lwtunnel.c | 41

[PATCH iproute2 net-next v2 2/2] man: add documentation for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch adds documentation for the seg6 L2ENCAP encapsulation mode. Signed-off-by: David Lebrun --- man/man8/ip-route.8.in | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man/man8/ip-route.8.in b/man/man8/ip-route.8.in index

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com wrote: >This commit adds a DEBUG_FS dependent DSA core file creating a generic >debug filesystem interface for the DSA switch devices. > >The interface can be mounted with: > ># mount -t debugfs none /sys/kernel/debug >

[PATCH net-next v1] amd-xgbe: Interrupt summary bits are h/w version dependent

2017-08-28 Thread Tom Lendacky
There is a difference in the bit position of the normal interrupt summary enable (NIE) and abnormal interrupt summary enable (AIE) between revisions of the hardware. For older revisions the NIE and AIE bits are positions 16 and 15 respectively. For newer revisions the NIE and AIE bits are

Re: [PATCH] packet: Don't write vnet header beyond end of buffer

2017-08-28 Thread Willem de Bruijn
On Mon, Aug 28, 2017 at 2:29 PM, Benjamin Poirier wrote: > ... which may happen with certain values of tp_reserve and maclen. > > Fixes: 58d19b19cd99 ("packet: vnet_hdr support for tpacket_rcv") > Signed-off-by: Benjamin Poirier > Cc: Willem de Bruijn

[PATCH iproute2 net-next 0/2] Add support for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch series adds support for the new L2ENCAP mode for SRv6 encapsulations. David Lebrun (2): iproute: add support for seg6 l2encap mode man: add documentation for seg6 l2encap mode ip/iproute_lwtunnel.c | 39 --- man/man8/ip-route.8.in | 6 +-

[PATCH iproute2 net-next 2/2] man: add documentation for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch adds documentation for the seg6 L2ENCAP encapsulation mode. Signed-off-by: David Lebrun --- man/man8/ip-route.8.in | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man/man8/ip-route.8.in b/man/man8/ip-route.8.in index

[PATCH iproute2 net-next 1/2] iproute: add support for seg6 l2encap mode

2017-08-28 Thread David Lebrun
This patch adds support for the L2ENCAP seg6 mode, enabling to encapsulate L2 frames within SRv6 packets. Signed-off-by: David Lebrun --- ip/iproute_lwtunnel.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git

Re: [PATCH net-next 06/11] bnxt_en: Improve -ENOMEM logic in NAPI poll loop.

2017-08-28 Thread Martin KaFai Lau
On Mon, Aug 28, 2017 at 01:40:30PM -0400, Michael Chan wrote: > If we cannot allocate RX buffers in the NAPI poll loop when processing > an RX event, the current code does not count that event towards the NAPI > budget. This can cause us to potentially loop forever in NAPI if we > consistently

[PATCH net-next 1/3] if_ether: add forces ife lfb type

2017-08-28 Thread Alexander Aring
This patch adds the forces IFE lfb type according to IEEE registered ethertypes. See http://standards-oui.ieee.org/ethertype/eth.txt for more information. Since there exists the IFE subsystem it can be used there. This patch also use the correct word "ForCES" instead of "FoRCES" which is a

[PATCH net-next 2/3] act_ife: use registered ife_type as fallback

2017-08-28 Thread Alexander Aring
This patch handles a default IFE type if it's not given by user space netlink api. The default IFE type will be the registered ethertype by IEEE for IFE ForCES. Signed-off-by: Alexander Aring --- net/sched/act_ife.c | 17 +++-- 1 file changed, 3 insertions(+), 14

[PATCH net-next 3/3] tc-testing: add test for testing ife type

2017-08-28 Thread Alexander Aring
This patch adds a new testcase for the IFE type setting in tc. In case of user specified the type it will check if the ife is correctly configured to react on it. If it's not specified the default IFE type should be used. Signed-off-by: Alexander Aring ---

Re: [PATCH iproute2 net-next 1/2] iproute: add support for seg6 l2encap mode

2017-08-28 Thread David Lebrun
On 08/28/2017 08:07 PM, Stephen Hemminger wrote: > Since these values probably will grow over time, it would make > sense to have this a name/value table. I wasn't sure if it was worth it for 3 values. I do not foresee a large growth either, but I will send a v2 will a table anyway David

[PATCH net-next v2 09/10] net: dsa: restore VLAN dump

2017-08-28 Thread Vivien Didelot
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove support for vlan dump from DSA's drivers") to restore the DSA drivers VLAN dump operations. Signed-off-by: Vivien Didelot

[PATCH net-next v2 08/10] net: dsa: debugfs: add port mdb

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "mdb" entry to query a port's hardware MDB entries through the .port_mdb_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. Signed-off-by: Vivien Didelot

[PATCH net-next v2 06/10] net: dsa: debugfs: add port fdb

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "fdb" entry to query a port's hardware FDB entries through the .port_fdb_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. # cat port1/fdb vid 0

[PATCH net-next v2 05/10] net: dsa: debugfs: add port regs

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "regs" entry to query a port's hardware registers through the .get_regs_len and .get_regs_len switch operations. This is very convenient because it allows one to dump the registers of DSA links, which are not exposed to userspace. Here are the registers of a zii-rev-b CPU

[PATCH net-next v2 03/10] net: dsa: debugfs: add tag_protocol

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "tag_protocol" entry to query the switch tagging protocol through the .get_tag_protocol operation. # cat switch1/tag_protocol EDSA To ease maintenance of tag protocols, add a dsa_tag_protocol_name helper to the public API which to convert a tag protocol enum to a

[PATCH net-next v2 04/10] net: dsa: debugfs: add port stats

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "stats" entry to query a port's hardware statistics through the DSA switch .get_sset_count, .get_strings and .get_ethtool_stats operations. This allows one to get statistics about DSA links interconnecting switches, which is very convenient because this kind of port is not

[PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Vivien Didelot
This commit adds a DEBUG_FS dependent DSA core file creating a generic debug filesystem interface for the DSA switch devices. The interface can be mounted with: # mount -t debugfs none /sys/kernel/debug The dsa directory contains one directory per switch chip: # cd

[PATCH net-next v2 10/10] net: dsa: debugfs: add port vlan

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "vlan" entry to query a port's hardware VLAN entries through the .port_vlan_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. Here are the VLAN entries for a CPU

[PATCH net-next 3/4] net: add NSH header structures and helpers

2017-08-28 Thread Jiri Benc
From: Yi Yang NSH (Network Service Header)[1] is a new protocol for service function chaining, it can be handled as a L3 protocol like IPv4 and IPv6, Eth + NSH + Inner packet or VxLAN-gpe + NSH + Inner packet are two typical use cases. This patch adds NSH header structures

[PATCH net-next 2/4] vxlan: factor out VXLAN-GPE next protocol

2017-08-28 Thread Jiri Benc
The values are shared between VXLAN-GPE and NSH. Originally probably by coincidence but I notified both working groups about this last year and they seem to keep the values in sync since then. Hopefully they'll get a single IANA registry for the values, too. (I asked them for that.) Factor out

[PATCH net-next 4/4] nsh: add GSO support

2017-08-28 Thread Jiri Benc
Add a new nsh/ directory. It currently holds only GSO functions but more will come: in particular, code shared by openvswitch and tc to manipulate NSH headers. For now, assume there's no hardware support for NSH segmentation. We can always introduce netdev->nsh_features later. Signed-off-by:

[PATCH net-next 0/4] nsh: headers, GSO

2017-08-28 Thread Jiri Benc
This adds header structs and helpers for NSH together with GSO support. Note there is no code in this patchset that actually manipulates the NSH headers. That was sent to netdev by Yi Yang ("[PATCH net-next v6 0/3] openvswitch: add NSH support"). The aim of this series is to lay the groundwork

[PATCH net-next 1/4] ether: add NSH ethertype

2017-08-28 Thread Jiri Benc
The NSH draft says: An IEEE EtherType, 0x894F, has been allocated for NSH. Signed-off-by: Jiri Benc --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:17:38PM CEST, vivien.dide...@savoirfairelinux.com wrote: >This patch series adds a generic debugfs interface for the DSA >framework, so that all switch devices benefit from it, e.g. Marvell, >Broadcom, Microchip or any other DSA driver. > >This is really convenient for

[PATCH net-next] Revert "ipv4: make net_protocol const"

2017-08-28 Thread David Ahern
This reverts commit aa8db499ea67cff1f5f049033810ffede2fe5ae4. Early demux structs can not be made const. Doing so results in: [ 84.967355] BUG: unable to handle kernel paging request at 81684b10 [ 84.969272] IP: proc_configure_early_demux+0x1e/0x3d [ 84.970544] PGD 1a0a067 [

[PATCH net v2 4/6] net:ethernet:aquantia: Fix for incorrect speed index.

2017-08-28 Thread Pavel Belous
From: Pavel Belous The driver choose the optimal interrupt throttling settings depends of current link speed. Due this bug link_status field from aq_hw is never updated and as result always used same interrupt throttling values. Fixes: 3d2ff7eebe26 ("net: ethernet:

[PATCH net v2 5/6] net:ethernet:aquantia: Fix for multicast filter handling.

2017-08-28 Thread Pavel Belous
From: Igor Russkikh Since the HW supports up to 32 multicast filters we should track count of multicast filters to avoid overflow. If we attempt to add >32 multicast filter - just set NETIF_ALLMULTI flag instead. Fixes: 94f6c9e4cdf6 ("net: ethernet: aquantia: Support

[PATCH net v2 6/6] net:ethernet:aquantia: Show info message if bad firmware version detected.

2017-08-28 Thread Pavel Belous
From: Pavel Belous We should inform user about wrong firmware version by printing message in dmesg. Fixes: 3d2ff7eebe26 ("net: ethernet: aquantia: Atlantic hardware abstraction layer") Signed-off-by: Pavel Belous ---

Re: [PATCH iproute2 net-next 1/2] iproute: add support for seg6 l2encap mode

2017-08-28 Thread Stephen Hemminger
On Mon, 28 Aug 2017 20:05:24 +0100 David Lebrun wrote: > > +static const char *format_seg6mode_type(int mode) > +{ > + if (mode == SEG6_IPTUN_MODE_ENCAP) > + return "encap"; > + else if (mode == SEG6_IPTUN_MODE_INLINE) > + return

[PATCH iproute2 1/4] tc: m_ife: allow ife type to zero

2017-08-28 Thread Alexander Aring
This patch allows to set an ethertype for IFE which is zero. There is no kernel side validation which forbids a type to zero. Signed-off-by: Alexander Aring --- tc/m_ife.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tc/m_ife.c b/tc/m_ife.c index

[PATCH iproute2 3/4] tc: m_ife: report about kernels default type

2017-08-28 Thread Alexander Aring
This patch will report about if the ethertype for IFE is not specified that the default IFE type is used. Signed-off-by: Alexander Aring --- tc/m_ife.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc/m_ife.c b/tc/m_ife.c index 7b57130e..5633ab90 100644 ---

[PATCH iproute2 4/4] man: tc-ife: add default type note

2017-08-28 Thread Alexander Aring
This patch updates the tc-ife man page that the default IFE ethertype will be used if it's not specified. Signed-off-by: Alexander Aring --- man/man8/tc-ife.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man8/tc-ife.8 b/man/man8/tc-ife.8 index

[PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Vivien Didelot
This patch series adds a generic debugfs interface for the DSA framework, so that all switch devices benefit from it, e.g. Marvell, Broadcom, Microchip or any other DSA driver. This is really convenient for debugging, especially CPU ports and DSA links which are not exposed to userspace as net

[PATCH net-next v2 07/10] net: dsa: restore mdb dump

2017-08-28 Thread Vivien Didelot
The same dsa_fdb_dump_cb_t callback is used since there is no distinction to do between FDB and MDB entries at this layer. Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated to a switch port can be dumped. Signed-off-by: Vivien Didelot

Re: [PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Stephen Hemminger
On Mon, 28 Aug 2017 15:07:36 -0400 Alexander Aring wrote: > This patch uses the usually IEEE format to display an ethertype which is > 4-digits and every digit in upper case. > > Signed-off-by: Alexander Aring > --- > tc/m_ife.c | 2 +- > 1 file

Re: [PATCH iproute2 1/4] tc: m_ife: allow ife type to zero

2017-08-28 Thread Stephen Hemminger
On Mon, 28 Aug 2017 15:07:35 -0400 Alexander Aring wrote: > This patch allows to set an ethertype for IFE which is zero. There is no > kernel side validation which forbids a type to zero. > > Signed-off-by: Alexander Aring > --- > tc/m_ife.c | 4 +++- >

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Andrew Lunn
> I see this overlaps a lot with DPIPE. Why won't you use that to expose > your hw state? We took a look at dpipe and i talked to you about using it for this sort of thing at netconf/netdev. But dpipe has issues displaying the sort of information we have. I never figured out how to do two

Re: [PATCH net-next 0/3] gre: add collect_md mode for ERSPAN tunnel

2017-08-28 Thread David Miller
From: William Tu Date: Fri, 25 Aug 2017 09:21:26 -0700 > This patch series provide collect_md mode for ERSPAN tunnel. The fist patch > refactors the existing gre_fb_xmit function by exacting the route cache > portion into a new function called prepare_fb_xmit. The second

[PATCH net-next] net: Add comment that early_demux can change via sysctl

2017-08-28 Thread David Ahern
Twice patches trying to constify inet{6}_protocol have been reverted: 39294c3df2a8 ("Revert "ipv6: constify inet6_protocol structures"") to revert 3a3a4e3054137 and then 03157937fe0b5 ("Revert "ipv4: make net_protocol const"") to revert aa8db499ea67. Add a comment that the structures can not be

Re: [PATCH net-next 2/3] act_ife: use registered ife_type as fallback

2017-08-28 Thread Jamal Hadi Salim
On 17-08-28 03:03 PM, Alexander Aring wrote: This patch handles a default IFE type if it's not given by user space netlink api. The default IFE type will be the registered ethertype by IEEE for IFE ForCES. Signed-off-by: Alexander Aring Acked-by: Jamal Hadi Salim

Re: [PATCH net-next] net: Add comment that early_demux can change via sysctl

2017-08-28 Thread David Miller
From: David Ahern Date: Mon, 28 Aug 2017 15:14:20 -0700 > Twice patches trying to constify inet{6}_protocol have been reverted: > 39294c3df2a8 ("Revert "ipv6: constify inet6_protocol structures"") to > revert 3a3a4e3054137 and then 03157937fe0b5 ("Revert "ipv4: make >

Re: [PATCH net-next] xen-netback: update ubuf_info initialization to anonymous union

2017-08-28 Thread David Miller
From: Willem de Bruijn Date: Fri, 25 Aug 2017 13:10:43 -0400 > From: Willem de Bruijn > > The xen driver initializes struct ubuf_info fields using designated > initializers. I recently moved these fields inside a nested anonymous > struct

Re: [PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Jamal Hadi Salim
Alex, I think we should get rid of these fprintfs instead of fixing them. They were originally intended to be debug outputs. cheers, jamal On 17-08-28 03:07 PM, Alexander Aring wrote: This patch uses the usually IEEE format to display an ethertype which is 4-digits and every digit in upper

Re: [PATCH iproute2 3/4] tc: m_ife: report about kernels default type

2017-08-28 Thread Jamal Hadi Salim
Same comment as previous patch. cheers, jamal On 17-08-28 03:07 PM, Alexander Aring wrote: This patch will report about if the ethertype for IFE is not specified that the default IFE type is used. Signed-off-by: Alexander Aring --- tc/m_ife.c | 2 ++ 1 file changed, 2

Re: [PATCH net 0/3] fix layer calculation and flow dissector use

2017-08-28 Thread David Miller
From: Pieter Jansen van Vuuren Date: Fri, 25 Aug 2017 19:31:00 +0200 > Previously when calculating the supported key layers MPLS, IPv4/6 > TTL and TOS were not considered. Formerly flow dissectors were referenced > without first checking that they are in use

Re: [PATCH 4/4] net: stmmac: sun8i: Remove the compatibles

2017-08-28 Thread David Miller
From: Maxime Ripard Date: Fri, 25 Aug 2017 21:12:17 +0200 > Since the bindings have been controversial, and we follow the DT stable ABI > rule, we shouldn't let a driver with a DT binding that might change slip > through in a stable release. > > Remove the

Re: [PATCH net-next] bpf: fix oops on allocation failure

2017-08-28 Thread David Miller
From: Dan Carpenter Date: Fri, 25 Aug 2017 23:27:14 +0300 > "err" is set to zero if bpf_map_area_alloc() fails so it means we return > ERR_PTR(0) which is NULL. The caller, find_and_alloc_map(), is not > expecting NULL returns and will oops. > > Fixes: 174a79ff9515

Re: [PATCH v3 net-next 1/1] hv_sock: implements Hyper-V transport for Virtual Sockets (AF_VSOCK)

2017-08-28 Thread David Miller
From: Dexuan Cui Date: Sat, 26 Aug 2017 04:52:43 + > > Hyper-V Sockets (hv_sock) supplies a byte-stream based communication > mechanism between the host and the guest. It uses VMBus ringbuffer as the > transportation layer. > > With hv_sock, applications between the

Re: [PATCH iproute2 2/4] tc: m_ife: print IEEE ethertype format

2017-08-28 Thread Stephen Hemminger
On Mon, 28 Aug 2017 18:18:04 -0400 Jamal Hadi Salim wrote: > Alex, > > I think we should get rid of these fprintfs instead of fixing them. > They were originally intended to be debug outputs. > > cheers, > jamal > > On 17-08-28 03:07 PM, Alexander Aring wrote: > > This

Re: [patch net-next 0/2] mlxsw: spectrum: Fix couple of dpipe ipv4 host table bugs

2017-08-28 Thread David Miller
From: Jiri Pirko Date: Sat, 26 Aug 2017 08:35:37 +0200 > From: Jiri Pirko > > Arkadi Sharshevsky (1): > mlxsw: spectrum_dpipe: Fix host table dump > > Jiri Pirko (1): > mlxsw: spectrum: compile-in dpipe support only if devlink is enabled Series

Re: [PATCH 1/4] sgiseeq: switch to dma_alloc_attrs

2017-08-28 Thread David Miller
From: Christoph Hellwig Date: Sat, 26 Aug 2017 09:21:22 +0200 > Use dma_alloc_attrs directly instead of the dma_alloc_noncoherent wrapper. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller

Re: [PATCH 3/4] i825xx: switch to switch to dma_alloc_attrs

2017-08-28 Thread David Miller
From: Christoph Hellwig Date: Sat, 26 Aug 2017 09:21:24 +0200 > This way we can always pass DMA_ATTR_NON_CONSISTENT, the SNI mips version > will simply ignore the flag. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller

Re: [PATCH 2/4] au1000_eth: switch to dma_alloc_attrs

2017-08-28 Thread David Miller
From: Christoph Hellwig Date: Sat, 26 Aug 2017 09:21:23 +0200 > Use dma_alloc_attrs directly instead of the dma_alloc_noncoherent wrapper. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller

<    1   2   3   >