mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
net: flow_offload: Add original direction flag to ct_metadata
Give offloading drivers the direction of the offloaded ct flow, this will be used for matches on direction (ct_state +/-rpl). Signed-off-by: Paul Blakey <paulb@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8c85d18ce6
commit
941eff5aea
@ -245,6 +245,7 @@ struct flow_action_entry {
|
||||
unsigned long cookie;
|
||||
u32 mark;
|
||||
u32 labels[4];
|
||||
bool orig_dir;
|
||||
} ct_metadata;
|
||||
struct { /* FLOW_ACTION_MPLS_PUSH */
|
||||
u32 label;
|
||||
|
@ -183,6 +183,7 @@ static void tcf_ct_flow_table_add_action_meta(struct nf_conn *ct,
|
||||
IP_CT_ESTABLISHED_REPLY;
|
||||
/* aligns with the CT reference on the SKB nf_ct_set */
|
||||
entry->ct_metadata.cookie = (unsigned long)ct | ctinfo;
|
||||
entry->ct_metadata.orig_dir = dir == IP_CT_DIR_ORIGINAL;
|
||||
|
||||
act_ct_labels = entry->ct_metadata.labels;
|
||||
ct_labels = nf_ct_labels_find(ct);
|
||||
|
Loading…
Reference in New Issue
Block a user