]> git.proxmox.com Git - ovs.git/blame - tests/system-afxdp.at
raft: Fix the problem of stuck in candidate role forever.
[ovs.git] / tests / system-afxdp.at
CommitLineData
2620f056
IM
1AT_BANNER([AF_XDP])
2
3AT_SETUP([AF_XDP - infinite re-addition of failed ports])
4AT_KEYWORDS([afxdp infinite])
5OVS_TRAFFIC_VSWITCHD_START()
6
7AT_CHECK([ovs-ofctl add-flow br0 "actions=normal"])
8
9ADD_NAMESPACES(at_ns0, at_ns1)
10ADD_VETH(p0, at_ns0, br0, "10.1.1.1/24")
11
12AT_CHECK([ovs-vsctl del-port ovs-p0])
13AT_CHECK([ovs-vsctl add-port br0 ovs-p0 -- \
14 set interface ovs-p0 type=afxdp options:n_rxq=42],
15 [0], [], [stderr])
16OVS_WAIT_UNTIL([grep "ovs-p0: could not set configuration" ovs-vswitchd.log])
17sleep 5
18AT_CHECK([grep "ovs-p0: could not set configuration" ovs-vswitchd.log | wc -l],
19 [0], [1
20])
21
22OVS_TRAFFIC_VSWITCHD_STOP(["/ovs-p0: Too big 'n_rxq'/d
23/ovs-p0: could not set configuration/d"])
24AT_CLEANUP