Bug 1995082
| Summary: | failed loading xdp program in netns | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Mingyu Shi <mshi> | |
| Component: | iproute | Assignee: | Andrea Claudi <aclaudi> | |
| Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.5 | CC: | aclaudi, atragler, jiji, lmiksik, network-qe | |
| Target Milestone: | beta | Keywords: | Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | iproute-5.12.0-4.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2009640 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-09 19:37:07 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2009640 | |||
|
Description
Mingyu Shi
2021-08-18 12:13:59 UTC
Jiri and Toke provided an in-depth analysis for this issue and a fix on bz#2005346. Fix submitted upstream: https://patchwork.kernel.org/project/netdevbpf/patch/617d61727a8c73fd28a1eb4136f8159f7f6779d9.1632216695.git.aclaudi@redhat.com/ Fix accepted upstream. A brew build containing it and ready for test is here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=39993423
# enter netns ns0 and load the file successfully:
[14:19:13@mshi-850 ~]0# cd /usr/libexec/kselftests/net
[14:19:20@mshi-850 /usr/libexec/kselftests/net]0# ip netns exec ns0 bash # enter ns0
bash: .bkrconfig: No such file or directory
[root@mshi-850 net]# ip link set dev veth0 xdp object ../bpf/xdp_dummy.o section xdp_dummy
[root@mshi-850 net]# exit
[14:20:02@mshi-850 /usr/libexec/kselftests/net]1# ip link set dev veth1 xdp object ../bpf/xdp_dummy.o section xdp_dummy
[14:20:14@mshi-850 /usr/libexec/kselftests/net]0# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:82:ab:62 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:50:ca:94 brd ff:ff:ff:ff:ff:ff
6: bond101: <NO-CARRIER,BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue master ovs-system state DOWN mode DEFAULT group default qlen 1000
link/ether 42:9c:b5:e8:f6:32 brd ff:ff:ff:ff:ff:ff
7: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether f6:65:99:ed:ec:a3 brd ff:ff:ff:ff:ff:ff
9: veth1@if8: <BROADCAST,MULTICAST> mtu 1500 xdp qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether a2:9b:0e:a1:27:ac brd ff:ff:ff:ff:ff:ff link-netns ns0
prog/xdp id 12 tag 3fed666785a57e53 jited
[14:20:17@mshi-850 /usr/libexec/kselftests/net]0# ip link set dev veth2 xdp object ../bpf/xdp_dummy.o section xdp_dummy
Cannot find device "veth2"
[14:20:22@mshi-850 /usr/libexec/kselftests/net]1# rpm -q iproute
iproute-5.12.0-4.el8.x86_64
Same with #comment11 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 (iproute 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/RHBA-2021:4389 |