linux/Documentation/translations
Bobby Eshleman 6ce2bb0480 net: netkit: declare NETMEM_TX_NO_DMA mode
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.

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-2-408c59b91e66@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
History 2026-05-18 18:49:06 -07:00
..
it_IT net: remove ax25 and amateur radio (hamradio) subsystem 2026-04-23 10:24:02 -07:00
ja_JP docs/ja_JP: submitting-patches: Amend "Describe your changes" 2026-03-30 10:57:34 -06:00
ko_KR Docs/translations/ko_KR: remove memory-barriers 2026-01-06 14:53:51 -07:00
pt_BR docs: pt_BR: Add translation for KVM x86 maintainer guide 2026-03-25 13:41:54 -06:00
sp_SP net: remove ax25 and amateur radio (hamradio) subsystem 2026-04-23 10:24:02 -07:00
zh_CN net: netkit: declare NETMEM_TX_NO_DMA mode 2026-05-18 18:49:06 -07:00
zh_TW net: remove ax25 and amateur radio (hamradio) subsystem 2026-04-23 10:24:02 -07:00
index.rst docs: pt_BR: Add initial Portuguese translation 2026-02-23 14:16:07 -07:00