]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commitedad8d260e259b0f8290deffef130034f0816b3e
tree86534b9fb026dbe636febadb3269ed4fdcb97303
parent48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84
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