aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2012-10-27 02:26:17 +0000
committerDavid S. Miller <[email protected]>2012-10-31 14:00:15 -0400
commitf3335031b9452baebfe49b8b5e55d3fe0c4677d1 (patch)
treec73f4d2827d3b58b4866488a35b4b462e52713ba /tools/perf/scripts/python/net_dropmonitor.py
parent0f6ae8f14e7a6a068e9a98a0d3484ffa6bf2c6bb (diff)
net: filter: add vlan tag access
BPF filters lack ability to access skb->vlan_tci This patch adds two new ancillary accessors : SKF_AD_VLAN_TAG (44) mapped to vlan_tx_tag_get(skb) SKF_AD_VLAN_TAG_PRESENT (48) mapped to vlan_tx_tag_present(skb) This allows libpcap/tcpdump to use a kernel filter instead of having to fallback to accept all packets, then filter them in user space. Signed-off-by: Eric Dumazet <[email protected]> Suggested-by: Ani Sinha <[email protected]> Suggested-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions