]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c7925e997273d769ab76d784a08dc16be837b86
tree407e414844ebc3607ff67c43237fb53b78931564
parent0f679ec8e25f3d25318fe096d9c1a358d7414796
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