summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_cls.h
diff options
context:
space:
mode:
authorHadar Hen Zion2016-08-17 12:36:12 +0200
committerDavid S. Miller2016-08-19 08:13:13 +0200
commit339ba878cfb01b68de3d281ba33fd5e4c9f76546 (patch)
treee158fd88a93614cb45373b75ac444eda6bbfa9e9 /include/uapi/linux/pkt_cls.h
parentflow_dissector: Get vlan priority in addition to vlan id (diff)
downloadkernel-qcow2-linux-339ba878cfb01b68de3d281ba33fd5e4c9f76546.tar.gz
kernel-qcow2-linux-339ba878cfb01b68de3d281ba33fd5e4c9f76546.tar.xz
kernel-qcow2-linux-339ba878cfb01b68de3d281ba33fd5e4c9f76546.zip
net_sched: flower: Avoid dissection of unmasked keys
The current flower implementation checks the mask range and set all the keys included in that range as "used_keys", even if a specific key in the range has a zero mask. This behavior can cause a false positive return value of dissector_uses_key function and unnecessary dissection in __skb_flow_dissect. This patch checks explicitly the mask of each key and "used_keys" will be set accordingly. Fixes: 77b9900ef53a ('tc: introduce Flower classifier') Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/pkt_cls.h')
0 files changed, 0 insertions, 0 deletions