HomeFreeBSD

igc: Change default duplex setting

Description

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

Details

Provenance
kdAuthored on Jun 30 2022, 11:57 AM
Reviewer
grehan
Differential Revision
D35673: igc: Change default duplex setting
Parents
rGab453714fc90: Add myself(kd) as src commiter and mw/emaste as my co-mentors
Branches
Unknown
Tags
Unknown