From: "Gaul, Maximilian" <maximilian.gaul@hm.edu>
To: Xdp <xdp-newbies@vger.kernel.org>
Subject: Intel X520 looses ethtool flow-type rule the moment a BPF / XDP program is loaded
Date: Fri, 5 Jun 2020 11:17:33 +0000 [thread overview]
Message-ID: <a5741e0f3b90422f8c53a8bd54f06d8a@hm.edu> (raw)
Hello,
I have an Intel X520 10Gbit/s NIC with driver:
$ sudo ethtool -i eth5
driver: ixgbe
version: 5.7.1
firmware-version: 0x80000827, 16.5.19
expansion-rom-version:
bus-info: 0000:04:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
and Kernel:
$ uname -a
Linux 5.6.0-2-amd64
I tried this tutorial before hand: https://software.intel.com/content/www/us/en/develop/articles/setting-up-intel-ethernet-flow-director.html
Unfortunately I am experiencing some strange behavior in combination with AF_XDP.
For example, I am adding an ethtool flow-type rule like this:
$ sudo ethtool -N eth5 flow-type udp4 dst-ip 239.0.1.1 dst-port 5500 action 0
Added rule with ID 4093
Checking it is there:
$ sudo ethtool -n eth5
16 RX rings available
Total 1 rules
Filter: 4093
Rule Type: UDP over IPv4
Src IP addr: 0.0.0.0 mask: 255.255.255.255
Dest IP addr: 239.0.1.1 mask: 0.0.0.0
TOS: 0x0 mask: 0xff
Src port: 0 mask: 0xffff
Dest port: 5500 mask: 0x0
VLAN EtherType: 0x0 mask: 0xffff
VLAN: 0x0 mask: 0xffff
User-defined: 0x0 mask: 0xffffffffffffffff
Action: Direct to queue 0
After that I am launching my AF_XDP program which firsts loads a compiled BPF-object file into the kernel (without any errors).
I am checking ethtool again:
$ sudo ethtool -n eth5
16 RX rings available
Total 0 rules
Any ideas why that is? I am not saying that my program is bug-free but it worked fine in combination with Mellannox ConnectX5 and Broadcom 1Gbit/s NIC (without zcopy on the broadcom though).
Thank you
Max
next reply other threads:[~2020-06-05 11:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-05 11:17 Gaul, Maximilian [this message]
2020-06-05 11:57 ` Intel X520 looses ethtool flow-type rule the moment a BPF / XDP program is loaded Magnus Karlsson
2020-06-05 12:05 ` AW: " Gaul, Maximilian
2020-06-05 12:15 ` Magnus Karlsson
2020-06-05 12:25 ` AW: " Gaul, Maximilian
2020-06-05 13:11 ` Magnus Karlsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5741e0f3b90422f8c53a8bd54f06d8a@hm.edu \
--to=maximilian.gaul@hm.edu \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).