Re: [PATCH stable] net: sch_generic: fix the missing new qdisc assignment bug

2020-11-03 Thread Vishwanath Pai
On 11/2/20 10:25 PM, Yunsheng Lin wrote: > commit 2fb541c862c9 ("net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc") > > When the above upstream commit is backported to stable kernel, > one assignment is missing, which causes two problems reported > by Joakim and Vishwan

[PATCH bpf v3] bpf: zero-fill re-used per-cpu map element

2020-11-03 Thread David Verbeiren
Zero-fill element values for all other cpus than current, just as when not using prealloc. This is the only way the bpf program can ensure known initial values for all cpus ('onallcpus' cannot be set when coming from the bpf program). The scenario is: bpf program inserts some elements in a per-cpu

Re: [next-next v3 05/10] net: cdc_ncm: convert tasklets to use new tasklet_setup() API

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 13:02:26 +0530 Allen Pais wrote: > > > >> @@ -815,7 +815,7 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct > >> usb_interface *intf, u8 data_ > >> > >>hrtimer_init(&ctx->tx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); > >>ctx->tx_timer.function = &cdc_ncm_tx_ti

Re: [bpf-next PATCH v2 2/5] selftests/bpf: Drop python client/server in favor of threads

2020-11-03 Thread Alexander Duyck
On Mon, Nov 2, 2020 at 5:33 PM Martin KaFai Lau wrote: > > On Mon, Nov 02, 2020 at 04:49:42PM -0800, Alexander Duyck wrote: > > On Mon, Nov 2, 2020 at 4:38 PM Martin KaFai Lau wrote: > > > > > > On Sat, Oct 31, 2020 at 11:52:18AM -0700, Alexander Duyck wrote: > > > > From: Alexander Duyck > > >

Re: [PATCH v7 0/6] CTU CAN FD open-source IP core SocketCAN driver, PCI, platform integration and documentation

2020-11-03 Thread Marc Kleine-Budde
On 11/3/20 2:36 PM, Ondrej Ille wrote: > Hello Marc, > > thank you for review, I appreciate it. We will process all your notes, and get > rid of uin32_t and bitfields then. > > As Pavel pointed out, there are user space tests using this stuff, so it is > not just search and replace work. We will

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Thu, Oct 29, 2020 at 10:10:56AM +0200, Claudiu Manoil wrote: > When PTP timestamping is enabled on Tx, the controller > inserts the Tx timestamp at the beginning of the frame > buffer, between SFD and the L2 frame header. This means > that the skb provided by the stack is required to have > eno

Re: [PATCH net-next v2] net/usb/r8153_ecm: support ECM mode for RTL8153

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 10:32:41 +0100 Greg Kroah-Hartman wrote: > On Mon, Nov 02, 2020 at 11:47:18AM -0800, Jakub Kicinski wrote: > > On Mon, 2 Nov 2020 07:20:15 + Hayes Wang wrote: > > > Jakub Kicinski > > > > Can you describe the use case in more detail? > > > > > > > > AFAICT r8152 defines

Re: [PATCH 23/30] net: ieee802154: ca8210: Fix incorrectly named function param doc

2020-11-03 Thread Stefan Schmidt
Hello. On 02.11.20 12:45, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/net/ieee802154/ca8210.c:724: warning: Function parameter or member 'cas_ctl' not described in 'ca8210_rx_done' drivers/net/ieee802154/ca8210.c:724: warning: Excess function parameter 'cas_c

Re: [PATCH 20/30] net: ieee802154: ca8210: Fix a bunch of kernel-doc issues

2020-11-03 Thread Stefan Schmidt
Hello. On 02.11.20 12:45, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/net/ieee802154/ca8210.c:326: warning: Function parameter or member 'readq' not described in 'ca8210_test' drivers/net/ieee802154/ca8210.c:375: warning: Function parameter or member 'spi_tra

Re: [PATCH net-next] net: emaclite: Add error handling for of_address_ and phy read functions

2020-11-03 Thread Andrew Lunn
On Tue, Nov 03, 2020 at 07:01:05PM +0530, Radhey Shyam Pandey wrote: > From: Shravya Kumbham > > Add ret variable, conditions to check the return value and it's error > path for of_address_to_resource() and phy_read() functions. > > Addresses-Coverity: Event check_return value. Hi Radhey This

Re: [PATCH net-next] drivers: net: sky2: Fix -Wstringop-truncation with W=1

2020-11-03 Thread Stephen Hemminger
On Tue, 3 Nov 2020 10:19:55 + David Laight wrote: > From: Jakub Kicinski > > Sent: 03 November 2020 00:01 > > > > On Sat, 31 Oct 2020 18:40:28 +0100 Andrew Lunn wrote: > > > In function ‘strncpy’, > > > inlined from ‘sky2_name’ at > > > drivers/net/ethernet/marvell/sky2.c:4903:3, > >

