summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBobby Eshleman <bobbyeshleman@meta.com>2026-05-14 10:22:28 -0700
committerJakub Kicinski <kuba@kernel.org>2026-05-18 18:49:06 -0700
commit7d3ab852dcd853692197a830d20052127754a087 (patch)
tree509f4b05e703c532567548bfe4fe95417ec3e9e8 /scripts
parentf79a0466a46f81e5b42458fcbec033280c841293 (diff)
net: convert netmem_tx flag to enum
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. Acked-by: Harshitha Ramamurthy <hramamurthy@google.com> Acked-by: Stanislav Fomichev <sdf@fomichev.me> Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com> Link: https://patch.msgid.link/20260514-tcp-dm-netkit-v5-1-408c59b91e66@meta.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions