net: devmem: support devmem with netkit devices
Subsystems (13)
v5 cover net: devmem: support devmem with netkit devices
This series enables TCP devmem TX through netkit devices.
Netkit now supports queue leasing. A physical NIC's RX queue can be leased to a netkit guest interface inside a container namespace. This gives the container a devmem-capable data path on the RX side (bind-rx, etc...). On the TX side, the container process binds to its netkit guest interface and sends traffic that netkit redirects (via BPF or ip forwarding) to the physical NIC for DMA.
Two things in the existing devmem TX path prevent this from working:
1. validate_xmit_unreadable_skb() requires dev->netmem_tx before it will forward a dmabuf-backed (unreadable) skb. This protects skbs from landing on devices that don't have the IOMMU mappings for the backing dmabuf or that don't speak netmem. Netkit, however, does not support DMA, doesn't attempt to read unreadable skb pages and so doesn't break netmem (it is pure skb routing and redirection). It is functionally capable of routing unreadable skbs, but there is no way for the TX validation pathway to distinguish between a device that will actually attempt DMA-ing the skb and another device (like netkit) that does not DMA but also does not break netmem.
2. bind_tx_doit uses the bound device as the DMA device. When the user binds devmem TX to the netkit guest, the bind handler attempts to create DMA mappings against netkit, which has no DMA capability and no IOMMU mappings.
This series solves these problems as follows:
1. Extend netmem_tx to two bits, assigned to one of three values:
NETMEM_TX_NONE - netmem not supported
NETMEM_TX_DMA - netmem supported and performs DMA
NETMEM_TX_NO_DMA - netmem supported, but does not DMA
With these bits, phys devices can set NETMEM_TX_DMA and devices like netkit set NETMEM_TX_NO_DMA. The validation TX path ensures that any DMA-capable netdev exactly matches the bound device, guaranteeing the correct mapping of the bound dmabuf. The validation TX path also allows devices with NETMEM_TX_NO_DMA to pass, knowing these devices will not misuse netmem or run into IOMMU faults. After redirection or routing and the skb finally makes its way through the stack to a physical device's TX path, the above NETMEM_TX_DMA check is performed again to guarantee the device has the appropriate binding/mappings.
2. On TX bind, the bind handler recognizes NETMEM_TX_NO_DMA devices and finds the phys TX device and binds to that instead. For the netkit case, if it has been leased a queue from a DMA-capable device already, then the bind action is performed on the DMA-capable device instead and the dmabuf is mapped correctly.
---
Changes in v5:
- configure_nic(): register cleanup via defer() and drop the separate cleanup_nic() helper, this avoids leaking resources init'd during
setup. (Sashiko)
- Use sys.byteorder when packing phys_ifindex into the BPF .bss map (Sashiko).
- fix unhandle KsftSkip in tests (Sashiko).
- see per-patch changes for more details
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- remove enum list from netmem_tx comment (Stan)
- fold NETMEM_TX_NO_DMA check in validate_xmit_unreadable_skb() into skb_frags_readable check (Stan, Jakub)
- change binding->vdev to void ptr cookie with comment (Jakub)
- Fixed the bad change list version number (Stan)
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Fix validate_xmit_unreadable_skb() logic for non-devmem
unreadable niovs (should not be dropped) (Sashiko)
- Simplify lock handling in bind_tx, no premature release (Jakub)
- split NO_DMA changes into separate patch (Jakub)
- fixed some pylint issues, one required an additional patch ("selftests:
drv-net: make attr _nk_guest_ifname public") to rename a variable from private to public
- see per-patch changelist for more detailed changes
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Squash driver conversion patches (2-5) into patch 1 (Jakub)
- In validate_xmit_unreadable_skb() to check netmem_tx mode before inspecting frags (Jakub)
- Lock bind_dev around netdev_queue_get_dma_dev() when bind_dev != netdev to fix lockdep (Sashiko)
- Move require_devmem() into individual test functions so KsftSkipEx goes up to ksft_run() (Sashiko)
- Add nk_devmem.py to TEST_PROGS in Makefile (Sashiko)
- Link to v1:
https://lore.kernel.org/all/[email protected]/
---
Bobby Eshleman (8):
net: convert netmem_tx flag to enum
net: netkit: declare NETMEM_TX_NO_DMA mode
net: devmem: support TX over NETMEM_TX_NO_DMA devices
selftests: drv-net: ncdevmem: add -n flag to skip NIC configuration
selftests: drv-net: make attr _nk_guest_ifname public
selftests: drv-net: refactor devmem command builders into lib module
selftests: drv-net: add primary_rx_redirect support to NetDrvContEnv
selftests: drv-net: add netkit devmem tests
.../networking/net_cachelines/net_device.rst | 2 +- Documentation/networking/netmem.rst | 8 +- .../translations/zh_CN/networking/netmem.rst | 7 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/google/gve/gve_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- drivers/net/ethernet/meta/fbnic/fbnic_netdev.c | 2 +- drivers/net/netkit.c | 1 + include/linux/netdevice.h | 10 +- net/core/dev.c | 5 +- net/core/devmem.c | 6 +- net/core/devmem.h | 10 +- net/core/netdev-genl.c | 65 +++++- tools/testing/selftests/drivers/net/hw/Makefile | 2 + tools/testing/selftests/drivers/net/hw/devmem.py | 77 ++----- .../testing/selftests/drivers/net/hw/devmem_lib.py | 222 +++++++++++++++++++++ tools/testing/selftests/drivers/net/hw/ncdevmem.c | 58 +++--- .../testing/selftests/drivers/net/hw/nk_devmem.py | 46 +++++ .../drivers/net/hw/nk_primary_rx_redirect.bpf.c | 39 ++++ .../testing/selftests/drivers/net/hw/nk_qlease.py | 8 +- tools/testing/selftests/drivers/net/lib/py/env.py | 110 +++++++--- 21 files changed, 545 insertions(+), 139 deletions(-)
---
base-commit: 8ebd24a7822cbae25beeafba49b2159d6a68a5f2
change-id: 20260423-tcp-dm-netkit-2bd78b638d30
Best regards,
Signature · 1 line
Bobby Eshleman <[email protected]>
PATCH v5 1/8 net: convert netmem_tx flag to enum
From: Bobby Eshleman <[email protected]>
Devices that support netmem TX previously set dev->netmem_tx = true. This was checked in validate_xmit_unreadable_skb() to drop unreadable skbs (skbs with dmabuf-backed frags) before they reach drivers that would mishandle them or devices that would not have the iommu mappings for them.
A subsequent patch will introduce a third state for virtual devices that forward unreadable skbs without ever performing DMA on them. To prepare for that, convert the boolean dev->netmem_tx into an enum:
NETMEM_TX_NONE - no netmem TX support (drop unreadable skbs)NETMEM_TX_DMA - full support, device does DMA
Update the existing NIC drivers (bnxt, gve, mlx5, fbnic) and the validators in net/core to use the new enum. No functional change.
---
Changes in v4:
- netdevice.h: netmem_tx enum list -> only "device netmem TX mode" in comment (Stan)
Changes in v3:
- Split NO_DMA changes into subsequent commit (Jakub)
- Move !netdev->netmem_tx -> netdev->netmem_tx == NETMEM_TX_NONE conversions to this patch (Jakub)
Changes in v2:
- Squash driver conversion patches (2-5) into patch 1 (Jakub)
--- Documentation/networking/netmem.rst | 5 ++++- Documentation/translations/zh_CN/networking/netmem.rst | 4 +++- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/google/gve/gve_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- drivers/net/ethernet/meta/fbnic/fbnic_netdev.c | 2 +- include/linux/netdevice.h | 7 ++++++- net/core/dev.c | 2 +- net/core/netdev-genl.c | 2 +- 9 files changed, 19 insertions(+), 9 deletions(-)
Documentation/networking/netmem.rst +4 -1
@@ -95,4 +95,7 @@ Driver TX Requirements netdev@, or reach out to the maintainers and/or [email protected] for help adding the netmem API. -2. Driver should declare support by setting `netdev->netmem_tx = true` +2. Driver should declare support by setting `netdev->netmem_tx` to the + appropriate mode: + + - `NETMEM_TX_DMA`: for physical devices that perform DMA.
Documentation/translations/zh_CN/networking/netmem.rst +3 -1
@@ -89,4 +89,6 @@ dma-mapping API 去处理。 使用某个还不存在的 netmem API,你可以自行添加并提交到 netdev@,也可以联系维护 人员或者发送邮件至 [email protected] 寻求帮助。 -2. 驱动程序应通过设置 netdev->netmem_tx = true 来表明自身支持 netmem 功能。 +2. 驱动程序应将 `netdev->netmem_tx` 设置为适当的模式: + + - `NETMEM_TX_DMA`:适用于执行 DMA 的物理设备。
drivers/net/ethernet/broadcom/bnxt/bnxt.c +1 -1
@@ -17123,7 +17123,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev->queue_mgmt_ops = &bnxt_queue_mgmt_ops_unsupp;if (BNXT_SUPPORTS_QUEUE_API (bp)) dev->queue_mgmt_ops = &bnxt_queue_mgmt_ops; - dev->netmem_tx = true; + dev->netmem_tx =NETMEM_TX_DMA ; rc =register_netdev (dev);if (rc)
drivers/net/ethernet/google/gve/gve_main.c +1 -1
@@ -2894,7 +2894,7 @@ static int gve_probe(struct pci_dev *pdev, const struct pci_device_id *ent) goto abort_with_wq;if (!gve_is_gqi (priv) && !gve_is_qpl (priv)) - dev->netmem_tx = true; + dev->netmem_tx =NETMEM_TX_DMA ; err =register_netdev (dev);if (err)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +1 -1
@@ -5966,7 +5966,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev) netdev->priv_flags |=IFF_UNICAST_FLT ; - netdev->netmem_tx = true; + netdev->netmem_tx =NETMEM_TX_DMA ;netif_set_tso_max_size (netdev,GSO_MAX_SIZE );mlx5e_set_xdp_feature (priv);
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c +1 -1
@@ -752,7 +752,7 @@ struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd) netdev->netdev_ops = &fbnic_netdev_ops; netdev->stat_ops = &fbnic_stat_ops; netdev->queue_mgmt_ops = &fbnic_queue_mgmt_ops; - netdev->netmem_tx = true; + netdev->netmem_tx =NETMEM_TX_DMA ;fbnic_set_ethtool_ops (netdev);
include/linux/netdevice.h +6 -1
@@ -1794,6 +1794,11 @@ enum netdev_stat_type { NETDEV_PCPU_STAT_DSTATS, /* struct pcpu_dstats */ }; +enum netmem_tx_mode { +NETMEM_TX_NONE ,/* no netmem TX support */ +NETMEM_TX_DMA ,/* DMA-capable netmem TX (real HW) */ +}; +enum netdev_reg_state {NETREG_UNINITIALIZED =0 ,NETREG_REGISTERED ,/* completed register_netdevice */
@@ -1815,7 +1820,7 @@ enum netdev_reg_state {* @lltx: device supports lockless Tx. Deprecated for real HW * drivers. Mainly used by logical interfaces, such as * bonding and tunnels -* @netmem_tx: device support netmem_tx. +* @netmem_tx: device netmem TX mode * * @name: This is the first field of the "visible" part of this structure * (i.e. as seen by users in the "Space.c" file). It is the name
net/core/dev.c +1 -1
@@ -3996,7 +3996,7 @@ static struct sk_buff *validate_xmit_unreadable_skb(struct sk_buff *skb,if (likely (skb_frags_readable (skb))) goto out; -if (!dev->netmem_tx) +if (dev->netmem_tx ==NETMEM_TX_NONE ) goto out_free; shinfo =skb_shinfo (skb);
net/core/netdev-genl.c +1 -1
@@ -1164,7 +1164,7 @@ int netdev_nl_bind_tx_doit(struct sk_buff *skb, struct genl_info *info) goto err_unlock_netdev; } -if (!netdev->netmem_tx) { +if (netdev->netmem_tx ==NETMEM_TX_NONE ) { err = -EOPNOTSUPP ;NL_SET_ERR_MSG (info->extack,"Driver does not support netmem TX" );
Signature · 1 line
2.53.0-Meta
PATCH v5 2/8 net: netkit: declare NETMEM_TX_NO_DMA mode
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
Some virtual devices like netkit (or ifb) never DMA and never touch frag contents, they just forward the skb to another device. They are unable to forward unreadable skbs, however, because they fail to pass TX validation checks on dev->netmem_tx. The existing two-state NETMEM_TX_NONE / NETMEM_TX_DMA doesn't give the TX validator enough information to differentiate devices that will attempt DMA on the unreadable skb from those that will simply route it untouched.
Add a third mode to the enum so drivers can indicate 1) if they have netmem TX support, and 2) if they do, whether they are DMA-capable:
NETMEM_TX_NO_DMA - pass-through, device never DMAs
Widen dev->netmem_tx from a 1-bit field to 2 bits to fit the new value, and declare netkit as NETMEM_TX_NO_DMA. Devmem TX support over these devices comes in a follow-up patch.
---
Changes in v3:
- net_cachelines/net_device.rst: align the netmem_tx row's type column with the rest of the table by using "unsigned_long:2" instead of "unsigned long:2"
- Split this into a distinct patch (Jakub)
--- Documentation/networking/net_cachelines/net_device.rst | 2 +- Documentation/networking/netmem.rst | 3 +++ Documentation/translations/zh_CN/networking/netmem.rst | 3 +++ drivers/net/netkit.c | 1 + include/linux/netdevice.h | 3 ++- 5 files changed, 10 insertions(+), 2 deletions(-)
Documentation/networking/net_cachelines/net_device.rst +1 -1
@@ -10,7 +10,7 @@ Type Name fastpath_tx_acce =================================== =========================== =================== =================== =================================================================================== unsigned_long:32 priv_flags read_mostly __dev_queue_xmit(tx) unsigned_long:1 lltx read_mostly HARD_TX_LOCK,HARD_TX_TRYLOCK,HARD_TX_UNLOCK(tx) -unsigned long:1 netmem_tx:1; read_mostly +unsigned_long:2 netmem_tx:2; read_mostly char name[16] struct netdev_name_node* name_node struct dev_ifalias* ifalias
Documentation/networking/netmem.rst +3 -0
@@ -99,3 +99,6 @@ Driver TX Requirements appropriate mode: - `NETMEM_TX_DMA`: for physical devices that perform DMA. + + - `NETMEM_TX_NO_DMA`: for virtual or passthrough devices that do + not DMA, but still support handling of netmem-backed skbs.
Documentation/translations/zh_CN/networking/netmem.rst +3 -0
@@ -92,3 +92,6 @@ dma-mapping API 去处理。 2. 驱动程序应将 `netdev->netmem_tx` 设置为适当的模式: - `NETMEM_TX_DMA`:适用于执行 DMA 的物理设备。 + + - `NETMEM_TX_NO_DMA`:适用于不执行 DMA 的虚拟或透传设备,但仍支持 + 处理 netmem 支持的 skb。
drivers/net/netkit.c +1 -0
@@ -466,6 +466,7 @@ static void netkit_setup(struct net_device *dev) dev->priv_flags |=IFF_NO_QUEUE ; dev->priv_flags |=IFF_DISABLE_NETPOLL ; dev->lltx = true; + dev->netmem_tx =NETMEM_TX_NO_DMA ; dev->netdev_ops = &netkit_netdev_ops; dev->ethtool_ops = &netkit_ethtool_ops;
include/linux/netdevice.h +2 -1
@@ -1797,6 +1797,7 @@ enum netdev_stat_type {enum netmem_tx_mode {NETMEM_TX_NONE ,/* no netmem TX support */ NETMEM_TX_DMA ,/* DMA-capable netmem TX (real HW) */ +NETMEM_TX_NO_DMA ,/* no DMA, e.g. passthrough for virtual devs */ };enum netdev_reg_state {
@@ -2143,7 +2144,7 @@ struct net_device {struct_group (priv_flags_fast, unsigned long priv_flags:32; unsigned long lltx:1; - unsigned long netmem_tx:1; + unsigned long netmem_tx:2; );const struct net_device_ops *netdev_ops;const struct header_ops *header_ops;
Signature · 1 line
2.53.0-Meta
PATCH v5 3/8 net: devmem: support TX over NETMEM_TX_NO_DMA devices
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
When a netkit virtual device leases queues from a physical NIC, devmem TX bindings created on the netkit device must still result in the dmabuf being mapped for dma by the physical device. This patch accomplishes this by teaching the bind handler to search for the underlying DMA-capable device by looking it up via leased rx queues. The function netdev_find_netmem_tx_dev(), used for finding the underlying DMA-capable device, can be extended to support other non-netkit NETMEM_TX_NO_DMA devices in the future if needed.
Additionally, this patch extends validate_xmit_unreadable_skb() to support the netkit case, where the skb is validated twice: once on the netkit guest device and again on the physical NIC after BPF redirect or ip forwarding.
---
Changes in v4:
- Fold the NETMEM_TX_NO_DMA check in validate_xmit_unreadable_skb() (Stan, Jakub)
- Convert binding->vdev to void* opaque cookie with comment (Jakub)
Changes in v3:
- Fix validate_xmit_unreadable_skb() bug for non-devmem unreadable niovs (should not be dropped)
- Major simplification of validate_xmit_unreadable_skb()
- Fix prematurely released lock in bind-tx handler (Jakub)
Changes in v2:
- In validate_xmit_unreadable_skb() to check netmem_tx mode before inspecting frags (Jakub)
- Lock bind_dev around netdev_queue_get_dma_dev() when bind_dev != netdev to fix lockdep (Sashiko)
--- net/core/dev.c | 3 ++- net/core/devmem.c | 6 +++-- net/core/devmem.h | 10 ++++++-- net/core/netdev-genl.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 72 insertions(+), 10 deletions(-)
net/core/dev.c +2 -1
@@ -3993,7 +3993,8 @@ static struct sk_buff *validate_xmit_unreadable_skb(struct sk_buff *skb,struct skb_shared_info *shinfo;struct net_iov *niov; -if (likely (skb_frags_readable (skb))) +if (likely (skb_frags_readable (skb) || + dev->netmem_tx ==NETMEM_TX_NO_DMA )) goto out;if (dev->netmem_tx ==NETMEM_TX_NONE )
net/core/devmem.c +4 -2
@@ -181,7 +181,7 @@ int net_devmem_bind_dmabuf_to_queue(struct net_device *dev, u32 rxq_idx, }struct net_devmem_dmabuf_binding * -net_devmem_bind_dmabuf(struct net_device *dev, +net_devmem_bind_dmabuf(struct net_device *dev, void *vdev, struct device *dma_dev, enum dma_data_direction direction, unsigned int dmabuf_fd, struct netdev_nl_sock *priv,
@@ -212,6 +212,7 @@ net_devmem_bind_dmabuf(struct net_device *dev, } binding->dev = dev; + binding->vdev = vdev;xa_init_flags (&binding->bound_rxqs,XA_FLAGS_ALLOC ); err = percpu_ref_init(&binding->ref,
@@ -396,7 +397,8 @@ struct net_devmem_dmabuf_binding *net_devmem_get_binding(struct sock *sk,*/ dst_dev =dst_dev_rcu (dst);if (unlikely (!dst_dev) || -unlikely (dst_dev !=READ_ONCE (binding->dev))) { +unlikely (dst_dev !=READ_ONCE (binding->dev) && + dst_dev !=READ_ONCE (binding->vdev))) { err = -ENODEV ; goto out_unlock; }
net/core/devmem.h +8 -2
@@ -19,7 +19,13 @@ struct net_devmem_dmabuf_binding {struct dma_buf *dmabuf;struct dma_buf_attachment *attachment;struct sg_table *sgt; +/* Physical NIC that does the actual DMA for this binding. */ struct net_device *dev; +/* Opaque cookie identifying the virtual device (e.g. netkit) the user +* called bind-tx on. Used only for pointer comparison. Never +* dereferenced. +*/ +void *vdev;struct gen_pool *chunk_pool;/* Protect dev */ struct mutex lock;
@@ -84,7 +90,7 @@ struct dmabuf_genpool_chunk_owner {void __net_devmem_dmabuf_binding_free (struct work_struct *wq);struct net_devmem_dmabuf_binding * -net_devmem_bind_dmabuf(struct net_device *dev, +net_devmem_bind_dmabuf(struct net_device *dev, void *vdev, struct device *dma_dev, enum dma_data_direction direction, unsigned int dmabuf_fd, struct netdev_nl_sock *priv,
@@ -165,7 +171,7 @@ static inline void net_devmem_put_net_iov(struct net_iov *niov) }static inline struct net_devmem_dmabuf_binding * -net_devmem_bind_dmabuf(struct net_device *dev, +net_devmem_bind_dmabuf(struct net_device *dev, void *vdev, struct device *dma_dev, enum dma_data_direction direction, unsigned int dmabuf_fd,
net/core/netdev-genl.c +58 -5
96 lines not on this page · raw message
Signature · 1 line
2.53.0-Meta
[email protected]
AI reviewRe: [PATCH net-next v5 3/8] net: devmem: support TX over NETMEM_TX_NO_DMA devices
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [Critical] Kernel panic (DoS) by bypassing unreadable SKB validation for netkit devices. - [High]…
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Critical] Kernel panic (DoS) by bypassing unreadable SKB validation for netkit devices.
- [High] Use-After-Free and ABA pointer reuse vulnerability due to dangling vdev and dev in TX bindings.
- [High] Use-After-Free in netdev_nl_bind_tx_doit due to unprotected access to phys_dev.
- [Medium] Lockdep warning (recursive locking) when locking both virtual and physical devices. --
commit fc62474407bd468f37ed050ed11229d597ff605b
Author: Bobby Eshleman <[email protected]>
net: devmem: support TX over NETMEM_TX_NO_DMA devices
When a netkit virtual device leases queues from a physical NIC, devmem TX bindings created on the netkit device must still result in the dmabuf being mapped for dma by the physical device. This patch accomplishes this by teaching the bind handler to search for the underlying DMA-capable device.
net/core/dev.c static struct sk_buff *validate_xmit_unreadable_skb(struct sk_buff *skb, · line 3998
Quoted 12 lines
net/core/dev.c +2
-1@@ -3993,7 +3993,8 @@ static struct sk_buff *validate_xmit_unreadable_skb(struct sk_buff *skb,struct skb_shared_info *shinfo;struct net_iov *niov; -if (likely (skb_frags_readable (skb))) +if (likely (skb_frags_readable (skb) || + dev->netmem_tx ==NETMEM_TX_NO_DMA )) goto out;
If the netkit device is configured to pass packets to its peer (such as via NETKIT_PASS or NETKIT_NEXT), could this allow an unreadable devmem SKB to be injected into the host's local receive stack via __netif_rx()?
If software paths expecting valid struct pages attempt to read the payload, such as local sockets calling kmap_local_page(), will this result in a crash?
[ ... ]
Quoted 4 lines
net/core/devmem.c +0
-0
[ ... ]
net/core/devmem.c net_devmem_bind_dmabuf(struct net_device *dev, · line 216
Quoted 6 lines
net/core/devmem.c +1
-0@@ -212,6 +212,7 @@ net_devmem_bind_dmabuf(struct net_device *dev, } binding->dev = dev; + binding->vdev = vdev;xa_init_flags (&binding->bound_rxqs,XA_FLAGS_ALLOC );
Does this code need to take a reference count on dev and vdev?
Since TX bindings remain active until the user closes the netlink socket, if the physical or virtual device is unregistered and freed while the socket is open, these pointers might become dangling.
If a new net_device is subsequently allocated at the exact same memory address, could the pointer comparison dst_dev != READ_ONCE(binding->vdev) in net_devmem_get_binding() falsely succeed?
[ ... ]
Quoted 4 lines
net/core/netdev-genl.c +0
-0
[ ... ]
Quoted 12 lines
net/core/netdev-genl.c +12
-0+static struct net_device * +netdev_find_netmem_tx_dev (struct net_device *dev) +{ +struct netdev_rx_queue *lease_rxq; +struct net_device *phys_dev; +int i; + +if (dev->netmem_tx ==NETMEM_TX_DMA ) +return dev; + +if (dev->netmem_tx !=NETMEM_TX_NO_DMA ) +return NULL ;
net/core/netdev-genl.c int netdev_nl_bind_rx_doit(struct sk_buff *skb, struct genl_info *info) · line 1149
Quoted 10 lines
net/core/netdev-genl.c +10
-0+ +for (i =0 ; i < dev->real_num_rx_queues; i++) { + lease_rxq =READ_ONCE (__netif_get_rx_queue (dev, i)->lease); +if (!lease_rxq) +continue ; + + phys_dev = lease_rxq->dev; +if (netif_device_present (phys_dev) && + phys_dev->netmem_tx ==NETMEM_TX_DMA ) +return phys_dev;
Is it safe to return phys_dev here without holding an RCU read lock or taking a reference on the device?
Because the caller netdev_nl_bind_tx_doit() operates without the RTNL lock, could the physical device be unregistered and freed concurrently between this pointer read and the subsequent lock acquisition?
Quoted 7 lines
net/core/netdev-genl.c +5
-0+ } + +return NULL ; +} +int netdev_nl_bind_tx_doit (struct sk_buff *skb,struct genl_info *info) {
[ ... ]
net/core/netdev-genl.c int netdev_nl_bind_tx_doit(struct sk_buff *skb, struct genl_info *info) · line 1217
Quoted 2 lines
net/core/netdev-genl.c +2
-0+if (bind_dev != netdev) +netdev_lock (bind_dev);
Since both the virtual device and the physical device are likely initialized as Ethernet devices, they will share the same lock class.
Will acquiring netdev_lock(bind_dev) while already holding the lock for netdev trigger a lockdep warning for possible recursive locking?
Quoted 2 lines
net/core/netdev-genl.c +2
-0+ + dma_dev =netdev_queue_get_dma_dev (bind_dev,0 ,NETDEV_QUEUE_TYPE_TX );
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
PATCH v5 4/8 selftests: drv-net: ncdevmem: add -n flag to skip NIC configuration
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
Add a -n (skip_config) flag that causes ncdevmem to skip NIC configuration when operating as an RX server. When -n is passed, ncdevmem skips configuring header split, RSS, and flow steering, as well as their teardown on exit.
This allows ksft tests to pre-configure the NIC in the host namespace before launching ncdevmem in the guest namespace. This is needed for netkit devmem tests where the test harness namespace has direct access to the NIC and the ncdevmem namespace does not.
--- tools/testing/selftests/drivers/net/hw/ncdevmem.c | 58 +++++++++++++---------- 1 file changed, 34 insertions(+), 24 deletions(-)
tools/testing/selftests/drivers/net/hw/ncdevmem.c +34 -24
@@ -93,6 +93,7 @@ static char *port;static size_t do_validation;static int start_queue =-1 ;static int num_queues =-1 ; +static int skip_config;static char *ifname;static unsigned int ifindex;static unsigned int dmabuf_id;
@@ -828,7 +829,7 @@ static struct netdev_queue_id *create_queues(void)static int do_server (struct memory_buffer *mem) { -struct ethtool_rings_get_rsp *ring_config; +struct ethtool_rings_get_rsp *ring_config =NULL ;char ctrl_data[sizeof (int ) *20000 ];size_t non_page_aligned_frags =0 ;struct sockaddr_in6 client_addr;
@@ -851,27 +852,29 @@ static int do_server(struct memory_buffer *mem)return -1 ; } - ring_config =get_ring_config (); -if (!ring_config) { -pr_err ("Failed to get current ring configuration" ); -return -1 ; - } +if (!skip_config) { + ring_config =get_ring_config (); +if (!ring_config) { +pr_err ("Failed to get current ring configuration" ); +return -1 ; + } -if (configure_headersplit (ring_config,1 )) { -pr_err ("Failed to enable TCP header split" ); - goto err_free_ring_config; - } +if (configure_headersplit (ring_config,1 )) { +pr_err ("Failed to enable TCP header split" ); + goto err_free_ring_config; + } -/* Configure RSS to divert all traffic from our devmem queues */ -if (configure_rss ()) { -pr_err ("Failed to configure rss" ); - goto err_reset_headersplit; - } +/* Configure RSS to divert all traffic from our devmem queues */ +if (configure_rss ()) { +pr_err ("Failed to configure rss" ); + goto err_reset_headersplit; + } -/* Flow steer our devmem flows to start_queue */ -if (configure_flow_steering (&server_sin)) { -pr_err ("Failed to configure flow steering" ); - goto err_reset_rss; +/* Flow steer our devmem flows to start_queue */ +if (configure_flow_steering (&server_sin)) { +pr_err ("Failed to configure flow steering" ); + goto err_reset_rss; + } }if (bind_rx_queue (ifindex, mem->fd,create_queues (), num_queues, &ys)) {
@@ -1052,13 +1055,17 @@ static int do_server(struct memory_buffer *mem) err_unbind:ynl_sock_destroy (ys); err_reset_flow_steering: -reset_flow_steering (); +if (!skip_config) +reset_flow_steering (); err_reset_rss: -reset_rss (); +if (!skip_config) +reset_rss (); err_reset_headersplit: -restore_ring_config (ring_config); +if (!skip_config) +restore_ring_config (ring_config); err_free_ring_config: -ethtool_rings_get_rsp_free (ring_config); +if (!skip_config) +ethtool_rings_get_rsp_free (ring_config);return err; }
@@ -1404,7 +1411,7 @@ int main(int argc, char *argv[])int is_server =0 , opt;int ret, err =1 ; -while ((opt =getopt (argc, argv,"Lls:c:p:v:q:t:f:z:" )) !=-1 ) { +while ((opt =getopt (argc, argv,"Lls:c:p:v:q:t:f:z:n" )) !=-1 ) {switch (opt) {case 'L' : fail_on_linear = true;
@@ -1436,6 +1443,9 @@ int main(int argc, char *argv[])case 'z' : max_chunk =atoi (optarg);break ; +case 'n' : + skip_config =1 ; +break ;case '?' :fprintf (stderr,"unknown option: %c\n" , optopt);break ;
Signature · 1 line
2.53.0-Meta
PATCH v5 5/8 selftests: drv-net: make attr _nk_guest_ifname public
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
Subsequent patches will use the _nk_guest_ifname as a public attr for setting up devmem. Rename to nk_guest_ifname to avoid angering the linter about the '_' prefix being used for a non-private attr.
--- tools/testing/selftests/drivers/net/hw/nk_qlease.py | 8 ++++---- tools/testing/selftests/drivers/net/lib/py/env.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-)
tools/testing/selftests/drivers/net/hw/nk_qlease.py +4 -4
@@ -71,7 +71,7 @@ def test_iou_zcrx(cfg) -> None: flow_rule_id = set_flow_rule(cfg) defer(ethtool, f"-N {cfg.ifname} delete {flow_rule_id}") - rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg._nk_guest_ifname} -q {cfg.nk_queue}" + rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg.nk_guest_ifname} -q {cfg.nk_queue}" tx_cmd = f"{cfg.bin_remote} -c -h {cfg.nk_guest_ipv6} -p {cfg.port} -l 12840" with bkg(rx_cmd, exit_wait=True): wait_port_listen(cfg.port, proto="tcp", ns=cfg.netns)
@@ -128,7 +128,7 @@ def test_attach_xdp_with_mp(cfg) -> None: netdevnl = NetdevFamily() - rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg._nk_guest_ifname} -q {cfg.nk_queue}" + rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg.nk_guest_ifname} -q {cfg.nk_queue}" with bkg(rx_cmd): wait_port_listen(cfg.port, proto="tcp", ns=cfg.netns)
@@ -178,7 +178,7 @@ def test_destroy(cfg) -> None: ethtool(f"-X {cfg.ifname} equal {cfg.src_queue}") defer(ethtool, f"-X {cfg.ifname} default") - rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg._nk_guest_ifname} -q {cfg.nk_queue}" + rx_cmd = f"ip netns exec {cfg.netns.name} {cfg.bin_local} -s -p {cfg.port} -i {cfg.nk_guest_ifname} -q {cfg.nk_queue}" rx_proc = cmd(rx_cmd, background=True) wait_port_listen(cfg.port, proto="tcp", ns=cfg.netns)
@@ -196,7 +196,7 @@ def test_destroy(cfg) -> None: ip(f"link del dev {cfg._nk_host_ifname}") kill_timer.join() cfg._nk_host_ifname = None - cfg._nk_guest_ifname = None + cfg.nk_guest_ifname = None queue_info = netdevnl.queue_get( {"ifindex": cfg.ifindex, "id": cfg.src_queue, "type": "rx"}
tools/testing/selftests/drivers/net/lib/py/env.py +8 -8
@@ -339,7 +339,7 @@ class NetDrvContEnv(NetDrvEpEnv): def __init__(self, src_path, rxqueues=1, **kwargs): self.netns = None self._nk_host_ifname = None - self._nk_guest_ifname = None + self.nk_guest_ifname = None self._tc_clsact_added = False self._tc_attached = False self._bpf_prog_pref = None
@@ -390,7 +390,7 @@ class NetDrvContEnv(NetDrvEpEnv): netkit_links.sort(key=lambda x: x['ifindex']) self._nk_host_ifname = netkit_links[1]['ifname'] - self._nk_guest_ifname = netkit_links[0]['ifname'] + self.nk_guest_ifname = netkit_links[0]['ifname'] self.nk_host_ifindex = netkit_links[1]['ifindex'] self.nk_guest_ifindex = netkit_links[0]['ifindex']
@@ -409,7 +409,7 @@ class NetDrvContEnv(NetDrvEpEnv): if self._nk_host_ifname: cmd(f"ip link del dev {self._nk_host_ifname}") self._nk_host_ifname = None - self._nk_guest_ifname = None + self.nk_guest_ifname = None if self._init_ns_attached: cmd("ip netns del init", fail=False)
@@ -448,16 +448,16 @@ class NetDrvContEnv(NetDrvEpEnv): cmd("ip netns attach init 1") self._init_ns_attached = True ip("netns set init 0", ns=self.netns) - ip(f"link set dev {self._nk_guest_ifname} netns {self.netns.name}") + ip(f"link set dev {self.nk_guest_ifname} netns {self.netns.name}") ip(f"link set dev {self._nk_host_ifname} up") ip(f"-6 addr add fe80::1/64 dev {self._nk_host_ifname} nodad") ip(f"-6 route add {self.nk_guest_ipv6}/128 via fe80::2 dev {self._nk_host_ifname}") ip("link set lo up", ns=self.netns) - ip(f"link set dev {self._nk_guest_ifname} up", ns=self.netns) - ip(f"-6 addr add fe80::2/64 dev {self._nk_guest_ifname}", ns=self.netns) - ip(f"-6 addr add {self.nk_guest_ipv6}/64 dev {self._nk_guest_ifname} nodad", ns=self.netns) - ip(f"-6 route add default via fe80::1 dev {self._nk_guest_ifname}", ns=self.netns) + ip(f"link set dev {self.nk_guest_ifname} up", ns=self.netns) + ip(f"-6 addr add fe80::2/64 dev {self.nk_guest_ifname}", ns=self.netns) + ip(f"-6 addr add {self.nk_guest_ipv6}/64 dev {self.nk_guest_ifname} nodad", ns=self.netns) + ip(f"-6 route add default via fe80::1 dev {self.nk_guest_ifname}", ns=self.netns) def _tc_ensure_clsact(self): qdisc = json.loads(cmd(f"tc -j qdisc show dev {self.ifname}").stdout)
Signature · 1 line
2.53.0-Meta
PATCH v5 6/8 selftests: drv-net: refactor devmem command builders into lib module
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
Adding netkit-based devmem tests is a straight-forward copy of devmem test commands plus some args for the nk cases, so this patch breaks out these command builders into helpers used by both.
Though we tried to avoid libraries to avoid increasing the barrier of entry/complexity (see selftests/drivers/net/README.md, section "Avoid libraries and frameworks"), factoring out these functions seemed like the lesser of two evils in this case of using the same commands, just with slightly different args per environment.
I experimented with just having all of the tests in the same file to avoid having helpers in a library file, but because ksft_run() is limited to a single call per file, and the new tests will require different environments (NetDrvContEnv/NetDrvEpEnv), it would have been necessary to have each test set up its own environment instead of sharing one for the entire ksft_run() run. This came at the cost of ballooning the test time (from under 5s to 30s on my test system), so to strike a balance these tests were placed in separate files so they could keep a shared environment across a single ksft_run() run shared across all tests using the same env type (introduced in subsequent patches).
The helpers work transparently with both plain and netkit environments by inspecting cfg for netkit-specific attributes (netns, nk_queue, etc...).
---
Changes in v5:
- Place the shared helpers in devmem_lib.py next to the test scripts rather than under lib/py/ (Jakub).
- Add devmem_lib.py to TEST_FILES (Jakub).
- configure_nic(): register cleanup via defer() and drop the separate cleanup_nic() helper. (Sashiko)
- Move configure_nic() into the run_*() helpers (with an early return outside a netkit env) so the queue lease doesn't break require_devmem()'s bind-rx check.
- Make the queue lease idempotent across run_*() calls.
- Fix pylint import-error and import-order.
Changes in v4:
- Fixed bad change list version, v4 -> v3 (Stan)
Changes in v3:
- Make socat_send() always bind the source; drop its bind= parameter and the matching bind=not_ns at the run_rx call site.
- Drop socat_send()'s nodelay= arg; have buf_size>0 imply TCP_NODELAY since they are only meaningful together.
- configure_nic(): stash originals on cfg instead of using defer(); add paired cleanup_nic() helper. Drop the per-test configure_nic() calls from run_rx/run_tx/run_tx_chunks/run_rx_hds; the netkit test file invokes configure_nic/cleanup_nic once around ksft_run().
- make cfg.devmem_supported and cfg.devmem_probed public attrs (no '_') for sake of linting
- general cleanup of the code, linting fixes
- In setup_test, drop the unused cfg.listen_ns = getattr(cfg, 'netns', None) assignment.
- In run_rx, pass flow_steer=not_ns to ncdevmem_rx and bind=not_ns to socat_send to avoid changing functionality (we want just a straight refactor here)
Changes in v2:
- Move require_devmem() into individual test functions so KsftSkipEx goes up to ksft_run() (Sashiko)
- in ncdevmem_rx(), move -v 7 to take effect for both netns and non-netns when verify=True
--- tools/testing/selftests/drivers/net/hw/Makefile | 1 + tools/testing/selftests/drivers/net/hw/devmem.py | 77 ++----- .../testing/selftests/drivers/net/hw/devmem_lib.py | 222 +++++++++++++++++++++ 3 files changed, 236 insertions(+), 64 deletions(-)
tools/testing/selftests/drivers/net/hw/Makefile +1 -0
@@ -52,6 +52,7 @@ TEST_PROGS = \ # TEST_FILES := \ + devmem_lib.py \ ethtool_lib.sh \ #
tools/testing/selftests/drivers/net/hw/devmem.py +13 -64
104 lines not on this page · raw message
tools/testing/selftests/drivers/net/hw/devmem_lib.py new file +222 -0
222 lines not on this page · raw message
Signature · 1 line
2.53.0-Meta
PATCH v5 7/8 selftests: drv-net: add primary_rx_redirect support to NetDrvContEnv
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
When sending from a namespace that has access to a netkit device with a leased queue, the nk primary in the host namespace needs to redirect its RX to the physical device. This patch adds that redirection bpf program and teaches the harness to install it.
Add primary_rx_redirect=False parameter to NetDrvContEnv.__init__(). When enabled, _attach_primary_rx_redirect_bpf() attaches a new BPF TC program (nk_primary_rx_redirect.bpf.c) to the primary (host-side) netkit interface. The program redirects non-ICMPv6 IPv6 packets to the physical NIC via bpf_redirect_neigh(), with the physical ifindex configured via the .bss map. ICMPv6 is left on the host's netkit primary so IPv6 neighbor discovery still work locally.
Extract _find_bss_map_id() from _attach_bpf() into a reusable helper so other BPF attachment methods can use it.
---
Changes in v5:
- Use sys.byteorder when packing phys_ifindex into the BPF .bss map (Sashiko).
Changes in v3:
- nk_primary_rx_redirect.bpf.c: add header includes to avoid hardcoding values
- update commit message explaining why ICMP is passed through
- env.py: re-use _tc_ensure_clsact() (had to add ifname paramater)
- env.py: gate the remote IPv6 host route install on primary_rx_redirect by moving it from _setup_ns() into _attach_primary_rx_redirect_bpf()
--- .../drivers/net/hw/nk_primary_rx_redirect.bpf.c | 39 +++++++++ tools/testing/selftests/drivers/net/lib/py/env.py | 94 +++++++++++++++++----- 2 files changed, 115 insertions(+), 18 deletions(-)
tools/testing/selftests/drivers/net/hw/nk_primary_rx_redirect.bpf.c new file +39 -0
@@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0 +#include <linux/bpf.h> +#include <linux/pkt_cls.h> +#include <linux/if_ether.h> +#include <linux/in.h> +#include <linux/ipv6.h> +#include <bpf/bpf_helpers.h> +#include <bpf/bpf_endian.h> + +#define ctx_ptr (field) ((void *)(long)(field)) + +volatile __u32 phys_ifindex; + +SEC("tc/ingress") +int nk_primary_rx_redirect (struct __sk_buff *skb) +{ +void *data_end =ctx_ptr (skb->data_end); +void *data =ctx_ptr (skb->data); +struct ethhdr *eth; +struct ipv6hdr *ip6h; + + eth = data; +if ((void *)(eth +1 ) > data_end) +return TC_ACT_OK ; + +if (eth->h_proto !=bpf_htons (ETH_P_IPV6 )) +return TC_ACT_OK ; + + ip6h = data +sizeof (struct ethhdr ); +if ((void *)(ip6h +1 ) > data_end) +return TC_ACT_OK ; + +if (ip6h->nexthdr ==IPPROTO_ICMPV6 ) +return TC_ACT_OK ; + +return bpf_redirect_neigh (phys_ifindex,NULL ,0 ,0 ); +} + +char __license[] SEC("license") = "GPL";
tools/testing/selftests/drivers/net/lib/py/env.py +76 -18
155 lines not on this page · raw message
Signature · 1 line
2.53.0-Meta
PATCH v5 8/8 selftests: drv-net: add netkit devmem tests
In reply to Bobby EshlemanFrom: Bobby Eshleman <[email protected]>
Add nk_devmem.py with four tests for TCP devmem through a netkit device.
These tests are just duplicates of the original devmem tests, with some adjusted parameters such as telling ncdevmem to avoid device setup (since it only has access to netkit, not a phys device).
Each test uses NetDrvContEnv with primary_rx_redirect=True to set up the BPF redirect program on the primary netkit interface, then calls a shared run_*() helper which probes for devmem support and configures the NIC (HDS, RSS, queue lease) before driving the test. NIC state is restored per-test via defer() callbacks registered inside the helper.
---
Changes in v5:
- Move require_devmem() inside test functions so ksft_run() reports it as a SKIP (Sashiko).
- Drop the inaccurate "mirroring the nk_qlease.py pattern" claim from v4 (Sashiko).
Changes in v4:
- Call configure_nic()/cleanup_nic() once around ksft_run() rather than relying on per-test configuration inside the run_* helpers.
Changes in v3:
- Reorder os.path expressions
- Drop @ksft_disruptive from check_nk_rx_hds to mirror the original check_rx_hds in devmem.py
Changes in v2:
- Add nk_devmem.py to TEST_PROGS in Makefile (Sashiko)
--- tools/testing/selftests/drivers/net/hw/Makefile | 1 + .../testing/selftests/drivers/net/hw/nk_devmem.py | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+)
tools/testing/selftests/drivers/net/hw/Makefile +1 -0
@@ -35,6 +35,7 @@ TEST_PROGS = \ irq.py \ loopback.sh \ nic_timestamp.py \ + nk_devmem.py \ nk_netns.py \ nk_qlease.py \ ntuple.py \
tools/testing/selftests/drivers/net/hw/nk_devmem.py new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
2.53.0-Meta
[email protected]
AI reviewRe: [PATCH net-next v5 8/8] selftests: drv-net: add netkit devmem tests
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The test function `check_nk_rx_hds` is missing the `@ksft_disruptive` decorator. --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The test function check_nk_rx_hds is missing the @ksft_disruptive decorator. --
commit 6b7595d97efcd40188639cc504f84e6faae25b3e
Author: Bobby Eshleman <[email protected]>
selftests: drv-net: add netkit devmem tests
This commit adds nk_devmem.py with four tests for TCP devmem through a netkit device. The tests duplicate the original devmem tests with adjusted parameters for the netkit environment.
Quoted 5 lines
tools/testing/selftests/drivers/net/hw/nk_devmem.py new file +0
-0
[ ... ]
tools/testing/selftests/drivers/net/hw/nk_devmem.py line 29
Quoted 7 lines
+@ksft_disruptive
tools/testing/selftests/drivers/net/hw/nk_devmem.py new file +6
-0+def check_nk_tx_chunks(cfg) -> None: + """Run the devmem TX chunking test through netkit.""" + run_tx_chunks(cfg) + + +def check_nk_rx_hds(cfg) -> None:
Should check_nk_rx_hds() also be marked with the @ksft_disruptive decorator?
Since run_rx_hds() configures NIC hardware parameters (HDS, RSS, queue lease) that bring the interface down and up, it appears this test will disrupt network traffic.
Without the decorator, this function bypasses the framework's test filtering and will run even if the user explicitly disables disruptive tests.
Quoted 3 lines
tools/testing/selftests/drivers/net/hw/nk_devmem.py new file +3
-0+ """Run the HDS test through netkit.""" + run_rx_hds(cfg) +
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=8
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Thu, 14 May 2026 10:22:27 -0700 you wrote:
This series enables TCP devmem TX through netkit devices.
Netkit now supports queue leasing. A physical NIC's RX queue can be leased to a netkit guest interface inside a container namespace. This gives the container a devmem-capable data path on the RX side (bind-rx, etc...). On the TX side, the container process binds to its netkit guest interface and sends traffic that netkit redirects (via BPF or ip forwarding) to the physical NIC for DMA.
[...]
Here is the summary with links:
- [net-next,v5,1/8] net: convert netmem_tx flag to enum
https://git.kernel.org/netdev/net-next/c/7d3ab852dcd8 - [net-next,v5,2/8] net: netkit: declare NETMEM_TX_NO_DMA mode https://git.kernel.org/netdev/net-next/c/6ce2bb048055 - [net-next,v5,3/8] net: devmem: support TX over NETMEM_TX_NO_DMA devices https://git.kernel.org/netdev/net-next/c/1abe839b34ae - [net-next,v5,4/8] selftests: drv-net: ncdevmem: add -n flag to skip NIC configuration https://git.kernel.org/netdev/net-next/c/ecbdf3da7813 - [net-next,v5,5/8] selftests: drv-net: make attr _nk_guest_ifname public https://git.kernel.org/netdev/net-next/c/28357ac667d4 - [net-next,v5,6/8] selftests: drv-net: refactor devmem command builders into lib module https://git.kernel.org/netdev/net-next/c/6cac32fc3f1f - [net-next,v5,7/8] selftests: drv-net: add primary_rx_redirect support to NetDrvContEnv https://git.kernel.org/netdev/net-next/c/886a790b59f9 - [net-next,v5,8/8] selftests: drv-net: add netkit devmem tests https://git.kernel.org/netdev/net-next/c/28c1cc999fbb
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html