#
bceec3d8 |
| 23-Nov-2024 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Try auto-negotiation for fixed 100 or 10 configuration
This is a retread of https://reviews.freebsd.org/D34449 which I think will fix the issue for the remote side not supporting autoneg. We
e1000: Try auto-negotiation for fixed 100 or 10 configuration
This is a retread of https://reviews.freebsd.org/D34449 which I think will fix the issue for the remote side not supporting autoneg. We now attempt an autoneg, and if that fails fall back to the current code that forces the link speed/duplex.
The original intent of this patch is to inform the remote switch of duplex settings when we (the client) are specifying a fixed 10 or 100 speed. Otherwise it may get the duplex setting wrong.
The tricky case is when the remote (switch) side is fixing its speed AND duplex while disabling autoneg and we (client) need to do the same, which still seems to be common enough at some ISPs.
Original commit message follows: Currently if an e1000 interface is set to a fixed media configuration, for gigabit, it will participate in auto-negotiation as required by IEEE 802.3-2018 Clause 37. However, if set to fixed media configuration for 100 or 10, it does NOT participate in auto-negotiation.
By my reading of Clauses 28 and 37, while auto-negotiation is optional for 100 and 10, it is not prohibited and is, in fact, "highly recommended".
This patch enables auto-negotiation for fixed 100 and 10 media configuration, in a similar manner to that already performed for 1000. I.e., the patch enables advertising of just the manually configured settings with the goal of allowing the remote end to match the manually configured settings if it has them available.
To be clear, this patch does NOT allow an em(4) interface that has been manually configured with specific media settings to respond to auto-negotiation by then configuring different parameters to those that were manually configured. The intent of this patch is to fully comply with the requirements of Clause 37, but for 100 and 10.
The need for this has arisen on an em(4) link where the other end is under a different administrative control and is set to full auto-negotiation. Due to the cable length GigE is not working well. It is desired to set the em(4) end to "media 100baseTX mediatype full-duplex" which does work when both ends are configured that way. Currently, because em(4) does not participate in autoneg for this setting, the remote defaults to half-duplex - i.e., there's a duplex mismatch and things don't work. With this patch, em(4) would inform the remote that it has only 100baseTX full, the remote would match that and it will work.
Tested by: Natalino Picone <natalino.picone@nozominetworks.com> Tested by: Franco Fichtner <franco@opnsense.org> Tested by: J.R. Oldroyd <fbsd@opal.com> (previous version) Sponsored by: Nozomi Networks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D47336
show more ...
|
#
ddfec1fb |
| 21-Sep-2024 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Update igb driver version to 2.5.28-fbsd
Bump to the current out of tree driver version since we only have some gratuitous changes.
MFC after: 1 week
|
Revision tags: release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
71625ec9 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
f7c32ed6 |
| 12-Nov-2021 |
betterentley <john.bentley@betterment.com> |
Fix 'take effect' spelling in menus and comments.
Signed-off-by: John Bentley <johnbentley.public@gmail.com> Pull Request: https://github.com/freebsd/freebsd-src/pull/559
|
#
e9c7c6f5 |
| 07-Nov-2021 |
Gordon Bergling <gbe@FreeBSD.org> |
e1000: Fix a typo in a source code comment
- s/overwritting/overwriting/
MFC after: 3 days
|
#
e05d9788 |
| 17-Sep-2021 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Consistently use FALLTHROUGH
Approved by: imp MFC after: 1 week
|
#
1bbdc25f |
| 17-Sep-2021 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Use C99 bool types
Approved by: imp MFC after: 1 week
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
089cdb39 |
| 07-Nov-2019 |
Andrzej Ostruszka <aostruszka@marvell.com> |
e1000: clean LTO warnings
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings.
Exemplary compiler
e1000: clean LTO warnings
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings.
Exemplary compiler warning to suppress (with LTO enabled): error: 'link' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (link) {
Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com>
Approved by: imp Obtained from: DPDK (46136031f19107f4e9b6b3a952cb7f57877a7f0f) MFC after: 1 week
show more ...
|
#
6c59e186 |
| 06-Jul-2020 |
Guinan Sun <guinanx.sun@intel.com> |
e1000: fix minor issues and improve code style
Fix typo in piece of code of NVM access for SPT. And cleans up the remaining instances in the shared code where it was not adhering to the Linux code s
e1000: fix minor issues and improve code style
Fix typo in piece of code of NVM access for SPT. And cleans up the remaining instances in the shared code where it was not adhering to the Linux code standard. Wrong description was found in the mentioned file, so fix them. Remove shadowing variable declarations.
Relating to operands in bitwise operations having different sizes. Unreachable code since *clock_in_i2c_* always return success. Don't return unused s32 and don't check for constants.
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com> Signed-off-by: Robert Konklewski <robertx.konklewski@intel.com> Signed-off-by: Doug Dziggel <douglas.a.dziggel@intel.com> Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Approved by: imp Obtained from: DPDK (b8592c89c8fbc871d22313dcac0b86c89a7d5a62) MFC after: 1 week
show more ...
|
#
5b426b3e |
| 06-Jul-2020 |
Guinan Sun <guinanx.sun@intel.com> |
e1000: add function parameter descriptions
Add function parameter descriptions to address gcc 7 warnings.
Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Signed-off-by: Guinan Sun <guinanx.s
e1000: add function parameter descriptions
Add function parameter descriptions to address gcc 7 warnings.
Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Approved by: imp Obtained from: DPDK (1bf35d435c9764e83be76042fa6489dd127b6c40) MFC after: 1 week
show more ...
|
#
da24467c |
| 06-Jul-2020 |
Guinan Sun <guinanx.sun@intel.com> |
e1000: expose xMDIO methods
Move read and write xmdio methods to e1000_phy.
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> Reviewed-by: Wei Z
e1000: expose xMDIO methods
Move read and write xmdio methods to e1000_phy.
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Approved by: imp Obtained from: DPDK (b14d20f1b2bb0e6d95f19963c5d7f55374e0ead9) MFC after: 1 week
show more ...
|
#
702cac6c |
| 16-Sep-2021 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Update copyrights and readme
Copyrights in sync with "cid-gigabit.2020.06.05.tar.gz released by ND" (from DPDK).
README from the latest em-7.7.8 on intel.com
Approved by: imp MFC after: 1 w
e1000: Update copyrights and readme
Copyrights in sync with "cid-gigabit.2020.06.05.tar.gz released by ND" (from DPDK).
README from the latest em-7.7.8 on intel.com
Approved by: imp MFC after: 1 week
show more ...
|
#
a4378873 |
| 09-Sep-2021 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Revert Update intel shared code
This reverts commit fc7682b17f3738573099b8b03f5628dcc8148adb.
This will be done incrementally to help with bisecting an issue in later I21x devices (ich8lan).
e1000: Revert Update intel shared code
This reverts commit fc7682b17f3738573099b8b03f5628dcc8148adb.
This will be done incrementally to help with bisecting an issue in later I21x devices (ich8lan).
PR: 258153 Approved by: imp MFC after: 1 day
show more ...
|
#
fc7682b1 |
| 19-Aug-2021 |
Kevin Bowling <kbowling@FreeBSD.org> |
e1000: Update intel shared code
Sync the e1000 shared code with DPDK shared code "cid-gigabit.2020.06.05.tar.gz released by ND"
Primary focus was on client platforms (ich8lan). More work remains he
e1000: Update intel shared code
Sync the e1000 shared code with DPDK shared code "cid-gigabit.2020.06.05.tar.gz released by ND"
Primary focus was on client platforms (ich8lan). More work remains here but we need an Intel contact for client networking.
Reviewed by: grehan, Intel Networking (erj, earlier rev) Obtained from: DPDK <http://git.dpdk.org/dpdk/tree/drivers/net/e1000/base> MFC after: 1 week Sponsored by: me Differential Revision: https://reviews.freebsd.org/D31547
show more ...
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
a5b0fd9c |
| 12-Mar-2018 |
Toomas Soome <tsoome@FreeBSD.org> |
e1000g: this statement may fall through
The gcc 7 does check for switch statement fall through cases, and if legit, such complaint can besilenced by /* FALLTHROUGH */ comment. Unfortunately such com
e1000g: this statement may fall through
The gcc 7 does check for switch statement fall through cases, and if legit, such complaint can besilenced by /* FALLTHROUGH */ comment. Unfortunately such comment is quite limited, but will still notify the reader.
This patch is backport from illumos, see https://www.illumos.org/rb/r/941/
Reviewed by: eadler Differential Revision: https://reviews.freebsd.org/D14663
show more ...
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
7282444b |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
sys/dev: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier
sys/dev: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0 |
|
#
27067774 |
| 16-Aug-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r303250 through r304235.
|
#
532c3cde |
| 16-Aug-2016 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead @ r304232
|
#
e760e292 |
| 15-Aug-2016 |
Sean Bruno <sbruno@FreeBSD.org> |
e1000: Add support for Kaby Lake IDs
Fixup some errors when transitioning to/from low power states.
Submitted by: erj Reviewed by: Jeffery Piper (jeffrey.e.piper@intel.com) MFC after: 3 days Relno
e1000: Add support for Kaby Lake IDs
Fixup some errors when transitioning to/from low power states.
Submitted by: erj Reviewed by: Jeffery Piper (jeffrey.e.piper@intel.com) MFC after: 3 days Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D7478
show more ...
|
Revision tags: release/10.3.0 |
|
#
b655ec97 |
| 06-Mar-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
a36b180a |
| 05-Mar-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r296369 through r296409.
|
#
7bfed09e |
| 04-Mar-2016 |
Sean Bruno <sbruno@FreeBSD.org> |
The register read/write mphy functions have misleading whitespace around the locked check. This cleanup merely preserves the existing functionality while improving the ready check.
Submitted by: Jim
The register read/write mphy functions have misleading whitespace around the locked check. This cleanup merely preserves the existing functionality while improving the ready check.
Submitted by: Jim Thompson Reviewed by: gnn erj Obtained from: Netgate MFC after: 2 weeks Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D5448
show more ...
|
#
bbb51924 |
| 08-Feb-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
a49d8b6e |
| 06-Feb-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r294961 through r295350.
|