Commit 0ad2f539 authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller

net: mvpp2: define the number of RSS entries per table in mvpp2.h

The size of the the RSS indirection tables should be defined in mvpp2.h,
so that we can use it in all files of the PPv2 driver.

This commit moves the define in mvpp2.h, and adds the missing #include
in mvpp2_cls.h.
Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 53a40025
...@@ -557,6 +557,9 @@ ...@@ -557,6 +557,9 @@
#define MVPP2_BIT_TO_WORD(bit) ((bit) / 32) #define MVPP2_BIT_TO_WORD(bit) ((bit) / 32)
#define MVPP2_BIT_IN_WORD(bit) ((bit) % 32) #define MVPP2_BIT_IN_WORD(bit) ((bit) % 32)
/* RSS constants */
#define MVPP22_RSS_TABLE_ENTRIES 32
/* IPv6 max L3 address size */ /* IPv6 max L3 address size */
#define MVPP2_MAX_L3_ADDR_SIZE 16 #define MVPP2_MAX_L3_ADDR_SIZE 16
......
...@@ -13,15 +13,14 @@ ...@@ -13,15 +13,14 @@
#ifndef _MVPP2_CLS_H_ #ifndef _MVPP2_CLS_H_
#define _MVPP2_CLS_H_ #define _MVPP2_CLS_H_
#include "mvpp2.h"
/* Classifier constants */ /* Classifier constants */
#define MVPP2_CLS_FLOWS_TBL_SIZE 512 #define MVPP2_CLS_FLOWS_TBL_SIZE 512
#define MVPP2_CLS_FLOWS_TBL_DATA_WORDS 3 #define MVPP2_CLS_FLOWS_TBL_DATA_WORDS 3
#define MVPP2_CLS_LKP_TBL_SIZE 64 #define MVPP2_CLS_LKP_TBL_SIZE 64
#define MVPP2_CLS_RX_QUEUES 256 #define MVPP2_CLS_RX_QUEUES 256
/* RSS constants */
#define MVPP22_RSS_TABLE_ENTRIES 32
struct mvpp2_cls_flow_entry { struct mvpp2_cls_flow_entry {
u32 index; u32 index;
u32 data[MVPP2_CLS_FLOWS_TBL_DATA_WORDS]; u32 data[MVPP2_CLS_FLOWS_TBL_DATA_WORDS];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment