dpaa2-eth: Add ethtool support for flow classification
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 1 Oct 2018 10:44:58 +0000 (13:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2018 05:24:08 +0000 (22:24 -0700)
commitafb90dbb5f7813ead3324ddf056b8937f78c8bd2
treec623a6f765d3d0b1474ee7b1e32b4455b2e0ae02
parent4aaaf9b95abad9cfcd2ac9b07797bccdd4ec01c1
dpaa2-eth: Add ethtool support for flow classification

Add support for inserting and deleting Rx flow classification
rules through ethtool.

We support classification based on some header fields for
flow-types ether, ip4, tcp4, udp4 and sctp4.

Rx queues are core affine, so the action argument effectively
selects on which cpu the matching frame will be processed.
Discarding the frame is also supported.

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
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpni.c
drivers/net/ethernet/freescale/dpaa2/dpni.h