pkg/bpf: get and store owner program type for maps#1056
Merged
tgraf merged 1 commit intocilium:masterfrom Jun 30, 2017
tklauser:bpf-prog-type
Merged
pkg/bpf: get and store owner program type for maps#1056tgraf merged 1 commit intocilium:masterfrom tklauser:bpf-prog-type
tgraf merged 1 commit intocilium:masterfrom
tklauser:bpf-prog-type
Conversation
houndci-bot
reviewed
Jun 30, 2017
There was a problem hiding this comment.
exported type ProgType should have comment or be unexported
houndci-bot
reviewed
Jun 30, 2017
There was a problem hiding this comment.
exported type ProgType should have comment or be unexported
Parse the owner_prog_type field from the map's fdinfo file and store it in MapInfo. Add the corresponding BPF program type enum and Stringer interface. At the moment, this is not needed for cilium itself but would be useful for the generic bpf-map tool which uses cilium's pkg/bpf. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Closed
tgraf
approved these changes
Jun 30, 2017
tklauser
added a commit
to tklauser/bpf-map
that referenced
this pull request
Jul 19, 2017
Update the cilium godep to get the bpf map owner prog type introduced in cilium/cilium#1056. Add two additional vendor dependecies (logrus & x/sys/unix) now used by cilium's pkg/bpf. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser
added a commit
to tklauser/bpf-map
that referenced
this pull request
Jul 19, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in cilium/cilium#1056. Add two additional vendor dependecies (logrus & x/sys/unix) now used by cilium's pkg/bpf. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser
added a commit
to tklauser/bpf-map
that referenced
this pull request
Aug 9, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in cilium/cilium#1056. Add two additional vendor dependencies (logrus & x/sys/unix) now used by cilium's pkg/bpf. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tgraf
pushed a commit
to cilium/bpf-map
that referenced
this pull request
Aug 9, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in cilium/cilium#1056. Add two additional vendor dependencies (logrus & x/sys/unix) now used by cilium's pkg/bpf. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parse the owner_prog_type field from the map's fdinfo file and store it
in MapInfo. Add the corresponding BPF program type enum and Stringer
interface.
At the moment, this is not needed for cilium itself but would be useful
for the generic bpf-map tool which uses cilium's pkg/bpf.
Signed-off-by: Tobias Klauser tklauser@distanz.ch