projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5693ee4
)
net sched: Implemented get_fill_size routine for act_csum.
author
Craig Dillabaugh
<
[email protected]
>
Tue, 1 May 2018 14:17:43 +0000
(10:17 -0400)
committer
David S. Miller
<
[email protected]
>
Thu, 3 May 2018 15:15:58 +0000
(11:15 -0400)
Signed-off-by: Craig Dillabaugh <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/act_csum.c
patch
|
blob
|
history
diff --git
a/net/sched/act_csum.c
b/net/sched/act_csum.c
index 7e28b2ce143763b106fda9a12b1f11bc8df53137..526a8e491626efb65fcda10d875e6f55ca2168e8 100644
(file)
--- 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),
};