I am trying to load my XDP program directly on the NIC (offloaded XDP). According to this answer, I need to specify the device to the following functions:
BPF()
load_func()
I did it like so:
b = BPF(src_file=”file.c”, cflags=[”-w”], device=”eno5”)
When I added the device I got the following error:
types.ArgumentError: argument 6: <class ‘TypeError’>: wrong type
Can you please help me to solve this issue and make my XDP program offloaded to the NIC? Thanks