title: Trying to load xdp on nic (offloaded)
body: <p>I am trying to load my XDP program directly on the NIC (offloaded XDP).
  According to <a href="https://stackoverflow.com/a/57824120/3716552">this answer</a>, I need to specify the device to the following functions:</p>
  <ul>
  <li><code>BPF()</code></li>
  <li><code>load_func()</code></li>
  </ul>
  <p>I did it like so:</p>
  <pre><code>b = BPF(src_file=”file.c”, cflags=[”-w”], device=”eno5”)
  </code></pre>
  <p>When I added the device I got the following error:</p>
  <blockquote>
  <p>types.ArgumentError: argument 6: &lt;class ‘TypeError’&gt;: wrong type</p>
  </blockquote>
  <p>Can you please help me to solve this issue and make my XDP program offloaded to the NIC? Thanks</p>