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

bpftool: Check argc first before "file" in do_batch() #4031

Closed
wants to merge 2 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: bpftool: Check argc first before "file" in do_batch()
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535

@kernel-patches-bot
Copy link
Author

Upstream branch: 6728aea
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535
version: 2

@kernel-patches-bot
Copy link
Author

Upstream branch: 26a9b43
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535
version: 2

@kernel-patches-bot
Copy link
Author

Upstream branch: 32637e3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535
version: 2

@kernel-patches-bot
Copy link
Author

Upstream branch: 6373ef1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535
version: 2

@kernel-patches-bot
Copy link
Author

Upstream branch: e0eb608
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=695535
version: 2

If the parameters for batch are more than 2, check argc first can
return immediately, no need to use is_prefix() to check "file" with
a little overhead and then check argc, it is better to check "file"
only when the parameters for batch are 2.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
@kernel-patches-bot
Copy link
Author

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

@kernel-patches-bot kernel-patches-bot deleted the series/695535=>bpf-next branch November 16, 2022 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant