Skip to content

veth: fix peer NETDEV_XDP_ACT_NDO_XMIT after GRO is toggled while down

Tianyi Gao bpf linux-kselftest netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2veth: fix peer NETDEV_XDP_ACT_NDO_XMIT after GRO is toggled while downdrivers/net/veth.c+1 -03 repliesApplied
2/2selftests: net: veth: test peer ndo-xmit after GRO toggle while downtools/testing/selftests/net/veth.sh+46 -01 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchToke Høiland-JørgensenJesper Dangaard BrouerLorenzo Bianconi
1/2R-b A-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net 0/2] veth: fix peer NETDEV_XDP_ACT_NDO_XMIT after GRO is toggled while down

Toggling GRO on a veth device while it is down leaves its peer's NETDEV_XDP_ACT_NDO_XMIT flag stale once the device comes up. XDP redirects into the peer are then rejected with -EOPNOTSUPP, or, if GRO was turned off, accepted and then dropped with -ENXIO. Patch 1 refreshes the peer's flags in veth_open().

Patch 2 extends veth.sh to check the peer's flag after GRO is toggled while the device is down, in both directions.

Tianyi Gao (2):
veth: fix peer NETDEV_XDP_ACT_NDO_XMIT after GRO is toggled while down
selftests: net: veth: test peer ndo-xmit after GRO toggle while down

 drivers/net/veth.c                  |  1 +
 tools/testing/selftests/net/veth.sh | 46 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

base-commit: d5a007b9b457c915ab1a53227e8939e4018aa97a

Signature · 1 line
2.55.0