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:
Gleb Smirnoff 2006-08-14 09:52:35 +00:00
parent 2c26fcf3a9
commit 974067b161

View File

@ -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;