mbox series

[net-next,0/4] dpaa2-eth: Add support for Rx flow classification

Message ID 1538390698-22073-1-git-send-email-ruxandra.radulescu@nxp.com
Headers show
Series dpaa2-eth: Add support for Rx flow classification | expand

Message

Ioana Radulescu Oct. 1, 2018, 10:44 a.m. UTC
The Management Complex (MC) firmware initially allowed the
configuration of a single key to be used both for Rx flow hashing
and flow classification. This prevented us from supporting
Rx flow classification independently of the hash key configuration.

Newer firmware versions expose separate commands for
configuring the two types of keys, so we can use them to
introduce Rx classification support. For frames that don't match
any classification rule, we fall back to statistical distribution
based on the current hash key.

The first patch in this set updates the Rx hashing code to use
the new firmware API for key config. Subsequent patches introduce
the firmware API for configuring the classification and actual
support for adding and deleting rules via ethtool.

Ioana Radulescu (4):
  dpaa2-eth: Use new API for Rx flow hashing
  dpaa2-eth: Rename structure
  dpaa2-eth: Configure Rx flow classification key
  dpaa2-eth: Add ethtool support for flow classification

 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c   | 214 ++++++++++---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h   |  29 +-
 .../net/ethernet/freescale/dpaa2/dpaa2-ethtool.c   | 331 +++++++++++++++++++++
 drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h    |  51 ++++
 drivers/net/ethernet/freescale/dpaa2/dpni.c        | 152 ++++++++++
 drivers/net/ethernet/freescale/dpaa2/dpni.h        |  97 ++++++
 6 files changed, 839 insertions(+), 35 deletions(-)

Comments

David Miller Oct. 3, 2018, 5:24 a.m. UTC | #1
From: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Date: Mon,  1 Oct 2018 13:44:54 +0300

> The Management Complex (MC) firmware initially allowed the
> configuration of a single key to be used both for Rx flow hashing
> and flow classification. This prevented us from supporting
> Rx flow classification independently of the hash key configuration.
> 
> Newer firmware versions expose separate commands for
> configuring the two types of keys, so we can use them to
> introduce Rx classification support. For frames that don't match
> any classification rule, we fall back to statistical distribution
> based on the current hash key.
> 
> The first patch in this set updates the Rx hashing code to use
> the new firmware API for key config. Subsequent patches introduce
> the firmware API for configuring the classification and actual
> support for adding and deleting rules via ethtool.

Series applied, thanks.