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

Avoid including common.h in BPFTable.h #1611

Merged
merged 1 commit into from
Feb 28, 2018

Conversation

palmtenor
Copy link
Member

@palmtenor palmtenor commented Feb 28, 2018

#1603 added include of common.h in BPFTable.h for get_possible_cpus. BPFTable.h is an installed / exported header hence we needed to export common.h as well. I think common.h was supposed to be an internal file that shouldn't be exposed to users, so this PR is best effort to hide the logic in the source code file.

Putting it as static method in BPFTable class because other classes (like BPFTableBase) are templated, and I don't want to put it in just the ebpf:: scope.

Copy link
Collaborator

@yonghong-song yonghong-song left a comment

Choose a reason for hiding this comment

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

LGTM

@yonghong-song yonghong-song merged commit 7f99ebd into iovisor:master Feb 28, 2018
@palmtenor palmtenor deleted the fix_common_include branch March 1, 2018 07:17
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.

2 participants