-
Notifications
You must be signed in to change notification settings - Fork 97
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
Conversation
Upstream branch: 6728aea |
63a05f7
to
d518379
Compare
Upstream branch: 26a9b43 |
4af9ec4
to
21e0873
Compare
d518379
to
28b3d16
Compare
Upstream branch: 32637e3 |
21e0873
to
1859e63
Compare
28b3d16
to
ccb2000
Compare
Upstream branch: 6373ef1 |
1859e63
to
206d230
Compare
ccb2000
to
294adfe
Compare
Upstream branch: e0eb608 |
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>
206d230
to
bceb713
Compare
294adfe
to
d238c4e
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=695535 irrelevant now. Closing PR. |
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