OSDN Git Service

net: ethtool: Allow parsing ETHER_FLOW types when using flow_rule
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 27 Jun 2019 08:52:26 +0000 (10:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 16:38:17 +0000 (09:38 -0700)
commit5b9469a285ebc85af29736a6d9fa995aea0dbf0b
tree277b5366d3418beaaef2905a91fd20177927531e
parent8b89d8dad5df177032e7e97ecfb18f01134e0e4b
net: ethtool: Allow parsing ETHER_FLOW types when using flow_rule

When parsing an ethtool_rx_flow_spec, users can specify an ethernet flow
which could contain matches based on the ethernet header, such as the
MAC address, the VLAN tag or the ethertype.

ETHER_FLOW uses the src and dst ethernet addresses, along with the
ethertype as keys. Matches based on the vlan tag are also possible, but
they are specified using the special FLOW_EXT flag.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Acked-by: Pablo Neira Ayuso <pablo@gnumonks.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c