Re: [PATCH v2 net-next 3/4] net sched actions: calculate add/delete event message size

2018-03-07 Thread Roman Mashak
David Miller writes: > From: Roman Mashak > Date: Tue, 6 Mar 2018 16:55:23 -0500 > >> +static size_t tcf_action_fill_size(const struct tc_action *act) >> +{ >> +if (act->ops->get_fill_size) >> +return act->ops->get_fill_size(act) + >> +

Re: [PATCH v2 net-next 3/4] net sched actions: calculate add/delete event message size

2018-03-07 Thread David Miller
From: Roman Mashak Date: Tue, 6 Mar 2018 16:55:23 -0500 > +static size_t tcf_action_fill_size(const struct tc_action *act) > +{ > + if (act->ops->get_fill_size) > + return act->ops->get_fill_size(act) + > +

[PATCH v2 net-next 3/4] net sched actions: calculate add/delete event message size

2018-03-06 Thread Roman Mashak
Introduce routines to calculate size of the shared tc netlink attributes and the full message size including netlink header and tc service header. Update add/delete action logic to have the size for event messages, the size is passed to tcf_add_notify() and tcf_del_notify() where the notification