aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/act_api.h
diff options
context:
space:
mode:
authorRoman Mashak <mrv@mojatatu.com>2018-03-08 16:59:18 -0500
committerDavid S. Miller <davem@davemloft.net>2018-03-09 11:25:11 -0500
commita03b91b17684023c45d39b836c85579d5e535983 (patch)
tree96f751f8bb5327ea4a305987290d7b6baccca278 /include/net/act_api.h
parentnet sched actions: update Add/Delete action API with new argument (diff)
downloadlinux-dev-a03b91b17684023c45d39b836c85579d5e535983.tar.xz
linux-dev-a03b91b17684023c45d39b836c85579d5e535983.zip
net sched actions: add new tc_action_ops callback
Add a new callback in tc_action_ops, it will be needed by the tc actions to compute its size when a ADD/DELETE notification message is constructed. This routine has to take into account optional/variable size TLVs specific per action. Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/act_api.h')
-rw-r--r--include/net/act_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h
index 88c1f99bae46..e0a9c2003b24 100644
--- a/include/net/act_api.h
+++ b/include/net/act_api.h
@@ -97,6 +97,7 @@ struct tc_action_ops {
const struct tc_action_ops *,
struct netlink_ext_ack *);
void (*stats_update)(struct tc_action *, u64, u32, u64);
+ size_t (*get_fill_size)(const struct tc_action *act);
struct net_device *(*get_dev)(const struct tc_action *a);
};