-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf, xdp: Add tracepoint to xdp attaching failure #5371
Conversation
Upstream branch: 8daf847 |
bb62313
to
df60cd3
Compare
Upstream branch: 492e797 |
0f0bc2c
to
f1bed67
Compare
df60cd3
to
7a29eca
Compare
Upstream branch: 3226e31 |
f1bed67
to
91b6ab9
Compare
7a29eca
to
00d0a03
Compare
Upstream branch: 24cc756 |
91b6ab9
to
b5a9075
Compare
00d0a03
to
08dfd82
Compare
Upstream branch: 41ee014 |
b5a9075
to
f8d1a6b
Compare
08dfd82
to
7073834
Compare
Upstream branch: 6f5a630 |
f8d1a6b
to
ca7253c
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=767401 expired. Closing PR. |
Upstream branch: b446934 |
ca7253c
to
42de9a8
Compare
390d4c3
to
ae44272
Compare
Upstream branch: 5322a27 |
42de9a8
to
857e07f
Compare
ae44272
to
62a607a
Compare
Upstream branch: dc644b5 |
857e07f
to
9e867bb
Compare
62a607a
to
b0b2e68
Compare
Upstream branch: 7b2b201 |
9e867bb
to
fde74d9
Compare
b0b2e68
to
2571e4d
Compare
Upstream branch: 36397a1 |
fde74d9
to
c789a3d
Compare
2571e4d
to
bc7bf04
Compare
Upstream branch: 13fd5e1 |
c789a3d
to
7ade1c6
Compare
bc7bf04
to
037bc8f
Compare
Upstream branch: 63e2da3 |
7ade1c6
to
fb217bf
Compare
037bc8f
to
a33d978
Compare
When error happens in dev_xdp_attach(), it should have a way to tell users the error message like the netlink approach. To avoid breaking uapi, adding a tracepoint in bpf_xdp_link_attach() is an appropriate way to notify users the error message. Hence, bpf libraries are able to retrieve the error message by this tracepoint, and then report the error message to users. Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Add a test case for the tracepoint of xdp attaching failure by bpf tracepoint when attach XDP to a device with invalid flags option. The bpf tracepoint retrieves error message from the tracepoint, and then put the error message to a perf buffer. The testing code receives error message from perf buffer, and then ASSERT "Invalid XDP flags for BPF link attachment". Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Upstream branch: 63e2da3 |
fb217bf
to
cd4a038
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=767906 expired. Closing PR. |
Pull request for series with
subject: bpf, xdp: Add tracepoint to xdp attaching failure
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401