Skip to content
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

Closed

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

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

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 8daf847
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 492e797
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 3226e31
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 24cc756
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 41ee014
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 6f5a630
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767401
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=767401 expired. Closing PR.

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: b446934
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 5322a27
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: dc644b5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 7b2b201
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 36397a1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 13fd5e1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 63e2da3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

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>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 63e2da3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=767906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=767906 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant