Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
89aa2948
Commit
89aa2948
authored
Jan 22, 2018
by
Yonghong Song
Committed by
Brenden Blanco
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync bpf compat headers with latest net-next
Signed-off-by:
Yonghong Song
<
yhs@fb.com
>
parent
a44d26ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
src/cc/compat/linux/bpf.h
src/cc/compat/linux/bpf.h
+11
-1
src/cc/compat/linux/virtual_bpf.h
src/cc/compat/linux/virtual_bpf.h
+11
-1
No files found.
src/cc/compat/linux/bpf.h
View file @
89aa2948
...
...
@@ -16,7 +16,7 @@
#define BPF_ALU64 0x07
/* alu mode in double word width */
/* ld/ldx fields */
#define BPF_DW 0x18
/* double word */
#define BPF_DW 0x18
/* double word
(64-bit)
*/
#define BPF_XADD 0xc0
/* exclusive add */
/* alu/jmp fields */
...
...
@@ -244,6 +244,7 @@ union bpf_attr {
* BPF_F_NUMA_NODE is set).
*/
char
map_name
[
BPF_OBJ_NAME_LEN
];
__u32
map_ifindex
;
/* ifindex of netdev to create on */
};
struct
{
/* anonymous struct used by BPF_MAP_*_ELEM commands */
...
...
@@ -899,6 +900,9 @@ struct xdp_md {
__u32
data
;
__u32
data_end
;
__u32
data_meta
;
/* Below access go through struct xdp_rxq_info */
__u32
ingress_ifindex
;
/* rxq->dev->ifindex */
__u32
rx_queue_index
;
/* rxq->queue_index */
};
enum
sk_action
{
...
...
@@ -921,6 +925,9 @@ struct bpf_prog_info {
__u32
nr_map_ids
;
__aligned_u64
map_ids
;
char
name
[
BPF_OBJ_NAME_LEN
];
__u32
ifindex
;
__u64
netns_dev
;
__u64
netns_ino
;
}
__attribute__
((
aligned
(
8
)));
struct
bpf_map_info
{
...
...
@@ -931,6 +938,9 @@ struct bpf_map_info {
__u32
max_entries
;
__u32
map_flags
;
char
name
[
BPF_OBJ_NAME_LEN
];
__u32
ifindex
;
__u64
netns_dev
;
__u64
netns_ino
;
}
__attribute__
((
aligned
(
8
)));
/* User bpf_sock_ops struct to access socket values and specify request ops
...
...
src/cc/compat/linux/virtual_bpf.h
View file @
89aa2948
...
...
@@ -17,7 +17,7 @@ R"********(
#define BPF_ALU64 0x07 /* alu mode in double word width */
/* ld/ldx fields */
#define BPF_DW 0x18 /* double word */
#define BPF_DW 0x18 /* double word
(64-bit)
*/
#define BPF_XADD 0xc0 /* exclusive add */
/* alu/jmp fields */
...
...
@@ -244,6 +244,7 @@ union bpf_attr {
* BPF_F_NUMA_NODE is set).
*/
char map_name[BPF_OBJ_NAME_LEN];
__u32 map_ifindex; /* ifindex of netdev to create on */
};
struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */
...
...
@@ -898,6 +899,9 @@ struct xdp_md {
__u32 data;
__u32 data_end;
__u32 data_meta;
/* Below access go through struct xdp_rxq_info */
__u32 ingress_ifindex; /* rxq->dev->ifindex */
__u32 rx_queue_index; /* rxq->queue_index */
};
enum sk_action {
...
...
@@ -920,6 +924,9 @@ struct bpf_prog_info {
__u32 nr_map_ids;
__aligned_u64 map_ids;
char name[BPF_OBJ_NAME_LEN];
__u32 ifindex;
__u64 netns_dev;
__u64 netns_ino;
} __attribute__((aligned(8)));
struct bpf_map_info {
...
...
@@ -930,6 +937,9 @@ struct bpf_map_info {
__u32 max_entries;
__u32 map_flags;
char name[BPF_OBJ_NAME_LEN];
__u32 ifindex;
__u64 netns_dev;
__u64 netns_ino;
} __attribute__((aligned(8)));
/* User bpf_sock_ops struct to access socket values and specify request ops
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment