History

bpf/flow_dissector: pass input flags to BPF flow dissector program

C flow dissector supports input flags that tell it to customize parsing by either stopping early or trying to parse as deep as possible. Pass those flags to the BPF flow dissector so it can make the same decisions. In the next commits I'll add support for those flags to our reference bpf_flow.c v3: * Export copy of flow dissector flags instead of moving (Alexei Starovoitov)

Stanislav Fomichev committed 7 years ago

Commit 086f9561 parent 03cd1d14 files · +17 −4Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/skbuff.h+1−1
@@ -1271,7 +1271,7 @@ static inline int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr) · 1270 unmodified lines
1271 1271
1272struct bpf_flow_dissector;1272struct bpf_flow_dissector;
1273bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,1273bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
1274 __be16 proto, int nhoff, int hlen);1274 __be16 proto, int nhoff, int hlen, unsigned int flags);
1275 1275
1276bool __skb_flow_dissect(const struct net *net,1276bool __skb_flow_dissect(const struct net *net,
1277 const struct sk_buff *skb,1277 const struct sk_buff *skb,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t