[PATCH net-next 1/4] bnxt_en: rename some xdp functions

2019-07-06 Thread Michael Chan
From: Andy Gospodarek Renaming bnxt_xmit_xdp to __bnxt_xmit_xdp to get ready for XDP_REDIRECT support and reduce confusion/namespace collision. Signed-off-by: Andy Gospodarek Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 +- drivers/net/ethernet/broadco

[PATCH net-next 2/4] bnxt_en: Refactor __bnxt_xmit_xdp().

2019-07-06 Thread Michael Chan
__bnxt_xmit_xdp() is used by XDP_TX and ethtool loopback packet transmit. Refactor it so that it can be re-used by the XDP_REDIRECT logic. Restructure the TX interrupt handler logic to cleanly separate XDP_TX logic in preparation for XDP_REDIRECT. Acked-by: Andy Gospodarek Signed-off-by: Michael

[PATCH net-next 3/4] bnxt_en: optimized XDP_REDIRECT support

2019-07-06 Thread Michael Chan
From: Andy Gospodarek This adds basic support for XDP_REDIRECT in the bnxt_en driver. Next patch adds the more optimized page pool support. Signed-off-by: Andy Gospodarek Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 27 ++- drivers/net/ethernet/broadco

[PATCH net-next 0/4] bnxt_en: Add XDP_REDIRECT support.

2019-07-06 Thread Michael Chan
This patch series adds XDP_REDIRECT support by Andy Gospodarek. Andy Gospodarek (3): bnxt_en: rename some xdp functions bnxt_en: optimized XDP_REDIRECT support bnxt_en: add page_pool support Michael Chan (1): bnxt_en: Refactor __bnxt_xmit_xdp(). drivers/net/ethernet/broadcom/Kconfig

[PATCH net-next 4/4] bnxt_en: add page_pool support

2019-07-06 Thread Michael Chan
From: Andy Gospodarek This removes contention over page allocation for XDP_REDIRECT actions by adding page_pool support per queue for the driver. The performance for XDP_REDIRECT actions scales linearly with the number of cores performing redirect actions when using the page pools instead of the

Re: [net-next 1/3] ice: Initialize and register platform device to provide RDMA

2019-07-06 Thread Greg KH
On Fri, Jul 05, 2019 at 04:33:07PM +, Saleem, Shiraz wrote: > > Subject: Re: [net-next 1/3] ice: Initialize and register platform device to > > provide > > RDMA > > > > On Thu, Jul 04, 2019 at 12:48:29PM +, Jason Gunthorpe wrote: > > > On Thu, Jul 04, 2019 at 02:42:47PM +0200, Greg KH wro

Re: [PATCH bpf-next 3/3] xdp: Add devmap_hash map type for looking up devices by hashed index

2019-07-06 Thread Toke Høiland-Jørgensen
Y Song writes: > On Fri, Jul 5, 2019 at 11:14 AM Toke Høiland-Jørgensen > wrote: >> >> From: Toke Høiland-Jørgensen >> >> A common pattern when using xdp_redirect_map() is to create a device map >> where the lookup key is simply ifindex. Because device maps are arrays, >> this leaves holes in

[PATCH bpf-next v2 3/6] uapi/bpf: Add new devmap_hash type

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen This adds the BPF_MAP_TYPE_DEVMAP_HASH type to the uapi bpf.h header, for use in the subsequent patch adding the support to the kernel. Signed-off-by: Toke Høiland-Jørgensen --- include/uapi/linux/bpf.h |1 + 1 file changed, 1 insertion(+) diff --git a/include

[PATCH bpf-next v2 1/6] include/bpf.h: Remove map_insert_ctx() stubs

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen When we changed the device and CPU maps to use linked lists instead of bitmaps, we also removed the need for the map_insert_ctx() helpers to keep track of the bitmaps inside each map. However, it seems I forgot to remove the function definitions stubs, so remove those