Re: [PATCH] net: bridge: disable multicast while delete bridge

2020-11-03 Thread Nikolay Aleksandrov
On Mon, 2020-11-02 at 22:38 +0800, Menglong Dong wrote: > From: Menglong Dong > > This commit seems make no sense, as bridge is destroyed when > br_multicast_dev_del is called. > > In commit b1b9d366028f > ("bridge: move bridge multicast cleanup to ndo_uninit"), Xin Long > fixed the use-after-fr

Re: [PATCH net-next] drivers: net: sky2: Fix -Wstringop-truncation with W=1

2020-11-03 Thread Stephen Hemminger
On Tue, 3 Nov 2020 08:25:01 -0800 Stephen Hemminger wrote: > On Tue, 3 Nov 2020 10:19:55 + > David Laight wrote: > > > From: Jakub Kicinski > > > Sent: 03 November 2020 00:01 > > > > > > On Sat, 31 Oct 2020 18:40:28 +0100 Andrew Lunn wrote: > > > > In function ‘strncpy’, > > > >

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:13:19 +0200 Vladimir Oltean wrote: > [14538.046926] PC is at skb_release_data+0x6c/0x14c > [14538.051518] LR is at consume_skb+0x38/0xd8 > [14538.055588] pc : []lr : []psr: 200f0013 > [14538.061817] sp : c28f1da8 ip : fp : c265aa40 > [14538.067010] r10:

Re: [PATCH RFC] ipvs: add genetlink cmd to dump all services and destinations

