From 1fbfcbcb15bc51b7b689df44ae338a1c7db6269c Mon Sep 17 00:00:00 2001 From: Yulong Pei Date: Fri, 24 Feb 2023 07:35:58 +0000 Subject: Fix: detaches the attached XDP/BPF program before af_xdp test run When call create af_xdp interface api, it will load default xdp program (xsk_def_prog.o) on the NIC interface, the program will be unloaded when call delete af_xdp interface api, but current csit config did not call delete api for af_xdp test cases, that will cause af_xdp test case fails to run on Intel E810 NIC when the interface already have xdp program attached, so this patch is to fix this issue by to detach any attached XDP/BPF program on the interface before af_xdp test case run. Signed-off-by: Yulong Pei Change-Id: I1a557b4c4a7e88c5715cec771a001df29ac4ae6f Signed-off-by: Yulong Pei --- resources/libraries/robot/shared/interfaces.robot | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/libraries/robot/shared/interfaces.robot') diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index a2e46ef9c2..6279dd0bd2 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -169,6 +169,8 @@ | | FOR | ${dut} | IN | @{duts} | | | Set Interface State PCI | | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | state=up +| | | Set Interface XDP off +| | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | | | Set Interface Channels | | | ... | ${nodes['${dut}']} | ${${dut}_pf_pci} | num_queues=${rxq_count_int} | | | ... | channel=combined -- cgit 1.2.3-korg