[PATCH bpf-next v2 2/6] xdp: Refactor devmap allocation code for reuse

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen The subsequent patch to add a new devmap sub-type can re-use much of the initialisation and allocation code, so refactor it into separate functions. Signed-off-by: Toke Høiland-Jørgensen --- kernel/bpf/devmap.c | 137 +++

[PATCH bpf-next v2 6/6] tools: Add definitions for devmap_hash map type

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen This adds a selftest, syncs the tools/ uapi header and adds the devmap_hash name to bpftool for the new devmap_hash map type. Signed-off-by: Toke Høiland-Jørgensen --- tools/bpf/bpftool/map.c |1 + tools/include/uapi/linux/bpf.h |1

[PATCH bpf-next v2 0/6] xdp: Add devmap_hash map type

2019-07-06 Thread Toke Høiland-Jørgensen
This series adds a new map type, devmap_hash, that works like the existing devmap type, but using a hash-based indexing scheme. This is useful for the use case where a devmap is indexed by ifindex (for instance for use with the routing table lookup helper). For this use case, the regular devmap nee

[PATCH bpf-next v2 5/6] tools/libbpf_probes: Add new devmap_hash type

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen This adds the definition for BPF_MAP_TYPE_DEVMAP_HASH to libbpf_probes.c in tools/lib/bpf. Signed-off-by: Toke Høiland-Jørgensen --- tools/lib/bpf/libbpf_probes.c |1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf_probes.c b/tools/lib/bpf/l

[PATCH bpf-next v2 4/6] xdp: Add devmap_hash map type for looking up devices by hashed index

2019-07-06 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen A common pattern when using xdp_redirect_map() is to create a device map where the lookup key is simply ifindex. Because device maps are arrays, this leaves holes in the map, and the map has to be sized to fit the largest ifindex, regardless of how many devices actual

Re: [PATCH bpf-next v3] libbpf: add xsk_ring_prod__nb_free() function

2019-07-06 Thread Magnus Karlsson
On Fri, Jul 5, 2019 at 4:35 PM Daniel Borkmann wrote: > > On 07/03/2019 02:52 PM, Eelco Chaudron wrote: > > When an AF_XDP application received X packets, it does not mean X > > frames can be stuffed into the producer ring. To make it easier for > > AF_XDP applications this API allows them to chec

Re: [PATCH] 6lowpan: no need to check return value of debugfs_create functions

2019-07-06 Thread Marcel Holtmann
Hi Greg, > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Because we don't care if debugfs works or not, this trickles back a bit > so we can clean things

Re: [PATCH] Bluetooth: hidp: NUL terminate a string in the compat ioctl

2019-07-06 Thread Marcel Holtmann
Hi Dan, > This change is similar to commit a1616a5ac99e ("Bluetooth: hidp: fix > buffer overflow") but for the compat ioctl. We take a string from the > user and forgot to ensure that it's NUL terminated. > > I have also changed the strncpy() in to strscpy() in hidp_setup_hid(). > The difference

[PATCH net-next v2 0/3] net: Multipath hashing on inner L3

2019-07-06 Thread Stephen Suryaputra
This series extends commit 363887a2cdfe ("ipv4: Support multipath hashing on inner IP pkts for GRE tunnel") to include support when the outer L3 is IPv6 and to consider the case where the inner L3 is different version from the outer L3, such as IPv6 tunneled by IPv4 GRE or vice versa. It also inclu

[PATCH net-next v2 3/3] selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel

2019-07-06 Thread Stephen Suryaputra
Add selftest scripts for multipath hashing on inner IP pkts when there is a single GRE tunnel but there are multiple underlay routes to reach the other end of the tunnel. Four cases are covered in these scripts: - IPv4 inner, IPv4 outer - IPv6 inner, IPv4 outer - IPv4 inner, IPv6 outer

[PATCH net-next v2 2/3] ipv6: Support multipath hashing on inner IP pkts

