Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35307
b: refs/heads/master
c: 623a159
h: refs/heads/master
i:
  35305: 5b587ab
  35303: 3e11953
v: v3
  • Loading branch information
Francois Romieu authored and Francois Romieu committed Jul 26, 2006
1 parent 13294d2 commit c6b8374
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9dccf61112e6755f4e6f154c1794bab3c509bc71
refs/heads/master: 623a1593c84afb86b2f496a56fb4ec37f82b5c78
7 changes: 7 additions & 0 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ static int rtl8169_set_speed_xmii(struct net_device *dev,
auto_nego &= ~(PHY_Cap_10_Half | PHY_Cap_100_Half);
}

auto_nego |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM;

tp->phy_auto_nego_reg = auto_nego;
tp->phy_1000_ctrl_reg = giga_ctrl;

Expand Down Expand Up @@ -962,6 +964,11 @@ static void rtl8169_gset_xmii(struct net_device *dev, struct ethtool_cmd *cmd)
else if (status & _10bps)
cmd->speed = SPEED_10;

if (status & TxFlowCtrl)
cmd->advertising |= ADVERTISED_Asym_Pause;
if (status & RxFlowCtrl)
cmd->advertising |= ADVERTISED_Pause;

cmd->duplex = ((status & _1000bpsF) || (status & FullDup)) ?
DUPLEX_FULL : DUPLEX_HALF;
}
Expand Down

0 comments on commit c6b8374

Please sign in to comment.