summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorCraig Dillabaugh <cdillaba@mojatatu.com>2018-05-01 17:17:43 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-03 18:15:58 +0300
commit29e6eee192f31caf9e0af7713224fd171044cef4 (patch)
tree4d1910477be859121ae107d05087d26f9a5ba183 /net/sched
parent5693ee4ba3dc9b90f8453235eb6ceaa15b0416ec (diff)
downloadlinux-29e6eee192f31caf9e0af7713224fd171044cef4.tar.xz
net sched: Implemented get_fill_size routine for act_csum.
Signed-off-by: Craig Dillabaugh <cdillaba@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_csum.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c
index 7e28b2ce1437..526a8e491626 100644
--- a/net/sched/act_csum.c
+++ b/net/sched/act_csum.c
@@ -648,6 +648,11 @@ static int tcf_csum_search(struct net *net, struct tc_action **a, u32 index,
return tcf_idr_search(tn, a, index);
}
+static size_t tcf_csum_get_fill_size(const struct tc_action *act)
+{
+ return nla_total_size(sizeof(struct tc_csum));
+}
+
static struct tc_action_ops act_csum_ops = {
.kind = "csum",
.type = TCA_ACT_CSUM,
@@ -658,6 +663,7 @@ static struct tc_action_ops act_csum_ops = {
.cleanup = tcf_csum_cleanup,
.walk = tcf_csum_walker,
.lookup = tcf_csum_search,
+ .get_fill_size = tcf_csum_get_fill_size,
.size = sizeof(struct tcf_csum),
};