]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Make Rx flow hash key configurable
authorIoana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>
Mon, 24 Sep 2018 15:36:21 +0000 (15:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2018 19:28:40 +0000 (12:28 -0700)
commite4a155ace4de159a00439b2d6c39e9929bb3ea3b
tree86534b9fb026dbe636febadb3269ed4fdcb97303
parentcc829a451c510fbd1a443bc54b4e09bb9cbb52f5
dpaa2-eth: Make Rx flow hash key configurable

Until now, the Rx flow hash key was a 5-tuple (IP src, IP dst,
IP nextproto, L4 src port, L4 dst port) fixed value that we
configured at probe.

Add support for configuring this hash key at runtime.
We support all standard header fields configurable through ethtool,
but cannot differentiate between flow types, so the same hash key
is applied regardless of protocol.

We also don't support the discard option.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c