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)
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -1271,7 +1271,7 @@ static inline int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr) · 1270 unmodified lines | ||
| 1271 | 1271 | |
| 1272 | 1272 | struct bpf_flow_dissector; |
| 1273 | 1273 | bool 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 | |
| 1276 | 1276 | bool __skb_flow_dissect(const struct net *net, |
| 1277 | 1277 | const struct sk_buff *skb, |