mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 06:46:35 +01:00
flow_keys: include thoff into flow_keys for later usage
In skb_flow_dissect(), we perform a dissection of a skbuff. Since we're doing the work here anyway, also store thoff for a later usage, e.g. in the BPF filter. Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
e0ebcb80cb
commit
8ed781668d
2 files changed
+3
No files matched your search
@@ -9,6 +9,7 @@ struct flow_keys {
|
||||
__be32 ports;
|
||||
__be16 port16[2];
|
||||
};
|
||||
u16 thoff;
|
||||
u8 ip_proto;
|
||||
};
|
||||
|
||||
|
||||
@@ -140,6 +140,8 @@ ipv6:
|
||||
flow->ports = *ports;
|
||||
}
|
||||
|
||||
flow->thoff = (u16) nhoff;
|
||||
|
||||
return true;
|
||||
}
|
||||
EXPORT_SYMBOL(skb_flow_dissect);
|
||||
|
||||
Reference in new issue
Block a user