diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2019-03-27 09:44:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-27 11:10:57 -0700 |
commit | 93c2589c92597fa4b3c36f6105219910888b6ddb (patch) | |
tree | eb422a45a07e61a12dc63e85ed5caeb49d595427 /drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h | |
parent | net: mvpp2: cls: use Lookup Type in classification engines (diff) | |
download | linux-dev-93c2589c92597fa4b3c36f6105219910888b6ddb.tar.xz linux-dev-93c2589c92597fa4b3c36f6105219910888b6ddb.zip |
net: mvpp2: cls: Rename MVPP2_N_FLOWS to MVPP2_N_PRS_FLOWS
The macro definition MVPP2_N_FLOWS is ambiguous because it really
represents the number of entries in the Header Parser that are used to
identify the classification flows.
Rename the macro to clearly state that we represent the number of flows
in the Header Parser.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h index 9ffbb4f4675d..22d7d9a587b0 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h @@ -169,6 +169,8 @@ enum mvpp2_cls_lu_type { /* LU Type defined for all engines, and specified in the flow table */ #define MVPP2_CLS_LU_TYPE_MASK 0x3f +#define MVPP2_N_FLOWS (MVPP2_FL_LAST - MVPP2_FL_START) + struct mvpp2_cls_flow { /* The L2-L4 traffic flow type */ int flow_type; @@ -183,7 +185,6 @@ struct mvpp2_cls_flow { struct mvpp2_prs_result_info prs_ri; }; -#define MVPP2_N_FLOWS 52 #define MVPP2_ENTRIES_PER_FLOW (MVPP2_MAX_PORTS + 1) #define MVPP2_FLOW_C2_ENTRY(id) ((((id) - MVPP2_FL_START) * \ |