summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cavium/thunder/q_struct.h
diff options
context:
space:
mode:
authorSunil Goutham <sgoutham@cavium.com>2016-11-24 12:18:02 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-26 04:21:17 +0300
commitd5b2d7a7184062c436f9a2b237e77bdb8e06a936 (patch)
tree15bb59d54a2694cc96e6542108609838e69b42a6 /drivers/net/ethernet/cavium/thunder/q_struct.h
parent1cc702591bae9f70b1aa2f9cb60241961bc1858a (diff)
downloadlinux-d5b2d7a7184062c436f9a2b237e77bdb8e06a936.tar.xz
net: thunderx: Configure RED and backpressure levels
This patch enables moving average calculation of Rx pkt's resources and configures RED and backpressure levels for both CQ and RBDR. Also initialize SQ's CQ_LIMIT properly. Signed-off-by: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/q_struct.h')
-rw-r--r--drivers/net/ethernet/cavium/thunder/q_struct.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/q_struct.h b/drivers/net/ethernet/cavium/thunder/q_struct.h
index 9e6d9876bfd0..f36347237a54 100644
--- a/drivers/net/ethernet/cavium/thunder/q_struct.h
+++ b/drivers/net/ethernet/cavium/thunder/q_struct.h
@@ -624,7 +624,9 @@ struct cq_cfg {
struct sq_cfg {
#if defined(__BIG_ENDIAN_BITFIELD)
- u64 reserved_20_63:44;
+ u64 reserved_32_63:32;
+ u64 cq_limit:8;
+ u64 reserved_20_23:4;
u64 ena:1;
u64 reserved_18_18:1;
u64 reset:1;
@@ -642,7 +644,9 @@ struct sq_cfg {
u64 reset:1;
u64 reserved_18_18:1;
u64 ena:1;
- u64 reserved_20_63:44;
+ u64 reserved_20_23:4;
+ u64 cq_limit:8;
+ u64 reserved_32_63:32;
#endif
};