]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethtool: Allow matching on vlan DEI bit
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 12 Jun 2019 15:18:38 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2019 17:09:56 +0000 (10:09 -0700)
commit8118b0d8c6bf555a9e9a7c71b8e7c03667da200e
tree88b42f7e1714363c0e03017e76db8472981f3e28
parent77f5b72965820e38efbb25857524066fd0246d16
net: ethtool: Allow matching on vlan DEI bit

Using ethtool, users can specify a classification action matching on the
full vlan tag, which includes the DEI bit (also previously called CFI).

However, when converting the ethool_flow_spec to a flow_rule, we use
dissector keys to represent the matching patterns.

Since the vlan dissector key doesn't include the DEI bit, this
information was silently discarded when translating the ethtool
flow spec in to a flow_rule.

This commit adds the DEI bit into the vlan dissector key, and allows
propagating the information to the driver when parsing the ethtool flow
spec.

Fixes: 6693af4601e7 ("ethtool: add ethtool_rx_flow_spec to flow_rule structure translator")
Reported-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_dissector.h
net/core/ethtool.c