diff options
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/sge_defs.h | 4 | ||||
-rw-r--r-- | drivers/net/cxgb3/t3_hw.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/sge_defs.h b/drivers/net/cxgb3/sge_defs.h index 514869e26a76..29b6c800b238 100644 --- a/drivers/net/cxgb3/sge_defs.h +++ b/drivers/net/cxgb3/sge_defs.h | |||
@@ -106,6 +106,10 @@ | |||
106 | #define V_CQ_GEN(x) ((x) << S_CQ_GEN) | 106 | #define V_CQ_GEN(x) ((x) << S_CQ_GEN) |
107 | #define F_CQ_GEN V_CQ_GEN(1U) | 107 | #define F_CQ_GEN V_CQ_GEN(1U) |
108 | 108 | ||
109 | #define S_CQ_ERR 30 | ||
110 | #define V_CQ_ERR(x) ((x) << S_CQ_ERR) | ||
111 | #define F_CQ_ERR V_CQ_ERR(1U) | ||
112 | |||
109 | #define S_CQ_OVERFLOW_MODE 31 | 113 | #define S_CQ_OVERFLOW_MODE 31 |
110 | #define V_CQ_OVERFLOW_MODE(x) ((x) << S_CQ_OVERFLOW_MODE) | 114 | #define V_CQ_OVERFLOW_MODE(x) ((x) << S_CQ_OVERFLOW_MODE) |
111 | #define F_CQ_OVERFLOW_MODE V_CQ_OVERFLOW_MODE(1U) | 115 | #define F_CQ_OVERFLOW_MODE V_CQ_OVERFLOW_MODE(1U) |
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index cdcfc132e37d..bff1d028a96b 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c | |||
@@ -2046,7 +2046,8 @@ int t3_sge_init_cqcntxt(struct adapter *adapter, unsigned int id, u64 base_addr, | |||
2046 | base_addr >>= 32; | 2046 | base_addr >>= 32; |
2047 | t3_write_reg(adapter, A_SG_CONTEXT_DATA2, | 2047 | t3_write_reg(adapter, A_SG_CONTEXT_DATA2, |
2048 | V_CQ_BASE_HI((u32) base_addr) | V_CQ_RSPQ(rspq) | | 2048 | V_CQ_BASE_HI((u32) base_addr) | V_CQ_RSPQ(rspq) | |
2049 | V_CQ_GEN(1) | V_CQ_OVERFLOW_MODE(ovfl_mode)); | 2049 | V_CQ_GEN(1) | V_CQ_OVERFLOW_MODE(ovfl_mode) | |
2050 | V_CQ_ERR(ovfl_mode)); | ||
2050 | t3_write_reg(adapter, A_SG_CONTEXT_DATA3, V_CQ_CREDITS(credits) | | 2051 | t3_write_reg(adapter, A_SG_CONTEXT_DATA3, V_CQ_CREDITS(credits) | |
2051 | V_CQ_CREDIT_THRES(credit_thres)); | 2052 | V_CQ_CREDIT_THRES(credit_thres)); |
2052 | return t3_sge_write_context(adapter, id, F_CQ); | 2053 | return t3_sge_write_context(adapter, id, F_CQ); |