2019-07-06 Thread Stephen Suryaputra
Make the same support as commit 363887a2cdfe ("ipv4: Support multipath hashing on inner IP pkts for GRE tunnel") for outer IPv6. The hashing considers both IPv4 and IPv6 pkts when they are tunneled by IPv6 GRE. Signed-off-by: Stephen Suryaputra --- Documentation/networking/ip-sysctl.txt | 1 +

[PATCH net-next v2 1/3] ipv4: Multipath hashing on inner L3 needs to consider inner IPv6 pkts

2019-07-06 Thread Stephen Suryaputra
Commit 363887a2cdfe ("ipv4: Support multipath hashing on inner IP pkts for GRE tunnel") supports multipath policy value of 2, Layer 3 or inner Layer 3 if present, but it only considers inner IPv4. There is a use case of IPv6 is tunneled by IPv4 GRE, thus add the ability to hash on inner IPv6 addres

[PATCH 0/4] Fix hang of Armada 8040 SoC in orion-mdio

2019-07-06 Thread josua
From: Josua Mayer With a modular kernel as configured by Debian a hang was observed with the Armada 8040 SoC in the Clearfog GT and Macchiatobin boards. The 8040 SoC actually requires four clocks to be enabled for the mdio interface to function. All 4 clocks are already specified in armada-cp110

[PATCH 1/4] dt-bindings: allow up to four clocks for orion-mdio

2019-07-06 Thread josua
From: Josua Mayer Armada 8040 needs four clocks to be enabled for MDIO accesses to work. Update the binding to allow the extra clock to be specified. Cc: sta...@vger.kernel.org Fixes: 6d6a331f44a1 ("dt-bindings: allow up to three clocks for orion-mdio") Signed-off-by: Josua Mayer --- Documenta

[PATCH 2/4] net: mvmdio: allow up to four clocks to be specified for orion-mdio

2019-07-06 Thread josua
From: Josua Mayer Allow up to four clocks to be specified and enabled for the orion-mdio interface, which are required by the Armada 8k and defined in armada-cp110.dtsi. Fixes a hang in probing the mvmdio driver that was encountered on the Clearfog GT 8K with all drivers built as modules, but al

[PATCH 4/4] net: mvmdio: defer probe of orion-mdio if a clock is not ready

2019-07-06 Thread josua
From: Josua Mayer Defer probing of the orion-mdio interface when enabling of either of the clocks defer probing. This avoids locking up the Armada 8k SoC when mdio is used before all clocks have been enabled. Signed-off-by: Josua Mayer --- drivers/net/ethernet/marvell/mvmdio.c | 5 + 1 fil

Re: [PATCH 1/4] dt-bindings: allow up to four clocks for orion-mdio

