Skip to content

netdevsim: add fake FT/CLS_FLOWER offload

Florian Westphal netdev netfilter-devel 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v12 patches 3 repliesSuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2netdevsim: tc: allow to test nf_tables offload control plane codedrivers/net/netdevsim/bpf.c drivers/net/netdevsim/tc.c+19 -70 repliesApplied
2/2selftests: netfilter: add phony nft_offload testtools/testing/selftests/net/netfilter/Makefile tools/testing/selftests/net/netfilter/config tools/testing/selftests/net/netfilter/nft_offload.sh+139 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/2] netdevsim: add fake FT/CLS_FLOWER offload

v2: fix up error reporting via extack
shellcheck cleanups
sort config toggles

1) Enable nf_tables offload control plane testing in netdevsim. Tag existing offload fn to allow error injection for testing rollback and abort logic.

2) Add nft_offload selftest to exercise the control plane and error unwind via fault injection.

Florian Westphal (2):
netdevsim: tc: allow to test nf_tables offload control plane code
selftests: netfilter: add phony nft_offload test

 drivers/net/netdevsim/bpf.c                   |   6 -
 drivers/net/netdevsim/tc.c                    |  20 ++-
 .../testing/selftests/net/netfilter/Makefile  |   1 +
 tools/testing/selftests/net/netfilter/config  |   6 +
 .../selftests/net/netfilter/nft_offload.sh    | 132 ++++++++++++++++++
 5 files changed, 158 insertions(+), 7 deletions(-)
 create mode 100755 tools/testing/selftests/net/netfilter/nft_offload.sh
Signature · 1 line
2.53.0