diff options
author | Ionut-robert Aron <ionut-robert.aron@nxp.com> | 2020-09-25 17:44:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-25 17:10:27 -0700 |
commit | 5e29c16f3a327fb0f4e887a73588ae12e5e8b069 (patch) | |
tree | 8a4cf47435025b1071554000f94e91b44d6bafb5 /drivers/net/ethernet/freescale/dpaa2/dpni.h | |
parent | 4c33a5bd063f9fdbced5fd1ceb7814e5f64f6a7b (diff) | |
download | lwn-5e29c16f3a327fb0f4e887a73588ae12e5e8b069.tar.gz lwn-5e29c16f3a327fb0f4e887a73588ae12e5e8b069.zip |
dpaa2-eth: install a single steering rule when SHARED_FS is enabled
When SHARED_FS is enabled on a DPNI object the flow steering tables are
shared between all the traffic classes. Modify the driver so that we
only add a new flow steering entry on the TC#0 when this new option is
enabled.
Signed-off-by: Ionut-robert Aron <ionut-robert.aron@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpni.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpni.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpni.h b/drivers/net/ethernet/freescale/dpaa2/dpni.h index 74456a37a997..e7b9e195b534 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpni.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpni.h @@ -75,6 +75,10 @@ struct fsl_mc_io; * Disables the flow steering table. */ #define DPNI_OPT_NO_FS 0x000020 +/** + * Flow steering table is shared between all traffic classes + */ +#define DPNI_OPT_SHARED_FS 0x001000 int dpni_open(struct fsl_mc_io *mc_io, u32 cmd_flags, |