Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46564
b: refs/heads/master
c: 3b1d307
h: refs/heads/master
v: v3
  • Loading branch information
Divy Le Ray authored and Jeff Garzik committed Feb 5, 2007
1 parent 08b8c7c commit ee752a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5a44bcbf53f1af1f24e7fe0e5008eca85659220
refs/heads/master: 3b1d307b319cce3d013801b267965ac4c31ce58c
16 changes: 5 additions & 11 deletions trunk/drivers/net/cxgb3/t3_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,8 +2328,6 @@ static inline void tp_wr_indirect(struct adapter *adap, unsigned int addr,

static void tp_config(struct adapter *adap, const struct tp_params *p)
{
unsigned int v;

t3_write_reg(adap, A_TP_GLOBAL_CONFIG, F_TXPACINGENABLE | F_PATHMTU |
F_IPCHECKSUMOFFLOAD | F_UDPCHECKSUMOFFLOAD |
F_TCPCHECKSUMOFFLOAD | V_IPTTL(64));
Expand All @@ -2348,15 +2346,11 @@ static void tp_config(struct adapter *adap, const struct tp_params *p)
adap->params.rev > 0 ? F_ENABLEESND : F_T3A_ENABLEESND,
0);

v = t3_read_reg(adap, A_TP_PC_CONFIG);
v &= ~(F_ENABLEEPCMDAFULL | F_ENABLEOCSPIFULL);
t3_write_reg(adap, A_TP_PC_CONFIG, v | F_TXDEFERENABLE |
F_MODULATEUNIONMODE | F_HEARBEATDACK |
F_TXCONGESTIONMODE | F_RXCONGESTIONMODE);

v = t3_read_reg(adap, A_TP_PC_CONFIG2);
v &= ~F_CHDRAFULL;
t3_write_reg(adap, A_TP_PC_CONFIG2, v);
t3_set_reg_field(adap, A_TP_PC_CONFIG,
F_ENABLEEPCMDAFULL | F_ENABLEOCSPIFULL,
F_TXDEFERENABLE | F_HEARBEATDACK | F_TXCONGESTIONMODE |
F_RXCONGESTIONMODE);
t3_set_reg_field(adap, A_TP_PC_CONFIG2, F_CHDRAFULL, 0);

if (adap->params.rev > 0) {
tp_wr_indirect(adap, A_TP_EGRESS_CONFIG, F_REWRITEFORCETOSIZE);
Expand Down

0 comments on commit ee752a7

Please sign in to comment.