Change hardcoded and incorrect number with correct define. This change is a
nop, since E1000_FDX_COLLISION_DISTANCE == E1000_HDX_COLLISION_DISTANCE. PR: kern/101000 Submitted by: Doug Havir
This commit is contained in:
parent
2c26fcf3a9
commit
974067b161
@ -2608,7 +2608,7 @@ em_initialize_transmit_unit(struct adapter *adapter)
|
||||
(E1000_COLLISION_THRESHOLD << E1000_CT_SHIFT);
|
||||
if (adapter->hw.mac_type >= em_82571)
|
||||
reg_tctl |= E1000_TCTL_MULR;
|
||||
if (adapter->link_duplex == 1) {
|
||||
if (adapter->link_duplex == FULL_DUPLEX) {
|
||||
reg_tctl |= E1000_FDX_COLLISION_DISTANCE << E1000_COLD_SHIFT;
|
||||
} else {
|
||||
reg_tctl |= E1000_HDX_COLLISION_DISTANCE << E1000_COLD_SHIFT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user