]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
igc: Change default duplex setting
authorKornel Dulęba <kd@FreeBSD.org>
Thu, 30 Jun 2022 11:57:58 +0000 (13:57 +0200)
committerKornel Dulęba <kd@FreeBSD.org>
Tue, 19 Jul 2022 09:36:48 +0000 (11:36 +0200)
commit94c272b4c6ccf74739dac5b7d93543daf65a1793
treed86b29b675feaf754532054f09dadee434b7adae
parent66687da66633c432744c2a687b253188eeed0ab1
igc: Change default duplex setting

During media selection through ifconfig one might not specify
the duplex setting through the mediaopt flag.
In that case the igc driver would default to full-duplex.
The problem with this approach is that e1000(em/igb) driver
defaults to half-duplex.
Because of that if one connects both NICs and sets media to
e.g. 100baseTX on both of them no link will be found.
Fix that by matching igc behaviour with what e1000 does.

Reviewed by: grehan
Approved by: mw(mentor)
Obtained from: Semihalf
Sponsored by: Stormshield
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35673

(cherry picked from commit 3b8d04f845b416d29a258658b8a48d1afb4a2e81)
sys/dev/igc/if_igc.c