net: sched: add helper support in act_ct
authorXin Long <lucien.xin@gmail.com>
Sun, 6 Nov 2022 20:34:17 +0000 (15:34 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Nov 2022 11:15:19 +0000 (12:15 +0100)
commita21b06e7319129994f339ed47f512bbe57b77f5b
tree9ac5350a35c09d95a4119866e29d344f7d8032fa
parent1913894100ca53205f2d56091cb34b8eba1de217
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>
include/net/tc_act/tc_ct.h
include/uapi/linux/tc_act/tc_ct.h
net/sched/act_ct.c