mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
selftests: net: veth: test syncing GRO and XDP state while device is down
Test that we keep GRO flag in sync when XDP is disabled while the device is closed. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fe9f801355
commit
1a825e4cdf
@ -246,6 +246,20 @@ ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
|
||||
chk_gro " - aggregation with TSO off" 1
|
||||
cleanup
|
||||
|
||||
create_ns
|
||||
ip -n $NS_DST link set dev veth$DST up
|
||||
ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} section xdp
|
||||
chk_gro_flag "gro vs xdp while down - gro flag on" $DST on
|
||||
ip -n $NS_DST link set dev veth$DST down
|
||||
chk_gro_flag " - after down" $DST on
|
||||
ip -n $NS_DST link set dev veth$DST xdp off
|
||||
chk_gro_flag " - after xdp off" $DST off
|
||||
ip -n $NS_DST link set dev veth$DST up
|
||||
chk_gro_flag " - after up" $DST off
|
||||
ip -n $NS_SRC link set dev veth$SRC xdp object ${BPF_FILE} section xdp
|
||||
chk_gro_flag " - after peer xdp" $DST off
|
||||
cleanup
|
||||
|
||||
create_ns
|
||||
chk_channels "default channels" $DST 1 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user