Re: [PATCH net-next v2 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Jason Xing
On Sat, May 11, 2024 at 4:20 AM Daniel Jurgens wrote: > > TX queue stop and wake are counted by some drivers. > Support reporting these via netdev-genl queue stats. > > Signed-off-by: Daniel Jurgens > Reviewed-by: Jiri Pirko Good to see this finally :) Revie

Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Andrew Lunn
> It wouldn't be trivial. The stats are queried from the driver. So are page pool stats, with the increments happening in the page pool code, not the driver. Andrew

RE: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Dan Jurgens
> From: Andrew Lunn > Sent: Friday, May 10, 2024 7:59 AM > To: Dan Jurgens > Cc: netdev@vger.kernel.org; m...@redhat.com; jasow...@redhat.com; > xuanz...@linux.alibaba.com; virtualizat...@lists.linux.dev; > da...@davemloft.net; eduma...@google.com; k...@kernel.org; > pa

[PATCH net-next v2 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Daniel Jurgens
TX queue stop and wake are counted by some drivers. Support reporting these via netdev-genl queue stats. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- Documentation/netlink/specs/netdev.yaml | 14 ++ include/net/netdev_queues.h | 3 +++ include/uapi/linux

Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Andrew Lunn
On Thu, May 09, 2024 at 09:19:52PM +, Dan Jurgens wrote: > > From: Andrew Lunn > > Sent: Thursday, May 9, 2024 3:47 PM > > To: Dan Jurgens > > Subject: Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and > > wake > > > > On Thu, May 09

RE: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Dan Jurgens
> From: Jakub Kicinski > Sent: Thursday, May 9, 2024 8:31 PM > To: Dan Jurgens > Cc: netdev@vger.kernel.org; m...@redhat.com; jasow...@redhat.com; > xuanz...@linux.alibaba.com; virtualizat...@lists.linux.dev; > da...@davemloft.net; eduma...@google.com; pab...@redhat.com; Jiri

Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Jakub Kicinski
On Thu, 9 May 2024 11:32:15 -0500 Daniel Jurgens wrote: > diff --git a/tools/include/uapi/linux/netdev.h > b/tools/include/uapi/linux/netdev.h > index cf24f1d9adf8..ccf6976b1693 100644 > --- a/tools/include/uapi/linux/netdev.h > +++ b/tools/include/uapi/linux/netdev.h > @@ -164,7 +164,8 @@ enum {

RE: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Dan Jurgens
> From: Andrew Lunn > Sent: Thursday, May 9, 2024 3:47 PM > To: Dan Jurgens > Subject: Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and > wake > > On Thu, May 09, 2024 at 11:32:15AM -0500, Daniel Jurgens wrote: > > TX queue stop and wake are counted b

Re: [PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Andrew Lunn
On Thu, May 09, 2024 at 11:32:15AM -0500, Daniel Jurgens wrote: > TX queue stop and wake are counted by some drivers. > Support reporting these via netdev-genl queue stats. > > Signed-off-by: Daniel Jurgens > Reviewed-by: Jiri Pirko > --- > Documentation/netlink/s

[PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Daniel Jurgens
TX queue stop and wake are counted by some drivers. Support reporting these via netdev-genl queue stats. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- Documentation/netlink/specs/netdev.yaml | 10 ++ include/net/netdev_queues.h | 3 +++ include/uapi/linux

Re: [PATCH net-next v7 7/8] netdev: add queue stats

2024-04-26 Thread Jakub Kicinski
On Fri, 26 Apr 2024 11:39:27 +0800 Xuan Zhuo wrote: > These stats are commonly. Support reporting those via netdev-genl queue > stats. > > name: rx-hw-drops > name: rx-hw-drop-overruns > name: rx-csum-unnecessary > name: rx-csum-none > name: rx-csum-bad > name: rx-hw-gr

[PATCH net-next v7 7/8] netdev: add queue stats

2024-04-25 Thread Xuan Zhuo
These stats are commonly. Support reporting those via netdev-genl queue stats. name: rx-hw-drops name: rx-hw-drop-overruns name: rx-csum-unnecessary name: rx-csum-none name: rx-csum-bad name: rx-hw-gro-packets name: rx-hw-gro-bytes name: rx-hw-gro-wire-packets name: rx-hw-gro-wire-bytes name: rx

[PATCH net-next v6 7/8] netdev: add queue stats

2024-04-23 Thread Xuan Zhuo
These stats are commonly. Support reporting those via netdev-genl queue stats. name: rx-hw-drops name: rx-hw-drop-overruns name: rx-csum-unnecessary name: rx-csum-none name: rx-csum-bad name: rx-hw-gro-packets name: rx-hw-gro-bytes name: rx-hw-gro-wire-packets name: rx-hw-gro-wire-bytes name: rx

[PATCH net-next v5 8/9] netdev: add queue stats

2024-03-18 Thread Xuan Zhuo
These stats are commonly. Support reporting those via netdev-genl queue stats. name: rx-hw-drops name: rx-hw-drop-overruns name: rx-csum-unnecessary name: rx-csum-none name: rx-csum-bad name: rx-hw-gro-packets name: rx-hw-gro-bytes name: rx-hw-gro-wire-packets name: rx-hw-gro-wire-bytes name: rx

Re: [PATCH net-next v4 7/8] netdev: add queue stats

2024-03-15 Thread Xuan Zhuo
On Thu, 14 Mar 2024 16:21:42 -0700, Jakub Kicinski wrote: > On Thu, 14 Mar 2024 16:54:58 +0800 Xuan Zhuo wrote: > > + - > > +name: rx-hw-drops > > +doc: | > > + Number of packets that arrived at the device but never left it, > > + encompassing packets dropped

Re: [PATCH net-next v4 7/8] netdev: add queue stats

2024-03-14 Thread Jakub Kicinski
On Thu, 14 Mar 2024 16:54:58 +0800 Xuan Zhuo wrote: > + - > +name: rx-hw-drops > +doc: | > + Number of packets that arrived at the device but never left it, > + encompassing packets dropped for reasons such as insufficient > buffer s/encompassing/including/

[PATCH net-next v4 7/8] netdev: add queue stats

2024-03-14 Thread Xuan Zhuo
These stats are commonly. Support reporting those via netdev-genl queue stats. name: rx-hw-drops name: rx-hw-drop-overruns name: rx-csum-unnecessary name: rx-csum-none name: rx-csum-bad name: rx-hw-gro-packets name: rx-hw-gro-bytes name: rx-hw-gro-wire-packets name: rx-hw-gro-wire-bytes name: rx

Re: [PATCH net-next 03/15] ice: Add new VSI states to track netdev alloc/registration

2021-04-15 Thread Jakub Kicinski
On Wed, 14 Apr 2021 17:30:01 -0700 Tony Nguyen wrote: > From: Anirudh Venkataramanan > > Add two new VSI states, one to track if a netdev for the VSI has been > allocated and the other to track if the netdev has been registered. > Call unregister_netdev/free_netdev only when th

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 20:42:36, Vincent MAILHOL wrote: > On Thu. 15 Apr 2021 at 18:04, Marc Kleine-Budde wrote: > > On 15.04.2021 09:47:23, Colin King wrote: > > > From: Colin Ian King > > > > > > There is an assignment to *netdev tha

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Vincent MAILHOL
On Thu. 15 Apr 2021 at 18:04, Marc Kleine-Budde wrote: > On 15.04.2021 09:47:23, Colin King wrote: > > From: Colin Ian King > > > > There is an assignment to *netdev that is can potentially be null but the ^^ Typo: that is can

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 09:47:23, Colin King wrote: > From: Colin Ian King > > There is an assignment to *netdev that is can potentially be null but the > null check is checking netdev and not *netdev as intended. Fix this by > adding in the missing * operator. > > Addresses-Co

[PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Colin King
From: Colin Ian King There is an assignment to *netdev that is can potentially be null but the null check is checking netdev and not *netdev as intended. Fix this by adding in the missing * operator. Addresses-Coverity: ("Dereference before null check") Fixes: 8537257874e9 ("

[PATCH net-next 03/15] ice: Add new VSI states to track netdev alloc/registration

2021-04-14 Thread Tony Nguyen
From: Anirudh Venkataramanan Add two new VSI states, one to track if a netdev for the VSI has been allocated and the other to track if the netdev has been registered. Call unregister_netdev/free_netdev only when the corresponding state bits are set. Signed-off-by: Anirudh Venkataramanan Tested

leds: netdev trigger - misleading link state indication at boot

2021-04-13 Thread Russell King - ARM Linux admin
Hi, I'm seeing some odd behaviour with the netdev trigger and some WiFi interfaces. When the WiFi interface has never been brought up (so is in an operationally disabled state), if I bind a LED to the netdev trigger, setting the device_name to the WiFi interface name and enable the

[PATCH net-next 3/7] net: ipa: only set endpoint netdev pointer when in use

2021-04-09 Thread Alex Elder
In ipa_modem_start(), we set endpoint netdev pointers before the network device is registered. If registration fails, we don't undo those assignments. Instead, wait to assign the netdev pointer until after registration succeeds. Set these endpoint netdev pointers to NULL in ipa_modem

[PATCH net 4/6] i40e: Fix sparse error: 'vsi->netdev' could be null

2021-04-08 Thread Tony Nguyen
From: Arkadiusz Kubalewski Remove vsi->netdev->name from the trace. This is redundant information. With the devinfo trace, the adapter is already identifiable. Previously following error was produced when compiling against sparse. i40e_main.c:2571 i40e_sync_vsi_filters() error:

[net-next 16/16] net/mlx5e: Dynamic alloc vlan table for netdev when needed

2021-04-03 Thread Saeed Mahameed
From: Vu Pham Dynamic allocate vlan table in mlx5e_priv for EN netdev when needed. Don't allocate it for representor netdev. Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en/fs.h | 18 +-- .../net/ethernet/mellanox/mlx5/core/en_fs.c

[net-next 15/16] net/mlx5e: Dynamic alloc arfs table for netdev when needed

2021-04-03 Thread Saeed Mahameed
From: Vu Pham Dynamic allocate arfs table in mlx5e_priv for EN netdev when needed. Don't allocate it for representor netdev. Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en/fs.h | 28 +- .../net/ethernet/mellanox/mlx5/core/en_arfs.c

[PATCH net-next 02/15] ice: Delay netdev registration

2021-03-31 Thread Tony Nguyen
From: Anirudh Venkataramanan Once a netdev is registered, the corresponding network interface can be immediately used by userspace utilities (like say NetworkManager). This can be problematic if the driver technically isn't fully up yet. Move netdev registration to the end of probe, as by

Re: [PATCH net] net/mlx5e: Fix ipsec/tls netdev features build

2021-03-24 Thread Saeed Mahameed
On Wed, 2021-03-24 at 12:15 +0800, we...@ucloud.cn wrote: > From: wenxu > > Ipsec and tls netdev features build should be done after the > mlx5e_init_ipesc/tls which finishs the init for the ipsec/tls > in the driver. > > Fixes: 3ef14e463f6e ("net/mlx5e: Separate

Re: [PATCH v2] net: make unregister netdev warning timeout configurable

2021-03-24 Thread Leon Romanovsky
_secs sysctl to make > the timeout configurable for automated testing systems. > Lowering the timeout may also be useful for e.g. manual bisection. > The default value matches the current behavior. > > Signed-off-by: Dmitry Vyukov > Fixes: https://bugzilla.kernel.org/show_bug.cg

[PATCH net] net/mlx5e: Fix ipsec/tls netdev features build

2021-03-23 Thread wenxu
From: wenxu Ipsec and tls netdev features build should be done after the mlx5e_init_ipesc/tls which finishs the init for the ipsec/tls in the driver. Fixes: 3ef14e463f6e ("net/mlx5e: Separate between netdev objects and mlx5e profiles initialization") Signed-off-by: wenxu --- d

Re: [PATCH] net: make unregister netdev warning timeout configurable

2021-03-22 Thread David Miller
ed testing systems. > Lowering the timeout may also be useful for e.g. manual bisection. > The default value matches the current behavior. > > Signed-off-by: Dmitry Vyukov > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=211877 > Cc: netdev@vger.kernel.org > Cc: linux-ker..

[PATCH v3 1/1] netdev: add netdev_queue_set_dql_min_limit()

2021-03-21 Thread Vincent Mailhol
Add a function to set the dynamic queue limit minimum value. Some specific drivers might have legitimate reasons to configure dql.min_limit to a given value. Typically, this is the case when the PDU of the protocol is smaller than the packet size to used to carry those frames to the device. Concr

Re: [PATCH] net: make unregister netdev warning timeout configurable

2021-03-21 Thread Leon Romanovsky
omated testing systems. > Lowering the timeout may also be useful for e.g. manual bisection. > The default value matches the current behavior. > > Signed-off-by: Dmitry Vyukov > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=211877 > Cc: netdev@vger.kernel.org > Cc: li

Re: [PATCH net-next] Revert "net: dsa: sja1105: Clear VLAN filtering offload netdev feature"

2021-03-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sun, 21 Mar 2021 01:04:45 +0200 you wrote: > From: Vladimir Oltean > > This reverts commit e9bf96943b408e6c99dd13fb01cb907335787c61. > > The topic of the reverted patch is the support for switches wit

[PATCH net-next] Revert "net: dsa: sja1105: Clear VLAN filtering offload netdev feature"

2021-03-20 Thread Vladimir Oltean
From: Vladimir Oltean This reverts commit e9bf96943b408e6c99dd13fb01cb907335787c61. The topic of the reverted patch is the support for switches with global VLAN filtering, added by commit 061f6a505ac3 ("net: dsa: Add ndo_vlan_rx_{add, kill}_vid implementation"). Be there a switch with 4 ports sw

[net-next 06/15] net/mlx5e: Use nic mode netdev ndos and ethtool ops for uplink representor

2021-03-16 Thread Saeed Mahameed
From: Roi Dayan Remove dedicated uplink rep netdev ndos and ethtools ops. We will re-use the native NIC port net device instance and ethtool ops for the Uplink representor. Signed-off-by: Roi Dayan Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en_rep.c | 133

[net-next 05/15] net/mlx5e: Add offload stats ndos to nic netdev ops

2021-03-16 Thread Saeed Mahameed
From: Roi Dayan We will re-use the native NIC port net device instance for the Uplink representor, hence same ndos must be used. Signed-off-by: Roi Dayan Reviewed-by: Saeed Mahameed Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en_main.c | 25 +++ .../

CFS for Netdev 0x15 open!

2021-03-16 Thread Jamal Hadi Salim
We are pleased to announce the opening of Call For Submissions(CFS) for Netdev 0x15. For overview of topics, submissions and requirements please visit: https://netdevconf.info/0x15/submit-proposal.html For all submitted sessions, we employ a double blind review process carried out by the

Re: [PATCH mlx5-next 6/9] RDMA/mlx5: Use represntor E-Switch when getting netdev and metadata

2021-03-11 Thread Saeed Mahameed
On Thu, 2021-03-11 at 13:33 -0400, Jason Gunthorpe wrote: > On Wed, Mar 10, 2021 at 11:09:12PM -0800, Saeed Mahameed wrote: > > From: Mark Bloch > > > > Now that a pointer to the managing E-Switch is stored in the > > representor > > use it. > > > > Signed-off-by: Mark Bloch > > Reviewed-by: Sa

Re: [PATCH mlx5-next 6/9] RDMA/mlx5: Use represntor E-Switch when getting netdev and metadata

2021-03-11 Thread Mark Bloch
On 3/11/21 7:33 PM, Jason Gunthorpe wrote: > On Wed, Mar 10, 2021 at 11:09:12PM -0800, Saeed Mahameed wrote: >> From: Mark Bloch >> >> Now that a pointer to the managing E-Switch is stored in the representor >> use it. >> >> Signed-off-by: Mark Bloch >> Reviewed-by: Saeed Mahameed >> Signed-off-

Re: [PATCH mlx5-next 6/9] RDMA/mlx5: Use represntor E-Switch when getting netdev and metadata

2021-03-11 Thread Jason Gunthorpe
On Wed, Mar 10, 2021 at 11:09:12PM -0800, Saeed Mahameed wrote: > From: Mark Bloch > > Now that a pointer to the managing E-Switch is stored in the representor > use it. > > Signed-off-by: Mark Bloch > Reviewed-by: Saeed Mahameed > Signed-off-by: Saeed Mahameed > --- > drivers/infiniband/hw/

[PATCH mlx5-next 6/9] RDMA/mlx5: Use represntor E-Switch when getting netdev and metadata

2021-03-10 Thread Saeed Mahameed
From: Mark Bloch Now that a pointer to the managing E-Switch is stored in the representor use it. Signed-off-by: Mark Bloch Reviewed-by: Saeed Mahameed Signed-off-by: Saeed Mahameed --- drivers/infiniband/hw/mlx5/fs.c | 2 +- drivers/infiniband/hw/mlx5/ib_rep.c | 2 +- drivers/infiniband

[RFC PATCH v2 1/1] netdev: add netdev_queue_set_dql_min_limit()

2021-03-10 Thread Vincent Mailhol
Add a function to set the dynamic queue limit minimum value. This function is to be used by network drivers which are able to prove, at least through empirical tests on several environment (with other applications, heavy context switching, virtualization...), that they constantly reach better perf

Re: [PATCH RFC leds + net-next 4/7] leds: trigger: netdev: support HW offloading

2021-03-01 Thread Pavel Machek
Hi! > Add support for HW offloading of the netdev trigger. > > We need to change spinlock to mutex, because if spinlock is used, the > trigger_offload() method cannot sleep, which can happen for ethernet > PHYs. Is that bugfix or just needed for offloading? Should be separate pa

Re: [PATCH RFC leds + net-next 2/7] leds: trigger: netdev: simplify the driver by using bit field members

2021-03-01 Thread Pavel Machek
On Fri 2020-10-30 12:44:30, Marek Behún wrote: > Use bit fields members in struct led_netdev_data instead of one mode > member and set_bit/clear_bit/test_bit functions. These functions are > suitable for longer or variable length bit arrays. They also provide atomicity guarantees. If you can expla

Re: [PATCH net] vxlan: move debug check after netdev unregister

2021-02-23 Thread Taehee Yoo
; >> This is the same with commit 0fda7600c2e1 ("geneve: move debug check after >> netdev unregister") >> >> Test commands: >> ip netns del A >> ip netns add A >> ip netns add B >> >> ip netns exec B ip link add vx

Re: [PATCH net] vxlan: move debug check after netdev unregister

2021-02-23 Thread Jakub Kicinski
On Sun, 21 Feb 2021 15:45:52 + Taehee Yoo wrote: > The debug check must be done after unregister_netdevice_many() call -- > the hlist_del_rcu() for this is done inside .ndo_stop. > > This is the same with commit 0fda7600c2e1 ("geneve: move debug check after > netdev un

[PATCH net] vxlan: move debug check after netdev unregister

2021-02-21 Thread Taehee Yoo
The debug check must be done after unregister_netdevice_many() call -- the hlist_del_rcu() for this is done inside .ndo_stop. This is the same with commit 0fda7600c2e1 ("geneve: move debug check after netdev unregister") Test commands: ip netns del A ip netns add A ip n

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-17 Thread Jason Wang
On 2021/2/11 5:40 上午, Michael S. Tsirkin wrote: On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queu

[net,v2, 2/4] net: amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning

2021-02-16 Thread Shyam Sundar S K
The current driver calls netif_carrier_off() late in the link tear down which can result in a netdev watchdog timeout. Calling netif_carrier_off() immediately after netif_tx_stop_all_queues() avoids the warning. [ cut here ] NETDEV WATCHDOG: enp3s0f2 (amd-xgbe

Re: [PATCH 2/4] amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning

2021-02-12 Thread Tom Lendacky
On 2/12/21 12:00 PM, Shyam Sundar S K wrote: Current driver calls the netif_carrier_off() during the later point in time to tear down the link which causes the netdev watchdog to timeout. This is a bit confusing... how about: The current driver calls netif_carrier_off() late in the link tear

[PATCH 2/4] amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning

2021-02-12 Thread Shyam Sundar S K
Current driver calls the netif_carrier_off() during the later point in time to tear down the link which causes the netdev watchdog to timeout. Calling netif_carrier_off() immediately after netif_tx_stop_all_queues() would avoids the warning. [ cut here ] NETDEV WATCHDOG

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-11 Thread Jesper Dangaard Brouer
On Wed, 10 Feb 2021 16:40:41 -0500 "Michael S. Tsirkin" wrote: > On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: > > The number of queues implemented by many virtio backends is limited, > > especially some machines have a large number of CPUs. In this case, it > > is often impossible t

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-02-10 Thread Michael S. Tsirkin
On Wed, Jan 13, 2021 at 04:08:57PM +0800, Xuan Zhuo wrote: > The number of queues implemented by many virtio backends is limited, > especially some machines have a large number of CPUs. In this case, it > is often impossible to allocate a separate queue for XDP_TX. > > This patch allows XDP_TX to

[PATCH net] netdev-FAQ: answer some questions about the patchwork checks

2021-02-09 Thread Jakub Kicinski
Point out where patchwork bot's code lives, and that we don't want people posting stuff that doesn't build. Signed-off-by: Jakub Kicinski --- Documentation/networking/netdev-FAQ.rst | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/networking/ne

Re: [PATCH net-next 4/7] net: marvell: prestera: move netdev topology validation to prestera_main

2021-02-05 Thread Vladimir Oltean
On Wed, Feb 03, 2021 at 06:54:55PM +0200, Vadym Kochan wrote: > Move handling of PRECHANGEUPPER event from prestera_switchdev to > prestera_main which is responsible for basic netdev events handling > and routing them to related module. > > Signed-off-by: Vadym Kochan >

Re: [PATCH net-next v3 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-02-04 Thread Alexander Duyck
On Thu, Feb 4, 2021 at 3:06 AM Kevin Hao wrote: > > In the current implementation of {netdev,napi}_alloc_frag(), it doesn't > have any align guarantee for the returned buffer address, But for some > hardwares they do require the DMA buffer to be aligned correctly, > so we wo

[PATCH net-next v3 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-02-04 Thread Kevin Hao
In the current implementation of {netdev,napi}_alloc_frag(), it doesn't have any align guarantee for the returned buffer address, But for some hardwares they do require the DMA buffer to be aligned correctly, so we would have to use some workarounds like below if the buffers allocated b

Re: [PATCH net-next v2 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-02-03 Thread Kevin Hao
On Tue, Feb 02, 2021 at 08:26:19AM -0800, Alexander Duyck wrote: > On Sun, Jan 31, 2021 at 12:17 AM Kevin Hao wrote: > > > > In the current implementation of {netdev,napi}_alloc_frag(), it doesn't > > have any align guarantee for the returned buffer address, But for

[PATCH net-next 4/7] net: marvell: prestera: move netdev topology validation to prestera_main

2021-02-03 Thread Vadym Kochan
Move handling of PRECHANGEUPPER event from prestera_switchdev to prestera_main which is responsible for basic netdev events handling and routing them to related module. Signed-off-by: Vadym Kochan --- .../ethernet/marvell/prestera/prestera_main.c | 29 +-- .../marvell/prestera

Re: [net-next 01/14] net/mlx5e: Separate between netdev objects and mlx5e profiles initialization

2021-02-02 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Mon, 1 Feb 2021 22:54:44 -0800 you wrote: > From: Saeed Mahameed > > 1) Initialize netdevice features and structures on netdevice allocation >and outside of the mlx5e profile. > > 2) As n

Re: [PATCH net-next v2 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-02-02 Thread Alexander Duyck
On Sun, Jan 31, 2021 at 12:17 AM Kevin Hao wrote: > > In the current implementation of {netdev,napi}_alloc_frag(), it doesn't > have any align guarantee for the returned buffer address, But for some > hardwares they do require the DMA buffer to be aligned correctly, > so we wo

[net-next 01/14] net/mlx5e: Separate between netdev objects and mlx5e profiles initialization

2021-02-01 Thread Saeed Mahameed
netdevices, and will allow replacing mlx5e profiles on the fly to reuse the same netdevice for multiple profiles. e.g. for uplink representor profile as shown in the following patch 4) Profile callbacks are not allowed to touch netdev->features directly anymore, since in downstream patch we w

[PATCH net-next v2 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-01-30 Thread Kevin Hao
In the current implementation of {netdev,napi}_alloc_frag(), it doesn't have any align guarantee for the returned buffer address, But for some hardwares they do require the DMA buffer to be aligned correctly, so we would have to use some workarounds like below if the buffers allocated b

Re: [net] net: decnet: fix netdev refcount leaking on error path

2021-01-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 26 Jan 2021 03:02:14 +0300 you wrote: > On building the route there is an assumption that the destination > could be local. In this case loopback_dev is used to get the address. > If the address is still

[net] net: decnet: fix netdev refcount leaking on error path

2021-01-25 Thread Vadim Fedorenko
On building the route there is an assumption that the destination could be local. In this case loopback_dev is used to get the address. If the address is still cannot be retrieved dn_route_output_slow returns EADDRNOTAVAIL with loopback_dev reference taken. Cannot find hash for the fixes tag becau

[PATCH net-next 2/4] net: Introduce {netdev,napi}_alloc_frag_align()

2021-01-23 Thread Kevin Hao
In the current implementation of {netdev,napi}_alloc_frag(), it doesn't have any align guarantee for the returned buffer address, But for some hardwares they do require the DMA buffer to be aligned correctly, so we would have to use some workarounds like below if the buffers allocated b

[PATCH v4 net-next 1/2] net: introduce a netdev feature for UDP GRO forwarding

2021-01-22 Thread Alexander Lobakin
Introduce a new netdev feature, NETIF_F_GRO_UDP_FWD, to allow user to turn UDP GRO on and off for forwarding. Defaults to off to not change current datapath. Suggested-by: Paolo Abeni Signed-off-by: Alexander Lobakin --- include/linux/netdev_features.h | 4 +++- net/ethtool/common.c

[PATCH net-next 1/2] net: introduce UDP GRO netdev feature

2021-01-18 Thread Alexander Lobakin
Introduce a new netdev_feature, NETIF_F_GRO_UDP, to allow user to turn UDP GRO on and off when there is no socket, e.g. when forwarding. Defaults to off to not change current datapath. Suggested-by: Paolo Abeni Signed-off-by: Alexander Lobakin --- include/linux/netdev_features.h | 4 +++- net/e

Re: [PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-01-15 Thread Jakub Kicinski
DP_TX to run by reuse the existing SQ with > __netif_tx_lock() hold when there are not enough queues. > > Signed-off-by: Xuan Zhuo > Reviewed-by: Dust Li Since reviews are not coming in let me share some of mine. nit: please put [PATCH net-next] not [PATCH netdev] > -static str

[PATCH netdev] virtio-net: support XDP_TX when not more queues

2021-01-13 Thread Xuan Zhuo
The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queue for XDP_TX. This patch allows XDP_TX to run by reuse the existing SQ with __netif_tx_lock() hold when there a

[PATCH v6 net-next 05/15] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2021-01-09 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, beca

[PATCH v6 net-next 06/15] parisc/led: hold the netdev lists lock when retrieving device statistics

2021-01-09 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker whe

[PATCH v5 net-next 05/16] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2021-01-08 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, beca

[PATCH v5 net-next 06/16] parisc/led: hold the netdev lists lock when retrieving device statistics

2021-01-08 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker whe

[PATCH v4 net-next 07/18] parisc/led: hold the netdev lists lock when retrieving device statistics

2021-01-07 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker whe

[PATCH v4 net-next 05/18] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2021-01-07 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, beca

[PATCH v3 net-next 07/12] parisc/led: hold the netdev lists lock when retrieving device statistics

2021-01-07 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker whe

[PATCH v3 net-next 05/12] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2021-01-07 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, beca

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/6 上午10:55, Xuan Zhuo wrote: On Wed, 6 Jan 2021 10:46:43 +0800, Jason Wang wrote: On 2021/1/5 下午8:42, Xuan Zhuo wrote: On Tue, 5 Jan 2021 17:32:19 +0800, Jason Wang wrote: On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the wor

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/5 下午8:42, Xuan Zhuo wrote: On Tue, 5 Jan 2021 17:32:19 +0800, Jason Wang wrote: On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the work. It's rather interesting. The second patch itself can be used as an independent patch to

[RFC PATCH v2 net-next 07/12] parisc/led: hold the netdev lists lock when retrieving device statistics

2021-01-05 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker whe

[RFC PATCH v2 net-next 05/12] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2021-01-05 Thread Vladimir Oltean
From: Vladimir Oltean In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, beca

Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread kernel test robot
Hi Xuan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs/master] [also build test WARNING on linus/master v5.11-rc2 next-20210104] [cannot apply to sparc-next/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submittin

[kbuild] Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread Dan Carpenter
Hi Xuan, url: https://github.com/0day-ci/linux/commits/Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy-xmit/20210105-171505 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master config: i386-randconfig-m021-20210105 (attached as .config) compiler: gcc-9 (Debian 9.3.0

Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread kernel test robot
Hi Xuan, Thank you for the patch! Yet something to improve: [auto build test ERROR on ipvs/master] [also build test ERROR on linus/master v5.11-rc2 next-20210104] [cannot apply to sparc-next/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch,

Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 05:11:43PM +0800, Xuan Zhuo wrote: > Virtio net support xdp socket. > > We should open the module param "napi_tx" for using this feature. what does this imply exactly? > In fact, various virtio implementations have some problems: > 1. The tx interrupt may be lost > 2. The

Re: [PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread kernel test robot
Hi Xuan, Thank you for the patch! Yet something to improve: [auto build test ERROR on ipvs/master] [also build test ERROR on linus/master v5.11-rc2 next-20210104] [cannot apply to sparc-next/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch,

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2021 at 05:11:38PM +0800, Xuan Zhuo wrote: > The first patch made some adjustments to xsk. > > The second patch itself can be used as an independent patch to solve the > problem > that XDP may fail to load when the number of queues is insufficient. > > The third to last patch imp

Re: [PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Jason Wang
On 2021/1/5 下午5:11, Xuan Zhuo wrote: The first patch made some adjustments to xsk. Thanks a lot for the work. It's rather interesting. The second patch itself can be used as an independent patch to solve the problem that XDP may fail to load when the number of queues is insufficient.

[PATCH netdev 1/5] xsk: support get page for drv

2021-01-05 Thread Xuan Zhuo
xdp/xsk_buff_pool.c @@ -167,12 +167,13 @@ static int __xp_assign_dev(struct xsk_buff_pool *pool, bpf.command = XDP_SETUP_XSK_POOL; bpf.xsk.pool = pool; bpf.xsk.queue_id = queue_id; + bpf.xsk.need_dma = true; err = netdev->netdev_ops->ndo_bpf(net

[PATCH netdev 5/5] virtio-net, xsk: virtio-net support xsk zero copy tx

2021-01-05 Thread Xuan Zhuo
Virtio net support xdp socket. We should open the module param "napi_tx" for using this feature. In fact, various virtio implementations have some problems: 1. The tx interrupt may be lost 2. The tx interrupt may have a relatively large delay This brings us to several questions: 1. Wakeup wakes

[PATCH netdev 4/5] xsk, virtio-net: prepare for support xsk

2021-01-05 Thread Xuan Zhuo
Split function free_old_xmit_skbs, add sub-function __free_old_xmit_ptr, which is convenient to call with other statistical information, and supports the parameter 'xsk_wakeup' required for processing xsk. Use netif stop check as a function virtnet_sq_stop_check, which will be used when adding xsk

[PATCH netdev 3/5] virtio-net, xsk: distinguish XDP_TX and XSK XMIT ctx

2021-01-05 Thread Xuan Zhuo
If support xsk, a new ptr will be recovered during the process of freeing the old ptr. In order to distinguish between ctx sent by XDP_TX and ctx sent by xsk, a struct is added here to distinguish between these two situations. virtnet_xdp_type.type It is used to distinguish different ctx, and virtn

[PATCH netdev 2/5] virtio-net: support XDP_TX when not more queues

2021-01-05 Thread Xuan Zhuo
The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queue for XDP_TX. This patch allows XDP_TX to run by lock when not enough queue. Signed-off-by: Xuan Zhuo --- dr

[PATCH netdev 0/5] virtio-net support xdp socket zero copy xmit

2021-01-05 Thread Xuan Zhuo
The first patch made some adjustments to xsk. The second patch itself can be used as an independent patch to solve the problem that XDP may fail to load when the number of queues is insufficient. The third to last patch implements support for xsk in virtio-net. A practical problem with virtio is

Announcing Netdev 0x15

2020-12-30 Thread Jamal Hadi Salim
While we bid goodbye to 2020, here's some good hopeful news for 2021. cheers, jamal Forwarded Message Subject: [NetDev-People] Announcing Netdev 0x15 Date: Sun, 27 Dec 2020 15:54:31 -0700 From: Tom Herbert via people Reply-To: Tom Herbert To: peo...@netdevconf.info

Re: [PATCH Repost to netdev] virtio_net: Fix recursive call to cpus_read_lock()

2020-12-23 Thread Jakub Kicinski
On Tue, 22 Dec 2020 21:54:21 -0500 Jeff Dike wrote: > virtnet_set_channels can recursively call cpus_read_lock if CONFIG_XPS > and CONFIG_HOTPLUG are enabled. > > The path is: > virtnet_set_channels - calls get_online_cpus(), which is a trivial > wrapper around cpus_read_lock() > netif_set

  1   2   3   4   5   6   7   8   9   10   >