diff options
author | Eric Dumazet <edumazet@google.com> | 2016-10-09 20:25:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-13 09:51:55 -0400 |
commit | fa59b27c9d6f84e91e333175a242afa4aee79283 (patch) | |
tree | 8f54c3d5629d9d0c630849678ec51aa1f101856d /drivers/net/xen-netback | |
parent | 6d3a4c404648e415e7d96e285d723936d4df7ed0 (diff) |
net_sched: do not broadcast RTM_GETTFILTER result
There are two ways to get tc filters from kernel to user space.
1) Full dump (tc_dump_tfilter())
2) RTM_GETTFILTER to get one precise filter, reducing overhead.
The second operation is unfortunately broadcasting its result,
polluting "tc monitor" users.
This patch makes sure only the requester gets the result, using
netlink_unicast() instead of rtnetlink_send()
Jamal cooked an iproute2 patch to implement "tc filter get" operation,
but other user space libraries already use RTM_GETTFILTER when a single
filter is queried, instead of dumping all filters.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions