aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/cxgb3/t3_hw.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index 22154003fea6..7112bacd8c58 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -2328,8 +2328,6 @@ static inline void tp_wr_indirect(struct adapter *adap, unsigned int addr,
2328 2328
2329static void tp_config(struct adapter *adap, const struct tp_params *p) 2329static void tp_config(struct adapter *adap, const struct tp_params *p)
2330{ 2330{
2331 unsigned int v;
2332
2333 t3_write_reg(adap, A_TP_GLOBAL_CONFIG, F_TXPACINGENABLE | F_PATHMTU | 2331 t3_write_reg(adap, A_TP_GLOBAL_CONFIG, F_TXPACINGENABLE | F_PATHMTU |
2334 F_IPCHECKSUMOFFLOAD | F_UDPCHECKSUMOFFLOAD | 2332 F_IPCHECKSUMOFFLOAD | F_UDPCHECKSUMOFFLOAD |
2335 F_TCPCHECKSUMOFFLOAD | V_IPTTL(64)); 2333 F_TCPCHECKSUMOFFLOAD | V_IPTTL(64));
@@ -2348,15 +2346,11 @@ static void tp_config(struct adapter *adap, const struct tp_params *p)
2348 adap->params.rev > 0 ? F_ENABLEESND : F_T3A_ENABLEESND, 2346 adap->params.rev > 0 ? F_ENABLEESND : F_T3A_ENABLEESND,
2349 0); 2347 0);
2350 2348
2351 v = t3_read_reg(adap, A_TP_PC_CONFIG); 2349 t3_set_reg_field(adap, A_TP_PC_CONFIG,
2352 v &= ~(F_ENABLEEPCMDAFULL | F_ENABLEOCSPIFULL); 2350 F_ENABLEEPCMDAFULL | F_ENABLEOCSPIFULL,
2353 t3_write_reg(adap, A_TP_PC_CONFIG, v | F_TXDEFERENABLE | 2351 F_TXDEFERENABLE | F_HEARBEATDACK | F_TXCONGESTIONMODE |
2354 F_MODULATEUNIONMODE | F_HEARBEATDACK | 2352 F_RXCONGESTIONMODE);
2355 F_TXCONGESTIONMODE | F_RXCONGESTIONMODE); 2353 t3_set_reg_field(adap, A_TP_PC_CONFIG2, F_CHDRAFULL, 0);
2356
2357 v = t3_read_reg(adap, A_TP_PC_CONFIG2);
2358 v &= ~F_CHDRAFULL;
2359 t3_write_reg(adap, A_TP_PC_CONFIG2, v);
2360 2354
2361 if (adap->params.rev > 0) { 2355 if (adap->params.rev > 0) {
2362 tp_wr_indirect(adap, A_TP_EGRESS_CONFIG, F_REWRITEFORCETOSIZE); 2356 tp_wr_indirect(adap, A_TP_EGRESS_CONFIG, F_REWRITEFORCETOSIZE);