Skip to content

Commit

Permalink
testing/test_runner: Enable GRO on veth interfaces
Browse files Browse the repository at this point in the history
When setting up the test environment, make sure to enable GRO on the veth
interfaces, so that XDP redirection will work.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
  • Loading branch information
tohojo committed Aug 5, 2024
1 parent 60e8f11 commit 3492ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/testing/test_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ init_ns()
ip link add dev "$nsname" type veth peer name "$peername"
set_sysctls $nsname

ethtool -K "$nsname" rxvlan off txvlan off
ethtool -K "$peername" rxvlan off txvlan off
ethtool -K "$nsname" rxvlan off txvlan off gro on
ethtool -K "$peername" rxvlan off txvlan off gro on

OUTSIDE_MAC=$(iface_macaddr "$nsname")
INSIDE_MAC=$(iface_macaddr "$peername")
Expand Down

0 comments on commit 3492ea4

Please sign in to comment.