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

feature: add XDP_FLAGS* in python lib #3447

Merged
merged 2 commits into from
May 24, 2021
Merged

feature: add XDP_FLAGS* in python lib #3447

merged 2 commits into from
May 24, 2021

Conversation

chenyuezhou
Copy link
Contributor

@chenyuezhou chenyuezhou commented May 22, 2021

resolve #3445

add XDP_FLAGS* to __init__.py

I will add documentation in the following PR.

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

XDP_FLAGS_REPLACE = (1 << 4)
XDP_FLAGS_MODES = (XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | \
XDP_FLAGS_HW_MODE)
XDP_FLAGS_MASK = (XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_MODES | \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XDP_FLAGS_MODES and XDP_FLAGS_MASK are mostly used by some library and kernel for sanity checks. bcc probably won't need this as user space knows exactly what to set. Could you remove them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit 528be5e into iovisor:master May 24, 2021
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
  add XDP_FLAG macros in python lib so macro names instead of numeric numbers can be used by tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bcc/python library is missing XDP_FLAGS*
2 participants