forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf: introduce metdata flag in attributes
This flag is needed to inform driver that metadata is used in xdp program. First approach (code in this patch): libbpf search for metadata casting line in xdp program and based on this set metada flag in load attr. This isn't clean solution. XDP program is checked line by line and only exact match with (structure xdp_meta_generic *) will result in setting metadata flags. It is hard to parse all different (but valid for compiler) casting case. For example with more space between names etc. Also there is a problem with passing the flag to ndo_bpf call. Searching for casting can happend in loading bpf program path, but ndo_bpf call is done in creating link on interface. Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
- Loading branch information
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters