RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1880264 - [nfp] xdp-filter hardware offload mode error: libxdp: Error attaching XDP program to ifindex 10: Invalid argument
Summary: [nfp] xdp-filter hardware offload mode error: libxdp: Error attaching XDP pro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: xdp-tools
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.4
Assignee: Toke Høiland-Jørgensen
QA Contact: Zhiqian Guan
URL:
Whiteboard:
Depends On:
Blocks: 1680409
TreeView+ depends on / blocked
 
Reported: 2020-09-18 06:53 UTC by Zhiqian Guan
Modified: 2021-05-18 16:10 UTC (History)
4 users (show)

Fixed In Version: xdp-tools-1.1.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 16:09:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
nfp hw mode debug infor (141.83 KB, text/plain)
2020-09-18 06:53 UTC, Zhiqian Guan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:1925 0 None None None 2021-05-18 16:10:07 UTC

Description Zhiqian Guan 2020-09-18 06:53:16 UTC
Created attachment 1715302 [details]
nfp hw mode debug infor

Description of problem:

it doesn't work when using xdp-filter -m hw on nfp card, error: 

libxdp: Error attaching XDP program to ifindex 10: Invalid argument
Couldn't attach XDP program on iface 'ens3np0': Invalid argument(-22)


Reproduce log:

[root@netqe30 xdp_tools]# ethtool -i ens3np0
driver: nfp
version: 4.18.0-234.el8.x86_64 SMP mod_u
firmware-version: 0.0.3.5 0.22 bpf-2.0.6.124 ebpf
expansion-rom-version:
bus-info: 0000:5e:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
[root@netqe30 xdp_tools]# xdp-filter load -m hw ens3np0
libxdp: Error attaching XDP program to ifindex 10: Invalid argument
Couldn't attach XDP program on iface 'ens3np0': Invalid argument(-22)
[root@netqe30 xdp_tools]# xdp-loader load -m hw ens3np0 xdp_prog_kern.o
libxdp: Error attaching XDP program to ifindex 10: Invalid argument
Couldn't attach XDP program on iface 'ens3np0': Invalid argument(-22)
[root@netqe30 xdp_tools]# rpm -qa | grep xdp-tools
xdp-tools-1.0.1-1.el8.x86_64
[root@netqe30 xdp_tools]# uname -r
4.18.0-234.el8.x86_64
[root@netqe30 xdp_tools]#


-vv logging is also attached.


Actual results:
xdp-filter load failed

Expected results:
xdp-filter successfully load in hw mode.

Comment 1 Zhiqian Guan 2020-09-18 07:01:14 UTC
file this bug for tracking the unresolved known issue of current xdp-tools version, details please see https://bugzilla.redhat.com/show_bug.cgi?id=1820670, Comment96, Comment97

Comment 2 Toke Høiland-Jørgensen 2020-09-18 10:29:00 UTC
I'm not quite sure if this is due to a fundamental limitation in the offload support, but in that case we can at least error out with a nicer message...

Comment 4 Zhiqian Guan 2020-10-19 07:33:04 UTC
Hi Toke,

Any plan for when will this bug be fixed? I'm planning setting the ITR to 8.4.0, and also need to set the ITM field.

Comment 5 Toke Høiland-Jørgensen 2020-10-23 08:57:01 UTC
As for the other xdp-tools bug, let's do this after the 5.10 backports land (clearing needinfo)...

Comment 6 Toke Høiland-Jørgensen 2021-01-04 21:04:15 UTC
Scratch build what should fix this available here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=34045153

Will turn it into a proper build as soon as I figure out how to get a new branch created in dist-git...

Comment 11 Zhiqian Guan 2021-01-28 07:28:02 UTC
The logging looks nicer since the xdp-filter doesn't support offloading now.

[root@netqe30 ~]# rpm -q xdp-tools
xdp-tools-1.1.0-1.el8.x86_64
[root@netqe30 ~]# rpm -q libxdp
libxdp-1.1.0-1.el8.x86_64
[root@netqe30 ~]# ethtool -i ens3np0
driver: nfp
version: 4.18.0-277.el8.x86_64
firmware-version: 0.0.3.5 0.22 bpf-2.0.6.124 ebpf
expansion-rom-version:
bus-info: 0000:5e:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
[root@netqe30 ~]# xdp-filter load -m hw ens3np0
xdp-filter does not support offloading.
[root@netqe30 ~]#

Comment 12 Zhiqian Guan 2021-01-28 07:32:24 UTC
base on comment11 set this to Verified

Comment 14 errata-xmlrpc 2021-05-18 16:09:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (xdp-tools bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:1925


Note You need to log in before you can comment on or make changes to this bug.