diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-11-06 15:34:17 -0500 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-08 12:15:19 +0100 |
commit | a21b06e7319129994f339ed47f512bbe57b77f5b (patch) | |
tree | 9ac5350a35c09d95a4119866e29d344f7d8032fa /include/uapi/linux/tc_act | |
parent | 1913894100ca53205f2d56091cb34b8eba1de217 (diff) | |
download | linux-a21b06e7319129994f339ed47f512bbe57b77f5b.tar.gz linux-a21b06e7319129994f339ed47f512bbe57b77f5b.tar.bz2 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/uapi/linux/tc_act')
-rw-r--r-- | include/uapi/linux/tc_act/tc_ct.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/tc_act/tc_ct.h b/include/uapi/linux/tc_act/tc_ct.h index 5fb1d7ac1027..6c5200f0ed38 100644 --- a/include/uapi/linux/tc_act/tc_ct.h +++ b/include/uapi/linux/tc_act/tc_ct.h @@ -22,6 +22,9 @@ enum { TCA_CT_NAT_PORT_MIN, /* be16 */ TCA_CT_NAT_PORT_MAX, /* be16 */ TCA_CT_PAD, + TCA_CT_HELPER_NAME, /* string */ + TCA_CT_HELPER_FAMILY, /* u8 */ + TCA_CT_HELPER_PROTO, /* u8 */ __TCA_CT_MAX }; |