2019-07-06 Thread Andrew Lunn
On Sat, Jul 06, 2019 at 05:18:57PM +0200, jo...@solid-run.com wrote: > From: Josua Mayer > > Armada 8040 needs four clocks to be enabled for MDIO accesses to work. > Update the binding to allow the extra clock to be specified. > > Cc: sta...@vger.kernel.org > Fixes: 6d6a331f44a1 ("dt-bindings: a

Re: [PATCH 2/4] net: mvmdio: allow up to four clocks to be specified for orion-mdio

2019-07-06 Thread Andrew Lunn
On Sat, Jul 06, 2019 at 05:18:58PM +0200, jo...@solid-run.com wrote: > From: Josua Mayer > > Allow up to four clocks to be specified and enabled for the orion-mdio > interface, which are required by the Armada 8k and defined in > armada-cp110.dtsi. > > Fixes a hang in probing the mvmdio driver t

Re: [PATCH 4/4] net: mvmdio: defer probe of orion-mdio if a clock is not ready

2019-07-06 Thread Andrew Lunn
On Sat, Jul 06, 2019 at 05:19:00PM +0200, jo...@solid-run.com wrote: > From: Josua Mayer > > Defer probing of the orion-mdio interface when enabling of either of the > clocks defer probing. Hi Josua I'm having trouble parsing that sentence. How about: Defer probing of the orion-mdio interface

Re: [PATCH v5 bpf-next 1/5] libbpf: add perf buffer API

2019-07-06 Thread Yonghong Song
On 7/5/19 10:54 PM, Andrii Nakryiko wrote: > On Fri, Jul 5, 2019 at 10:42 PM Yonghong Song wrote: >> >> >> >> On 7/5/19 9:35 PM, Andrii Nakryiko wrote: >>> BPF_MAP_TYPE_PERF_EVENT_ARRAY map is often used to send data from BPF >>> program >>> to user space for additional processing. libbpf alrea

[PATCH 3/4] net: mvmdio: print warning when orion-mdio has too many clocks

2019-07-06 Thread josua
From: Josua Mayer Print a warning when device tree specifies more than the maximum of four clocks supported by orion-mdio. Because reading from mdio can lock up the Armada 8k when a required clock is not initialized, it is important to notify the user when a specified clock is ignored. Signed-of

RE: [net-next 1/3] ice: Initialize and register platform device to provide RDMA

2019-07-06 Thread Saleem, Shiraz
> Subject: Re: [net-next 1/3] ice: Initialize and register platform device to > provide > RDMA > > On Fri, Jul 05, 2019 at 04:33:07PM +, Saleem, Shiraz wrote: > > > Subject: Re: [net-next 1/3] ice: Initialize and register platform > > > device to provide RDMA > > > > > > On Thu, Jul 04, 2019

Re: [PATCH 3/4] net: mvmdio: print warning when orion-mdio has too many clocks

2019-07-06 Thread Andrew Lunn
On Sat, Jul 06, 2019 at 05:18:59PM +0200, jo...@solid-run.com wrote: > From: Josua Mayer > > Print a warning when device tree specifies more than the maximum of four > clocks supported by orion-mdio. Because reading from mdio can lock up > the Armada 8k when a required clock is not initialized, i

RE: [rdma 14/16] RDMA/irdma: Add ABI definitions

2019-07-06 Thread Saleem, Shiraz
> Subject: Re: [rdma 14/16] RDMA/irdma: Add ABI definitions > > On Fri, Jul 05, 2019 at 04:42:19PM +, Saleem, Shiraz wrote: > > > Subject: Re: [rdma 14/16] RDMA/irdma: Add ABI definitions > > > > > > On Thu, Jul 04, 2019 at 10:40:21AM +0300, Leon Romanovsky wrote: > > > > On Wed, Jul 03, 2019

Re: Kernel BUG: epoll_wait() (and epoll_pwait) stall for 206 ms per call on sockets with a small-ish snd/rcv buffer.

2019-07-06 Thread Carlo Wood
I improved the test case a bit: https://github.com/CarloWood/ai-evio-testsuite/blob/2a9ae49e3ae39eea7cb1d105883254370f53831b/src/epoll_bug.c If the bug doesn't show, please increase burst_size and/or decrease sndbuf_size and rcvbuf_size. The output that I get with VERBOSE defined is for example:

Re: [PATCH 3/4] net: mvmdio: print warning when orion-mdio has too many clocks

2019-07-06 Thread Josua Mayer
Hi Andrew, Am 06.07.19 um 18:09 schrieb Andrew Lunn: > On Sat, Jul 06, 2019 at 05:18:59PM +0200, jo...@solid-run.com wrote: >> From: Josua Mayer >> >> Print a warning when device tree specifies more than the maximum of four >> clocks supported by orion-mdio. Because reading from mdio can lock up

[PATCH 1/2] proc: revalidate directories created with proc_net_mkdir()

2019-07-06 Thread Alexey Dobriyan
/proc/net directories may contain content which depends on net namespace. Such dentries should be revalidated after setns(CLONE_NEWNET). See commit 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 proc: fix /proc/net/* after setns(2) The patch is all about "pde_force_lookup()" line.

[PATCH 2/2] net: apply proc_net_mkdir() harder

2019-07-06 Thread Alexey Dobriyan
From: "Hallsmark, Per" proc_net_mkdir() should be used to create stuff under /proc/net, so that dentry revalidation kicks in. See commit 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 proc: fix /proc/net/* after setns(2) [added more chunks --adobriyan] Signed-off-by: "Hallsm

Re: [PATCH v6 bpf-next 3/5] selftests/bpf: test perf buffer API

2019-07-06 Thread Yonghong Song
On 7/5/19 11:02 PM, Andrii Nakryiko wrote: > Add test verifying perf buffer API functionality. > > Signed-off-by: Andrii Nakryiko > Acked-by: Song Liu > --- > .../selftests/bpf/prog_tests/perf_buffer.c| 94 +++ > .../selftests/bpf/progs/test_perf_buffer.c| 25 + >

Re: [PATCH v5 bpf-next 8/9] selftests/bpf: add kprobe/uprobe selftests

2019-07-06 Thread Yonghong Song
On 7/1/19 4:59 PM, Andrii Nakryiko wrote: > Add tests verifying kprobe/kretprobe/uprobe/uretprobe APIs work as > expected. > > Signed-off-by: Andrii Nakryiko > Reviewed-by: Stanislav Fomichev > Acked-by: Song Liu > --- > .../selftests/bpf/prog_tests/attach_probe.c | 166 ++

Re: [PATCH v6 bpf-next 0/5] libbpf: add perf buffer abstraction and API

2019-07-06 Thread Yonghong Song
On 7/5/19 11:02 PM, Andrii Nakryiko wrote: > This patchset adds a high-level API for setting up and polling perf buffers > associated with BPF_MAP_TYPE_PERF_EVENT_ARRAY map. Details of APIs are > described in corresponding commit. > > Patch #1 adds a set of APIs to set up and work with perf buff

Re: [PATCH v5 bpf-next 8/9] selftests/bpf: add kprobe/uprobe selftests

2019-07-06 Thread Andrii Nakryiko
On Sat, Jul 6, 2019 at 10:21 AM Yonghong Song wrote: > > > > On 7/1/19 4:59 PM, Andrii Nakryiko wrote: > > Add tests verifying kprobe/kretprobe/uprobe/uretprobe APIs work as > > expected. > > > > Signed-off-by: Andrii Nakryiko > > Reviewed-by: Stanislav Fomichev > > Acked-by: Song Liu > > --- >

Re: [PATCH v6 bpf-next 3/5] selftests/bpf: test perf buffer API

2019-07-06 Thread Andrii Nakryiko
On Sat, Jul 6, 2019 at 10:18 AM Yonghong Song wrote: > > > > On 7/5/19 11:02 PM, Andrii Nakryiko wrote: > > Add test verifying perf buffer API functionality. > > > > Signed-off-by: Andrii Nakryiko > > Acked-by: Song Liu > > --- > > .../selftests/bpf/prog_tests/perf_buffer.c| 94 +++

Re: [PATCH v5 bpf-next 8/9] selftests/bpf: add kprobe/uprobe selftests

2019-07-06 Thread Yonghong Song
On 7/6/19 10:42 AM, Andrii Nakryiko wrote: > On Sat, Jul 6, 2019 at 10:21 AM Yonghong Song wrote: >> >> >> >> On 7/1/19 4:59 PM, Andrii Nakryiko wrote: >>> Add tests verifying kprobe/kretprobe/uprobe/uretprobe APIs work as >>> expected. >>> >>> Signed-off-by: Andrii Nakryiko >>> Reviewed-by: St

[PATCH v7 bpf-next 0/5] libbpf: add perf buffer abstraction and API

2019-07-06 Thread Andrii Nakryiko
This patchset adds a high-level API for setting up and polling perf buffers associated with BPF_MAP_TYPE_PERF_EVENT_ARRAY map. Details of APIs are described in corresponding commit. Patch #1 adds a set of APIs to set up and work with perf buffer. Patch #2 enhances libbpf to support auto-setting PE

[PATCH v7 bpf-next 2/5] libbpf: auto-set PERF_EVENT_ARRAY size to number of CPUs

2019-07-06 Thread Andrii Nakryiko
For BPF_MAP_TYPE_PERF_EVENT_ARRAY typically correct size is number of possible CPUs. This is impossible to specify at compilation time. This change adds automatic setting of PERF_EVENT_ARRAY size to number of system CPUs, unless non-zero size is specified explicitly. This allows to adjust size for

[PATCH v7 bpf-next 5/5] libbpf: add perf_buffer_ prefix to README

2019-07-06 Thread Andrii Nakryiko
perf_buffer "object" is part of libbpf API now, add it to the list of libbpf function prefixes. Suggested-by: Daniel Borkman Signed-off-by: Andrii Nakryiko Acked-by: Yonghong Song --- tools/lib/bpf/README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/bpf/R

[PATCH v7 bpf-next 1/5] libbpf: add perf buffer API

2019-07-06 Thread Andrii Nakryiko
BPF_MAP_TYPE_PERF_EVENT_ARRAY map is often used to send data from BPF program to user space for additional processing. libbpf already has very low-level API to read single CPU perf buffer, bpf_perf_event_read_simple(), but it's hard to use and requires a lot of code to set everything up. This patch

[PATCH v7 bpf-next 4/5] tools/bpftool: switch map event_pipe to libbpf's perf_buffer

2019-07-06 Thread Andrii Nakryiko
Switch event_pipe implementation to rely on new libbpf perf buffer API (it's raw low-level variant). Signed-off-by: Andrii Nakryiko Acked-by: Jakub Kicinski Acked-by: Yonghong Song --- tools/bpf/bpftool/map_perf_ring.c | 201 ++ 1 file changed, 64 insertions(+), 137

[PATCH v7 bpf-next 3/5] selftests/bpf: test perf buffer API

2019-07-06 Thread Andrii Nakryiko
Add test verifying perf buffer API functionality. Signed-off-by: Andrii Nakryiko Acked-by: Song Liu Acked-by: Yonghong Song --- .../selftests/bpf/prog_tests/perf_buffer.c| 100 ++ .../selftests/bpf/progs/test_perf_buffer.c| 25 + 2 files changed, 125 insertions(+)

Re: Kernel BUG: epoll_wait() (and epoll_pwait) stall for 206 ms per call on sockets with a small-ish snd/rcv buffer.

2019-07-06 Thread Carlo Wood
While investigating this further, I read on http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch07lev1sec5.html under "SO_RCVBUF and SO_SNDBUF Socket Options": When setting the size of the TCP socket receive buffer, the ordering of the function calls is impo

[PATCH net-next v4 1/4] devlink: Refactor physical port attributes

2019-07-06 Thread Parav Pandit
To support additional devlink port flavours and to support few common and few different port attributes, make following changes. 1. Move physical port attributes to a different structure 2. Return such attritubes in netlink response only for physical ports (PHYSICAL, CPU and DSA) Signed-off-by: P

[PATCH net-next v4 4/4] net/mlx5e: Register devlink ports for physical link, PCI PF, VFs

2019-07-06 Thread Parav Pandit
Register devlink port of physical port, PCI PF and PCI VF flavour for each PF, VF when a given devlink instance is in switchdev mode. Implement ndo_get_devlink_port callback API to make use of registered devlink ports. This eliminates ndo_get_phys_port_name() and ndo_get_port_parent_id() callbacks

[PATCH net-next v4 2/4] devlink: Introduce PCI PF port flavour and port attribute

2019-07-06 Thread Parav Pandit
In an eswitch, PCI PF may have port which is normally represented using a representor netdevice. To have better visibility of eswitch port, its association with PF and a representor netdevice, introduce a PCI PF port flavour and port attriute. When devlink port flavour is PCI PF, fill up PCI PF at

[PATCH net-next v4 3/4] devlink: Introduce PCI VF port flavour and port attribute

2019-07-06 Thread Parav Pandit
In an eswitch, PCI VF may have port which is normally represented using a representor netdevice. To have better visibility of eswitch port, its association with VF, and its representor netdevice, introduce a PCI VF port flavour. When devlink port flavour is PCI VF, fill up PCI VF attributes of the

[PATCH net-next v4 0/4] devlink: Introduce PCI PF, VF ports and attributes

2019-07-06 Thread Parav Pandit
This patchset carry forwards the work initiated in [1] and discussion futher concluded at [2]. To improve visibility of representor netdevice, its association with PF or VF, physical port, two new devlink port flavours are added as PCI PF and PCI VF ports. A sample eswitch view can be seen below,

RE: [PATCH net-next v3 1/3] devlink: Introduce PCI PF port flavour and port attribute

2019-07-06 Thread Parav Pandit
> -Original Message- > From: Jiri Pirko > Sent: Saturday, July 6, 2019 11:56 AM > To: Parav Pandit > Cc: netdev@vger.kernel.org; Jiri Pirko ; Saeed Mahameed > ; jakub.kicin...@netronome.com > Subject: Re: [PATCH net-next v3 1/3] devlink: Introduce PCI PF port flavour > and > port attr

Re: [PATCH bpf-next v2 0/6] xdp: Add devmap_hash map type

2019-07-06 Thread Y Song
On Sat, Jul 6, 2019 at 1:47 AM Toke Høiland-Jørgensen wrote: > > This series adds a new map type, devmap_hash, that works like the existing > devmap type, but using a hash-based indexing scheme. This is useful for the > use > case where a devmap is indexed by ifindex (for instance for use with th

Re: [PATCH bpf-next v2 1/6] include/bpf.h: Remove map_insert_ctx() stubs

2019-07-06 Thread Y Song
On Sat, Jul 6, 2019 at 1:47 AM Toke Høiland-Jørgensen wrote: > > From: Toke Høiland-Jørgensen > > When we changed the device and CPU maps to use linked lists instead of > bitmaps, we also removed the need for the map_insert_ctx() helpers to keep > track of the bitmaps inside each map. However, it

Re: [PATCH bpf-next v2 2/6] xdp: Refactor devmap allocation code for reuse

2019-07-06 Thread Y Song
On Sat, Jul 6, 2019 at 1:47 AM Toke Høiland-Jørgensen wrote: > > From: Toke Høiland-Jørgensen > > The subsequent patch to add a new devmap sub-type can re-use much of the > initialisation and allocation code, so refactor it into separate functions. > > Signed-off-by: Toke Høiland-Jørgensen Acke

Re: [PATCH bpf-next v2 4/6] xdp: Add devmap_hash map type for looking up devices by hashed index

2019-07-06 Thread Y Song
On Sat, Jul 6, 2019 at 1:48 AM Toke Høiland-Jørgensen wrote: > > From: Toke Høiland-Jørgensen > > A common pattern when using xdp_redirect_map() is to create a device map > where the lookup key is simply ifindex. Because device maps are arrays, > this leaves holes in the map, and the map has to b

[PATCH] net, skbuff: Handle devmap managed page when skb->head_frag is true

2019-07-06 Thread Ujjal Roy
When head_frag is true we have page in the SKB head. So, for devm managed page we need to inform the device driver through callback. Signed-off-by: Ujjal Roy --- net/core/skbuff.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c

[net-next] bonding: fix value exported by Netlink for peer_notif_delay

2019-07-06 Thread Vincent Bernat
IFLA_BOND_PEER_NOTIF_DELAY was set to the value of downdelay instead of peer_notif_delay. After this change, the correct value is exported. Fixes: 07a4ddec3ce9 ("bonding: add an option to specify a delay between peer notifications") Signed-off-by: Vincent Bernat --- drivers/net/bonding/bond_net

[PATCH iproute2-next] ip: bond: add peer notification delay support

2019-07-06 Thread Vincent Bernat
Ability to tweak the delay between gratuitous ND/ARP packets has been added in kernel commit 07a4ddec3ce9 ("bonding: add an option to specify a delay between peer notifications"), through IFLA_BOND_PEER_NOTIF_DELAY attribute. Add support to set and show this value. Example: $ ip -d link set b

Re:

2019-07-06 Thread Giorgio Bugatto
Good day , my name is Giorgio Bugatto , i sent you a mail and there was no response , please confirm that you did get this mail for more details. Regards. Giorgio Bugatto

Re: [PATCH net-next] tipc: use rcu dereference functions properly

2019-07-06 Thread David Miller
From: Xin Long Date: Sat, 6 Jul 2019 14:48:48 +0800 > Hi, David, I saw this patch in "Changes Requested". I just put it back to Under Review, thanks.

Re: [PATCH net-next 0/4] bnxt_en: Add XDP_REDIRECT support.

2019-07-06 Thread David Miller
From: Michael Chan Date: Sat, 6 Jul 2019 03:36:14 -0400 > This patch series adds XDP_REDIRECT support by Andy Gospodarek. I'll give Jesper et al. a chance to review this.

More complex PBR rules

2019-07-06 Thread Markus Moeller
Hi Network developers I am new to this group and wonder if you can advise how I could implement more complex PBR rules to achieve for example load balancing. The requirement I have is to route based on e.g. a hash like: hash(src-ip+dst-ip) mod N routes via gwX0N gateways ) This woul

Re: [PATCH 1/2] proc: revalidate directories created with proc_net_mkdir()

2019-07-06 Thread Al Viro
On Sat, Jul 06, 2019 at 07:52:02PM +0300, Alexey Dobriyan wrote: > +struct proc_dir_entry *_proc_mkdir(const char *name, umode_t mode, > +struct proc_dir_entry **parent, void *data) Two underscores, please... > + parent->nlink++; > + pde = proc_regi

[PATCH net] tcp: Reset bytes_acked and bytes_received when disconnecting

2019-07-06 Thread Christoph Paasch
If an app is playing tricks to reuse a socket via tcp_disconnect(), bytes_acked/received needs to be reset to 0. Otherwise tcp_info will report the sum of the current and the old connection.. Cc: Eric Dumazet Fixes: 0df48c26d841 ("tcp: add tcpi_bytes_acked to tcp_info") Fixes: bdd1f9edacb5 ("tcp:

Re: [PATCH 3/4] net: mvmdio: print warning when orion-mdio has too many clocks

2019-07-06 Thread kbuild test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.2-rc7 next-20190705] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/j

Re: [PATCH 4/4] net: mvmdio: defer probe of orion-mdio if a clock is not ready

2019-07-06 Thread kbuild test robot
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.2-rc7 next-20190705] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: [PATCH net-next 00/12] mlx5 TLS TX HW offload support

2019-07-06 Thread Tariq Toukan
On 7/6/2019 2:29 AM, David Miller wrote: > From: Tariq Toukan > Date: Fri, 5 Jul 2019 18:30:10 +0300 > >> This series from Eran and me, adds TLS TX HW offload support to >> the mlx5 driver. > > Series applied, please deal with any further feedback you get from > Jakub et al. > > Thanks. >

Re: [PATCH net-next v3 1/4] net/sched: Introduce action ct

2019-07-06 Thread Paul Blakey
On 7/5/2019 12:55 AM, Jakub Kicinski wrote: > On Thu, 4 Jul 2019 14:53:50 +0300, Paul Blakey wrote: >> +static const struct nla_policy ct_policy[TCA_CT_MAX + 1] = { >> +[TCA_CT_ACTION] = { .type = NLA_U16 }, > Please use strict checking in all new policies. > > attr 0 must have .strict_start_