net sched actions: calculate add/delete event message size
authorRoman Mashak <mrv@mojatatu.com>
Thu, 8 Mar 2018 21:59:19 +0000 (16:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:25:11 +0000 (11:25 -0500)
commit4e76e75d6aba83f35d55b50f66a6768af1657563
tree407e414844ebc3607ff67c43237fb53b78931564
parenta03b91b17684023c45d39b836c85579d5e535983
net sched actions: calculate add/delete event message size

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 message is being allocated and constructed.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c