diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-11-06 21:34:17 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-08 12:15:19 +0100 |
commit | a21b06e7319129994f339ed47f512bbe57b77f5b (patch) | |
tree | 9ac5350a35c09d95a4119866e29d344f7d8032fa /include/net/tc_act | |
parent | net: sched: call tcf_ct_params_free to free params in tcf_ct_init (diff) | |
download | linux-a21b06e7319129994f339ed47f512bbe57b77f5b.tar.xz linux-a21b06e7319129994f339ed47f512bbe57b77f5b.zip |
net: sched: add helper support in act_ct
This patch is to add helper support in act_ct for OVS actions=ct(alg=xxx)
offloading, which is corresponding to Commit cae3a2627520 ("openvswitch:
Allow attaching helpers to ct action") in OVS kernel part.
The difference is when adding TC actions family and proto cannot be got
from the filter/match, other than helper name in tb[TCA_CT_HELPER_NAME],
we also need to send the family in tb[TCA_CT_HELPER_FAMILY] and the
proto in tb[TCA_CT_HELPER_PROTO] to kernel.
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r-- | include/net/tc_act/tc_ct.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_ct.h b/include/net/tc_act/tc_ct.h index 8250d6f0a462..b24ea2d9400b 100644 --- a/include/net/tc_act/tc_ct.h +++ b/include/net/tc_act/tc_ct.h @@ -10,6 +10,7 @@ #include <net/netfilter/nf_conntrack_labels.h> struct tcf_ct_params { + struct nf_conntrack_helper *helper; struct nf_conn *tmpl; u16 zone; |