2020-11-03 Thread Cezar Sá Espinola
Hi, > > + if (ctx->idx_svc == ctx->start_svc && ctx->last_svc != svc) > > + return 0; > > + > > + if (ctx->idx_svc > ctx->start_svc) { > > + if (ip_vs_genl_dump_service(skb, svc, cb) < 0) { > > + ctx->idx_svc--; > > + return -

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Julian Wiedmann
On 03.11.20 18:13, Vladimir Oltean wrote: > On Thu, Oct 29, 2020 at 10:10:56AM +0200, Claudiu Manoil wrote: >> When PTP timestamping is enabled on Tx, the controller >> inserts the Tx timestamp at the beginning of the frame >> buffer, between SFD and the L2 frame header. This means >> that the skb

RE: [PATCH net v3 0/2] dpaa_eth: buffer layout fixes

2020-11-03 Thread Camelia Alexandra Groza
> -Original Message- > From: Camelia Groza > Sent: Monday, November 2, 2020 20:35 > To: willemdebruijn.ker...@gmail.com; Madalin Bucur (OSS) > ; da...@davemloft.net; k...@kernel.org > Cc: netdev@vger.kernel.org; Camelia Alexandra Groza > > Subject: [PATCH net v3 0/2] dpaa_eth: buffer layo

Re: [PATCH net-next v2 00/19] net: phy: add support for shared interrupts (part 1)

2020-11-03 Thread Andrew Lunn
On Sun, Nov 01, 2020 at 02:50:55PM +0200, Ioana Ciornei wrote: > From: Ioana Ciornei > > This patch set aims to actually add support for shared interrupts in > phylib and not only for multi-PHY devices. While we are at it, > streamline the interrupt handling in phylib. Hi Ioana I did some quick

Re: [PATCH net-next v2 0/3] net: introduce rps_default_mask

2020-11-03 Thread Jakub Kicinski
On Tue, 03 Nov 2020 16:22:07 +0100 Paolo Abeni wrote: > On Mon, 2020-11-02 at 14:54 -0800, Jakub Kicinski wrote: > > On Fri, 30 Oct 2020 12:16:00 +0100 Paolo Abeni wrote: > > > Real-time setups try hard to ensure proper isolation between time > > > critical applications and e.g. network processin

Re: [PATCH net-next v3 2/4] dt-bindings: net: Add Rx/Tx output configuration for 10base T1L

2020-11-03 Thread Dan Murphy
Andrew On 10/30/20 2:56 PM, Andrew Lunn wrote: On Fri, Oct 30, 2020 at 12:29:48PM -0500, Dan Murphy wrote: Per the 802.3cg spec the 10base T1L can operate at 2 different differential voltages 1v p2p and 2.4v p2p. The abiility of the PHY to drive that output is dependent on the PHY's on board po

Re: [PATCH v3 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 10:51:00 + Vladimir Oltean wrote: > On Mon, Nov 02, 2020 at 12:34:11PM -0800, Florian Fainelli wrote: > > On 11/1/2020 11:16 AM, Vladimir Oltean wrote: > > > Now that we have a central TX reallocation procedure that accounts for > > > the tagger's needed headroom in a gener

Re: [PATCH net-next 0/5] net: add and use dev_get_tstats64

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 15:46:27 +0100 Heiner Kallweit wrote: > On 02.11.2020 23:36, Saeed Mahameed wrote: > > On Sun, 2020-11-01 at 13:33 +0100, Heiner Kallweit wrote: > >> It's a frequent pattern to use netdev->stats for the less frequently > >> accessed counters and per-cpu counters for the frequen

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Dan Murphy
Andrew On 10/30/20 3:15 PM, Andrew Lunn wrote: +static int dp83td510_config_init(struct phy_device *phydev) +{ + struct dp83td510_private *dp83td510 = phydev->priv; + int mst_slave_cfg; + int ret = 0; + + if (phy_interface_is_rgmii(phydev)) { + if (dp83td510

Re: [PATCH net-next v3 2/4] dt-bindings: net: Add Rx/Tx output configuration for 10base T1L

2020-11-03 Thread Andrew Lunn
> Do you have any issue with the property being in the ethernet-phy.yaml? It seems generic enough. Increasing the voltage increases the power requirements, and maybe not all boards are capable of that. Andrew

RE: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Claudiu Manoil
>-Original Message- >From: Julian Wiedmann >Sent: Tuesday, November 3, 2020 6:37 PM >To: Vladimir Oltean ; Claudiu Manoil > >Cc: netdev@vger.kernel.org; David S . Miller ; Jakub >Kicinski ; james.jur...@ametek.com >Subject: Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Dan Murphy
Hello On 10/30/20 6:03 PM, Jakub Kicinski wrote: On Fri, 30 Oct 2020 12:29:50 -0500 Dan Murphy wrote: The DP83TD510E is an ultra-low power Ethernet physical layer transceiver that supports 10M single pair cable. The device supports both 2.4-V p2p and 1-V p2p output voltage as defined by IEEE 8

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 17:08:43 + Claudiu Manoil wrote: > >> Still crashes for me: > >> > > > >Given the various skb modifications in its xmit path, I wonder why > >gianfar doesn't clear IFF_TX_SKB_SHARING. > > Hi Vladimir, > Can you try the above suggestion on your setup? While it is somethi

Re: [PATCH bpf-next 08/11] libbpf: support BTF dedup of split BTFs

2020-11-03 Thread Song Liu
> On Nov 2, 2020, at 10:31 PM, Andrii Nakryiko > wrote: > > On Mon, Nov 2, 2020 at 9:59 PM Song Liu wrote: >> >> >> >>> On Nov 2, 2020, at 9:25 PM, Andrii Nakryiko >>> wrote: >>> >>> On Mon, Nov 2, 2020 at 6:49 PM Song Liu wrote: > On Oct 28, 2020, at 5:58 PM, An

[PATCH v10 2/2] net: Add mhi-net driver

2020-11-03 Thread Loic Poulain
This patch adds a new network driver implementing MHI transport for network packets. Packets can be in any format, though QMAP (rmnet) is the usual protocol (flow control + PDN mux). It support two MHI devices, IP_HW0 which is, the path to the IPA (IP accelerator) on qcom modem, And IP_SW0 which i

[PATCH v10 1/2] bus: mhi: Add mhi_queue_is_full function

2020-11-03 Thread Loic Poulain
This function can be used by client driver to determine whether it's possible to queue new elements in a channel ring. Signed-off-by: Loic Poulain Reviewed-by: Manivannan Sadhasivam --- v1->v5: not part of the series v6: Add this commit, used for stopping TX queue v7: no change v8: remove st

RE: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Claudiu Manoil
>-Original Message- >From: Jakub Kicinski >Sent: Tuesday, November 3, 2020 6:31 PM >To: Vladimir Oltean >Cc: Claudiu Manoil ; netdev@vger.kernel.org; >David S . Miller ; james.jur...@ametek.com >Subject: Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with >skb_cow_head for P

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Andrew Lunn
On Tue, Nov 03, 2020 at 11:07:00AM -0600, Dan Murphy wrote: > Andrew > > On 10/30/20 3:15 PM, Andrew Lunn wrote: > > > +static int dp83td510_config_init(struct phy_device *phydev) > > > +{ > > > + struct dp83td510_private *dp83td510 = phydev->priv; > > > + int mst_slave_cfg; > > > + int ret = 0; >

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 06:36:30PM +0200, Julian Wiedmann wrote: > Given the various skb modifications in its xmit path, I wonder why > gianfar doesn't clear IFF_TX_SKB_SHARING. Thanks for the hint Julian :) I'll try to see if it makes any difference. Just a wild guess, but maybe because the gian

Re: [PATCHv3 iproute2-next 3/5] lib: add libbpf support

2020-11-03 Thread David Ahern
On 11/2/20 10:48 PM, Hangbin Liu wrote: > > The iproute2_* functions need access static struct bpf_elf_ctx __ctx; > We need move the struct bpf_elf_ctx to another header file if add the > iproute2_* functions to compat file. Do you still want this? > ok, leave it in legacy for now.

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Andrew Lunn
On Tue, Nov 03, 2020 at 11:09:44AM -0600, Dan Murphy wrote: > Hello > > On 10/30/20 6:03 PM, Jakub Kicinski wrote: > > On Fri, 30 Oct 2020 12:29:50 -0500 Dan Murphy wrote: > > > The DP83TD510E is an ultra-low power Ethernet physical layer transceiver > > > that supports 10M single pair cable. > >

[PATCH net-next 01/16] selftests: net: bridge: factor out mcast_packet_test

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Factor out mcast_packet_test into lib.sh so it can be later extended and reused by MLDv2 tests. Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_igmp.sh | 32 --- tools/testing/selftests/net/forwarding/lib.sh | 32 ++

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Dan Murphy
Andrew On 11/3/20 11:21 AM, Andrew Lunn wrote: On Tue, Nov 03, 2020 at 11:09:44AM -0600, Dan Murphy wrote: Hello On 10/30/20 6:03 PM, Jakub Kicinski wrote: On Fri, 30 Oct 2020 12:29:50 -0500 Dan Murphy wrote: The DP83TD510E is an ultra-low power Ethernet physical layer transceiver that suppo

[PATCH net-next 11/16] selftests: net: bridge: add test for mldv2 exc -> is_exclude report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions EXCLUDE (X,Y) IS_EX (A) EXCLUDE (A-Y, Y*A) (A-X-Y)=MALI Delete (X-A)

[PATCH net-next 12/16] selftests: net: bridge: add test for mldv2 exc -> to_exclude report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions EXCLUDE (X,Y) TO_EX (A) EXCLUDE (A-Y,Y*A)(A-X-Y) = Filter Timer

[PATCH net-next 05/16] selftests: net: bridge: add test for mldv2 inc -> allow report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions INCLUDE (A) ALLOW (B) INCLUDE (A+B)(B)=MALI Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 29 +++

[PATCH net-next 04/16] selftests: net: bridge: add initial MLDv2 include test

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Add the initial setup for MLDv2 tests with the first test of a simple is_include report. For MLDv2 we need to setup the bridge properly and we also send the full precooked packets instead of relying on mausezahn to fill in some parts. For verification we use the generic

[PATCH net-next 10/16] selftests: net: bridge: add test for mldv2 exc -> is_include report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions EXCLUDE (X,Y) IS_IN (A) EXCLUDE (X+A, Y-A) (A)=MALI Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 30 +++

[PATCH net-next 02/16] selftests: net: lib: add support for IPv6 mcast packet test

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov In order to test an IPv6 multicast packet we need to pass different tc and mausezahn protocols only, so add a simple check for the destination address which decides if we should generate an IPv4 or IPv6 mcast packet. Signed-off-by: Nikolay Aleksandrov --- tools/testin

[PATCH net-next 14/16] selftests: net: bridge: add test for mldv2 exc -> block report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions EXCLUDE (X,Y) BLOCK (A) EXCLUDE (X+(A-Y),Y) (A-X-Y) = Filter Timer

[PATCH net-next 00/16] selftests: net: bridge: add tests for MLDv2

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Hi, This is the second selftests patch-set for the new multicast functionality which adds tests for the bridge's MLDv2 support. The tests use full precooked packets which are sent via mausezahn and the resulting state after each test is checked for proper X,Y sets, (*,G)

[PATCH net-next 06/16] selftests: net: bridge: add test for mldv2 inc -> is_include report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions INCLUDE (A) IS_IN (B) INCLUDE (A+B) (B)=MALI Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 29 +++

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 09:12:26AM -0800, Jakub Kicinski wrote: > While it is something to be fixed - is anything other than pktgen > making use of IFF_TX_SKB_SHARING? Are you running pktgen, Vladimir? Nope, just iperf3 TCP and PTP. The problem is actually with PTP, I've been testing gianfar with

[PATCH net-next 09/16] selftests: net: bridge: add test for mldv2 exc -> allow report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions EXCLUDE (X,Y) ALLOW (A) EXCLUDE (X+A,Y-A)(A)=MALI Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 30 +++

[PATCH net-next 16/16] selftests: net: bridge: add test for mldv2 *,g auto-add

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov When we have *,G ports in exclude mode and a new S,G,port is added the kernel has to automatically create an S,G entry for each exclude port to get proper forwarding. Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 31 +++

[PATCH net-next 03/16] selftests: net: bridge: factor out and rename sg state functions

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Factor out S,G entry state checking functions for existence, forwarding, blocking and timer to lib.sh so they can be later used by MLDv2 tests. Add brmcast_ suffix to their name to make the relation to the bridge explicit. Signed-off-by: Nikolay Aleksandrov --- .../se

[PATCH net-next 08/16] selftests: net: bridge: add test for mldv2 inc -> to_exclude report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions INCLUDE (A) TO_EX (B) EXCLUDE (A*B,B-A)(B-A)=0 Delete (A-B)

[PATCH net-next 15/16] selftests: net: bridge: add test for mldv2 exclude timeout

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Test that when a group in exclude mode expires it changes mode to include and the blocked entries are deleted. Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 48 ++- 1 file changed, 47 insertions(+), 1 deletion(-

[PATCH net-next 13/16] selftests: net: bridge: add test for mldv2 inc -> block report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions INCLUDE (A) BLOCK (B) INCLUDE (A) Send Q(MA,A*B) Signed-off-by: Nikolay Aleksandrov --- .../selftests/net/forwarding/bridge_mld.sh| 37 +

[PATCH net-next 07/16] selftests: net: bridge: add test for mldv2 inc -> is_exclude report

2020-11-03 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The test checks for the following case: Router State Report Received New Router State Actions INCLUDE (A) IS_EX (B) EXCLUDE (A*B, B-A) (B-A)=0 Delete (A-B)

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 07:18:49PM +0200, Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 06:36:30PM +0200, Julian Wiedmann wrote: > > Given the various skb modifications in its xmit path, I wonder why > > gianfar doesn't clear IFF_TX_SKB_SHARING. > > Thanks for the hint Julian :) I'll try to see

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 05:18:25PM +, Claudiu Manoil wrote: > It's either the dev_kfree_skb_any from the dma mapping error path or the one > from skb_cow_head()'s error path. A confirmation would help indeed. It says "consume", not "kfree", which in my mind would make it point towards the onl

Re: [PATCH v3 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-11-03 Thread Florian Fainelli
On 11/3/2020 2:51 AM, Vladimir Oltean wrote: > On Mon, Nov 02, 2020 at 12:34:11PM -0800, Florian Fainelli wrote: >> On 11/1/2020 11:16 AM, Vladimir Oltean wrote: >>> Now that we have a central TX reallocation procedure that accounts for >>> the tagger's needed headroom in a generic way, we can r

Re: [PATCHv3 iproute2-next 1/5] configure: add check_libbpf() for later libbpf support

2020-11-03 Thread David Ahern
On 11/2/20 10:54 PM, Hangbin Liu wrote: > On Mon, Nov 02, 2020 at 08:37:37AM -0700, David Ahern wrote: >> On 10/29/20 9:11 AM, Hangbin Liu wrote: >>> This patch adds a check to see if we support libbpf. By default the >>> system libbpf will be used, but static linking against a custom libbpf >>> ve

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-03 Thread David Ahern
On 11/3/20 1:46 AM, Daniel Borkmann wrote: > I thought last time this discussion came up there was consensus that the > submodule could be an explicit opt in for the configure script at least? I do not recall Stephen agreeing to that, and I certainly did not.

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Dan Murphy
Andrew On 11/3/20 11:18 AM, Andrew Lunn wrote: On Tue, Nov 03, 2020 at 11:07:00AM -0600, Dan Murphy wrote: Andrew On 10/30/20 3:15 PM, Andrew Lunn wrote: +static int dp83td510_config_init(struct phy_device *phydev) +{ + struct dp83td510_private *dp83td510 = phydev->priv; + int mst

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 19:30:07 +0200 Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 05:18:25PM +, Claudiu Manoil wrote: > > It's either the dev_kfree_skb_any from the dma mapping error path or the one > > from skb_cow_head()'s error path. A confirmation would help indeed. > > It says "consum

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 07:24:41PM +0200, Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 09:12:26AM -0800, Jakub Kicinski wrote: > > While it is something to be fixed - is anything other than pktgen > > making use of IFF_TX_SKB_SHARING? Are you running pktgen, Vladimir? > > Nope, just iperf3 TCP

Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY

2020-11-03 Thread Andrew Lunn
> > > > drivers/net/phy/dp83td510.c:70:11: warning: symbol > > > > 'dp83td510_feature_array' was not declared. Should it be static? > > > I did not see this warning. Did you use W=1? > > I _think_ that one is W=1. All the PHY drivers are W=1 clean, and i > > want to keep it that way. And i hope to

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 09:36:55 -0800 Jakub Kicinski wrote: > On Tue, 3 Nov 2020 19:30:07 +0200 Vladimir Oltean wrote: > > On Tue, Nov 03, 2020 at 05:18:25PM +, Claudiu Manoil wrote: > > > It's either the dev_kfree_skb_any from the dma mapping error path or the > > > one > > > from skb_cow_head(

RE: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Claudiu Manoil
>-Original Message- >From: Vladimir Oltean >Sent: Tuesday, November 3, 2020 7:30 PM >To: Claudiu Manoil >Cc: Jakub Kicinski ; netdev@vger.kernel.org; David S . >Miller ; james.jur...@ametek.com >Subject: Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with >skb_cow_head for P

Re: [net-next PATCH 2/3] octeontx2-af: Add devlink health reporters for NPA

2020-11-03 Thread George Cherian
Hi Willem, > -Original Message- > From: Willem de Bruijn > Sent: Tuesday, November 3, 2020 7:21 PM > To: George Cherian > Cc: Network Development ; linux-kernel ker...@vger.kernel.org>; Jakub Kicinski ; David Miller > ; Sunil Kovvuri Goutham > ; Linu Cherian ; > Geethasowjanya Akula ;

BUG: sleeping function called from invalid context in sta_info_move_state

2020-11-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:04a55c94 Merge tag 'mac80211-for-net-2020-10-30' of git://.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=12079c3a50 kernel config: https://syzkaller.appspot.com/x/.config?x=803dd96a0e492ac1 dashboar

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-03 Thread David Ahern
On 11/3/20 1:42 AM, Jiri Benc wrote: > And I'm convinced this is the way to go for libraries, too: put an > emphasis on API stability. Make it easy to get consumed and updated > under the hood. Everybody wins this way. exactly. Libraries should export well thought out, easy to use, stable APIs. Ma

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-03 Thread Alexei Starovoitov
On Tue, Nov 3, 2020 at 9:36 AM David Ahern wrote: > > On 11/3/20 1:46 AM, Daniel Borkmann wrote: > > I thought last time this discussion came up there was consensus that the > > submodule could be an explicit opt in for the configure script at least? > > I do not recall Stephen agreeing to that, a

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-03 Thread Alexei Starovoitov
On Tue, Nov 3, 2020 at 12:42 AM Jiri Benc wrote: > sight, this sounds easier for the developers. Why bother with dynamic > linking at all? Everything can be linked statically. That's exactly what some companies do. Linking everything statically provides stronger security.

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 05:41:36PM +, Claudiu Manoil wrote: > This is the patch: > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=d145c9031325fed963a887851d9fa42516efd52b > > are you sure you have it applied? Actually? No, I didn't have it applied... I had thought t

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 09:36:55AM -0800, Jakub Kicinski wrote: > IIRC we did this because too many drivers used dev_kfree_skb > incorrectly and made the dropwatch output very noisy. Nice, so that's why the drop monitor never complains with my misplaced dev_kfree_skb_any calls...

[PATCH net] r8169: work around short packet hw bug on RTL8125

2020-11-03 Thread Heiner Kallweit
Network problems with RTL8125B have been reported [0] and with help from Realtek it turned out that this chip version has a hw problem with short packets (similar to RTL8168evl). Having said that activate the same workaround as for RTL8168evl. Realtek suggested to activate the workaround for RTL812

Re: [PATCH bpf-next 08/11] libbpf: support BTF dedup of split BTFs

2020-11-03 Thread Alexei Starovoitov
On Mon, Nov 02, 2020 at 10:27:20PM -0800, Andrii Nakryiko wrote: > On Mon, Nov 2, 2020 at 9:10 PM Alexei Starovoitov > wrote: > > > > On Wed, Oct 28, 2020 at 05:58:59PM -0700, Andrii Nakryiko wrote: > > > @@ -2942,6 +2948,13 @@ struct btf_dedup { > > > __u32 *hypot_list; > > > size_t h

Re: [net-next PATCH 2/3] octeontx2-af: Add devlink health reporters for NPA

2020-11-03 Thread Willem de Bruijn
On Tue, Nov 3, 2020 at 12:43 PM George Cherian wrote: > > Hi Willem, > > > > -Original Message- > > From: Willem de Bruijn > > Sent: Tuesday, November 3, 2020 7:21 PM > > To: George Cherian > > Cc: Network Development ; linux-kernel > ker...@vger.kernel.org>; Jakub Kicinski ; David Mill

Re: [net-next PATCH 2/3] octeontx2-af: Add devlink health reporters for NPA

2020-11-03 Thread George Cherian
Hi Willem, > -Original Message- > From: Willem de Bruijn > Sent: Tuesday, November 3, 2020 7:21 PM > To: George Cherian > Cc: Network Development ; linux-kernel ker...@vger.kernel.org>; Jakub Kicinski ; David Miller > ; Sunil Kovvuri Goutham > ; Linu Cherian ; > Geethasowjanya Akula ;

Re: [net-next PATCH 2/3] octeontx2-af: Add devlink health reporters for NPA

2020-11-03 Thread George Cherian
Hi Willem, > -Original Message- > From: Willem de Bruijn > Sent: Tuesday, November 3, 2020 11:26 PM > To: George Cherian > Cc: Network Development ; linux-kernel ker...@vger.kernel.org>; Jakub Kicinski ; David Miller > ; Sunil Kovvuri Goutham > ; Linu Cherian ; > Geethasowjanya Akula ;

Re: [PATCH v3 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 09:32:38AM -0800, Florian Fainelli wrote: > the length verification is done after the Broadcom tag is stripped off > the ingress packet. Aha, that makes sense. So to the DSA master it has the proper length, but to the switch it doesn't. Interesting problem. It must mean tha

[PATCH 1/2] rsi: Move card interrupt handling to RX thread

2020-11-03 Thread Marek Vasut
The interrupt handling of the RS911x is particularly heavy. For each RX packet, the card does three SDIO transactions, one to read interrupt status register, one to RX buffer length, one to read the RX packet(s). This translates to ~330 uS per one cycle of interrupt handler. In case there is more i

[PATCH 2/2] rsi: Clean up loop in the interrupt handler

2020-11-03 Thread Marek Vasut
The inner do { ... } while loop is completely useless, all it does is iterate over a switch-case statement, one bit at a time. This can easily be replaced by simple if (status & bit) { ... } tests for each bit. No functional change. Signed-off-by: Marek Vasut Cc: Angus Ainslie Cc: David S. Mille

Re: [bpf-next PATCH v2 5/5] selftest/bpf: Use global variables instead of maps for test_tcpbpf_kern

2020-11-03 Thread Martin KaFai Lau
On Tue, Nov 03, 2020 at 07:42:46AM -0800, Alexander Duyck wrote: > On Mon, Nov 2, 2020 at 5:26 PM Martin KaFai Lau wrote: > > > > On Sat, Oct 31, 2020 at 11:52:37AM -0700, Alexander Duyck wrote: > > [ ... ] > > > > > +struct tcpbpf_globals global = { 0 }; > > > int _version SEC("version") = 1; >

Re: [PATCH v3 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 09:04:11AM -0800, Jakub Kicinski wrote: > In a recent discussion I was wondering if it makes sense to add the > padding len to struct net_device, with similar best-effort semantics > to needed_*room. It'd be a u8, so little worry about struct size. What would that mean in p

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 07:49:06PM +0200, Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 05:41:36PM +, Claudiu Manoil wrote: > > This is the patch: > > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=d145c9031325fed963a887851d9fa42516efd52b > > > > are you sure you

Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP

2020-11-03 Thread Eric Dumazet
On 11/3/20 6:49 PM, Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 05:41:36PM +, Claudiu Manoil wrote: >> This is the patch: >> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=d145c9031325fed963a887851d9fa42516efd52b >> >> are you sure you have it applied? > > Ac

Re: [PATCH bpf v3] bpf: zero-fill re-used per-cpu map element

2020-11-03 Thread Andrii Nakryiko
On Tue, Nov 3, 2020 at 7:49 AM David Verbeiren wrote: > > Zero-fill element values for all other cpus than current, just as > when not using prealloc. This is the only way the bpf program can > ensure known initial values for all cpus ('onallcpus' cannot be > set when coming from the bpf program).

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-03 Thread Stephen Hemminger
On Tue, 3 Nov 2020 09:47:00 -0800 Alexei Starovoitov wrote: > On Tue, Nov 3, 2020 at 9:36 AM David Ahern wrote: > > > > On 11/3/20 1:46 AM, Daniel Borkmann wrote: > > > I thought last time this discussion came up there was consensus that the > > > submodule could be an explicit opt in for the

Re: [PATCH bpf] selftest/bpf: Validate initial values of per-cpu hash elems

2020-11-03 Thread Andrii Nakryiko
On Mon, Nov 2, 2020 at 3:41 AM David Verbeiren wrote: > > On Thu, Oct 29, 2020 at 11:37 PM Andrii Nakryiko > wrote: > > > > On Thu, Oct 29, 2020 at 11:36 AM Song Liu wrote: > > > > > > On Thu, Oct 29, 2020 at 4:19 AM David Verbeiren > > > wrote: > > > > > > > > Tests that when per-cpu hash map

Re: [bpf-next PATCH v2 1/5] selftests/bpf: Move test_tcppbf_user into test_progs

2020-11-03 Thread Andrii Nakryiko
On Sat, Oct 31, 2020 at 11:52 AM Alexander Duyck wrote: > > From: Alexander Duyck > > Recently a bug was missed due to the fact that test_tcpbpf_user is not a > part of test_progs. In order to prevent similar issues in the future move > the test functionality into test_progs. By doing this we can

Re: [PATCH v3 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:15:29 + Vladimir Oltean wrote: > On Tue, Nov 03, 2020 at 09:04:11AM -0800, Jakub Kicinski wrote: > > In a recent discussion I was wondering if it makes sense to add the > > padding len to struct net_device, with similar best-effort semantics > > to needed_*room. It'd be a

Re: [bpf-next PATCH v2 3/5] selftests/bpf: Replace EXPECT_EQ with ASSERT_EQ and refactor verify_results

2020-11-03 Thread Andrii Nakryiko
On Sat, Oct 31, 2020 at 11:52 AM Alexander Duyck wrote: > > From: Alexander Duyck > > There is already logic in test_progs.h for asserting that a value is > expected to be another value. So instead of reinventing it we should just > make use of ASSERT_EQ in tcpbpf_user.c. This will allow for bett

Re: [PATCH 2/2] ethernet: igb: e1000_phy: Check for ops.force_speed_duplex existence

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 08:35:09 +0100 Paul Menzel wrote: > According to *Developer's Certificate of Origin 1.1* [3], it’s my > understanding, that it is *not* required. The items (a), (b), and (c) > are connected by an *or*. > > > (b) The contribution is based upon previous work that, to the

Re: [bpf-next PATCH v2 5/5] selftest/bpf: Use global variables instead of maps for test_tcpbpf_kern

2020-11-03 Thread Andrii Nakryiko
On Sat, Oct 31, 2020 at 11:52 AM Alexander Duyck wrote: > > From: Alexander Duyck > > Use global variables instead of global_map and sockopt_results_map to track > test data. Doing this greatly simplifies the code as there is not need to > take the extra steps of updating the maps or looking up e

Re: linux-next: Tree for Nov 3 (drivers/net/ethernet/marvell/prestera/prestera_switchdev.o)

2020-11-03 Thread Randy Dunlap
On 11/2/20 11:19 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20201102: > on x86_64: when CONFIG_BRIDGE=m: ld: drivers/net/ethernet/marvell/prestera/prestera_switchdev.o: in function `prestera_bridge_port_event': prestera_switchdev.c:(.text+0x2ebd): undefined reference to `br_vlan_

Re: [PATCH net v3 0/2] dpaa_eth: buffer layout fixes

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 16:37:26 + Camelia Alexandra Groza wrote: > > Subject: [PATCH net v3 0/2] dpaa_eth: buffer layout fixes > > > > The patches are related to the software workaround for the A050385 > > erratum. > > The first patch ensures optimal buffer usage for non-erratum scenarios. The > >

Re: [PATCH] IPv6: Set SIT tunnel hard_header_len to zero

2020-11-03 Thread Willem de Bruijn
On Tue, Nov 3, 2020 at 5:41 AM Oliver Herms wrote: > > Due to the legacy usage of hard_header_len for SIT tunnels while > already using infrastructure from net/ipv4/ip_tunnel.c the > calculation of the path MTU in tnl_update_pmtu is incorrect. > This leads to unnecessary creation of MTU exceptions

Re: [PATCH bpf 1/2] libbpf: fix null dereference in xsk_socket__delete

2020-11-03 Thread Andrii Nakryiko
On Tue, Nov 3, 2020 at 1:41 AM Magnus Karlsson wrote: > > From: Magnus Karlsson > > Fix a possible null pointer dereference in xsk_socket__delete that > will occur if a null pointer is fed into the function. > > Fixes: 2f6324a3937f ("libbpf: Support shared umems between queues and > devices") >

Re: [PATCH V2] net: ethernet: mscc: fix missing brace warning for old compilers

2020-11-03 Thread Jakub Kicinski
On Tue, 3 Nov 2020 10:55:19 +0800 Pujin Shi wrote: > For older versions of gcc, the array = {0}; will cause warnings: Please include the version of gcc which generates this warning here. > drivers/net/ethernet/mscc/ocelot_vcap.c: In function 'is1_entry_set': > drivers/net/ethernet/mscc/ocelot_vc

[PATCH net-next v2 6/7] docs: networking: mptcp: Add MPTCP sysctl entries

2020-11-03 Thread Mat Martineau
Describe the two MPTCP sysctls, what the values mean, and the default settings. Acked-by: Geliang Tang Signed-off-by: Mat Martineau --- Documentation/networking/index.rst| 1 + Documentation/networking/mptcp-sysctl.rst | 26 +++ MAINTAINERS

[PATCH net-next v2 3/7] tcp: propagate MPTCP skb extensions on xmit splits

2020-11-03 Thread Mat Martineau
From: Paolo Abeni When the TCP stack splits a packet on the write queue, the tail half currently lose the associated skb extensions, and will not carry the DSM on the wire. The above does not cause functional problems and is allowed by the RFC, but interact badly with GRO and RX coalescing, as p

Re: [PATCH bpf 2/2] libbpf: fix possible use after free in xsk_socket__delete

2020-11-03 Thread Andrii Nakryiko
On Tue, Nov 3, 2020 at 1:42 AM Magnus Karlsson wrote: > > From: Magnus Karlsson > > Fix a possible use after free in xsk_socket__delete that will happen > if xsk_put_ctx() frees the ctx. To fix, save the umem reference taken > from the context and just use that instead. > > Fixes: 2f6324a3937f ("

<    1   2   3   4   >