Fix: detaches the attached XDP/BPF program before af_xdp test run 20/38320/1
authorYulong Pei <yulong.pei@intel.com>
Fri, 24 Feb 2023 07:35:58 +0000 (07:35 +0000)
committerPeter Mikus <peter.mikus@protonmail.ch>
Fri, 24 Feb 2023 09:21:06 +0000 (09:21 +0000)
commit2817e84549775c66235f1621508331b38c8ff906
tree4660669e45539ad09398954e0e5081c88581c126
parent02cd11e7d5df2504d2cb0e4677b5ab7e105fcc2a
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 <yulong.pei@intel.com>
Change-Id: I1a557b4c4a7e88c5715cec771a001df29ac4ae6f
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
(cherry picked from commit 1fbfcbcb15bc51b7b689df44ae338a1c7db6269c)
resources/libraries/python/InterfaceUtil.py
resources/libraries/robot/shared/interfaces.robot