]> 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)
commitf1c3249500644a0af95e721324d2f22561917179
tree86534b9fb026dbe636febadb3269ed4fdcb97303
parent2474978bcd6b026a8d0bf230dfbad82d5c78aff5
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