]> git.baikalelectronics.ru Git - kernel.git/commit
net sched actions: bug fix dumping actions directly didnt produce NLMSG_DONE
authorJamal Hadi Salim <jhs@mojatatu.com>
Mon, 13 Jun 2016 22:08:42 +0000 (18:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 21:02:53 +0000 (14:02 -0700)
commitf5653cebc64e4a083f7cab03c72137643e931be0
tree65b28d9f79159489932c124a55bb8496159138cd
parent8d3cdcd81651f895118e2a150c8951543187abce
net sched actions: bug fix dumping actions directly didnt produce NLMSG_DONE

This refers to commands to direct action access as follows:

sudo tc actions add action drop index 12
sudo tc actions add action pipe index 10

And then dumping them like so:
sudo tc actions ls action gact

iproute2 worked because it depended on absence of TCA_ACT_TAB TLV
as end of message.
This fix has been tested with iproute2 and is backward compatible.

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c