diff options
author | Eric Dumazet <edumazet@google.com> | 2016-10-10 06:25:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-13 16:51:55 +0300 |
commit | fa59b27c9d6f84e91e333175a242afa4aee79283 (patch) | |
tree | 8f54c3d5629d9d0c630849678ec51aa1f101856d /sound/i2c | |
parent | 6d3a4c404648e415e7d96e285d723936d4df7ed0 (diff) | |
download | linux-fa59b27c9d6f84e91e333175a242afa4aee79283.tar.xz |
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 'sound/i2c')
0 files changed, 0 insertions, 0 deletions