Use global knob in the TP_PARA_REG3 register to disable congestion
drops if the user has chosen this behaviour. MFC after: 3 days
This commit is contained in:
parent
ae09eb7337
commit
86e02bf207
@ -527,10 +527,6 @@ t4_attach(device_t dev)
|
||||
t4_write_reg(sc, A_ULP_RX_TDDP_PSZ, V_HPZ0(0) | V_HPZ1(2) |
|
||||
V_HPZ2(4) | V_HPZ3(6));
|
||||
t4_set_reg_field(sc, A_ULP_RX_CTL, F_TDDPTAGTCB, F_TDDPTAGTCB);
|
||||
t4_set_reg_field(sc, A_TP_PARA_REG3, F_TUNNELCNGDROP0 |
|
||||
F_TUNNELCNGDROP1 | F_TUNNELCNGDROP2 | F_TUNNELCNGDROP3,
|
||||
F_TUNNELCNGDROP0 | F_TUNNELCNGDROP1 | F_TUNNELCNGDROP2 |
|
||||
F_TUNNELCNGDROP3);
|
||||
t4_set_reg_field(sc, A_TP_PARA_REG5,
|
||||
V_INDICATESIZE(M_INDICATESIZE) |
|
||||
F_REARMDDPOFFSET | F_RESETDDPOFFSET,
|
||||
|
@ -319,6 +319,12 @@ t4_sge_init(struct adapter *sc)
|
||||
t4_write_reg(sc, A_SGE_TIMER_VALUE_4_AND_5,
|
||||
V_TIMERVALUE4(us_to_core_ticks(sc, intr_timer[4])) |
|
||||
V_TIMERVALUE5(us_to_core_ticks(sc, intr_timer[5])));
|
||||
|
||||
if (cong_drop == 0) {
|
||||
t4_set_reg_field(sc, A_TP_PARA_REG3, F_TUNNELCNGDROP0 |
|
||||
F_TUNNELCNGDROP1 | F_TUNNELCNGDROP2 |
|
||||
F_TUNNELCNGDROP3, 0);
|
||||
}
|
||||
}
|
||||
|
||||
v = t4_read_reg(sc, A_SGE_CONTROL);
|
||||
|
Loading…
Reference in New Issue
Block a user