]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5286d4f7bf57b82a2f0e55fb22c5737bd9732221
tree277b5366d3418beaaef2905a91fd20177927531e
parent2458521b4c92bbae695441e5d9ef83f4c1f64f01
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