Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215164
b: refs/heads/master
c: cd2638a
h: refs/heads/master
v: v3
  • Loading branch information
Carolyn Wyborny authored and David S. Miller committed Oct 14, 2010
1 parent 30fd6af commit 4d1177f
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: 5d5b7c39cfdc459c079ed75b65a537f40ffb82da
refs/heads/master: cd2638a86c7b90e77ce623c09de2a26177f2a5c1
7 changes: 7 additions & 0 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6115,6 +6115,13 @@ int igb_set_spd_dplx(struct igb_adapter *adapter, u16 spddplx)

mac->autoneg = 0;

/* Fiber NIC's only allow 1000 Gbps Full duplex */
if ((adapter->hw.phy.media_type == e1000_media_type_internal_serdes) &&
spddplx != (SPEED_1000 + DUPLEX_FULL)) {
dev_err(&pdev->dev, "Unsupported Speed/Duplex configuration\n");
return -EINVAL;
}

switch (spddplx) {
case SPEED_10 + DUPLEX_HALF:
mac->forced_speed_duplex = ADVERTISE_10_HALF;
Expand Down

0 comments on commit 4d1177f

Please sign in to comment.