Home | History | Annotate | Download | only in igc
History log of /src/sys/dev/pci/igc/if_igc.c
RevisionDateAuthorComments
 1.20  01-Jun-2025  rin igc(4): Merge and clean up igc_{tx_ctx,tso}_setup(), NFC
 1.19  01-Jun-2025  rin igc(4): TSOv[46]: Fix and register into capabilities

by syncing TX mbuf **after** L3/L4 headers are fixed up.

Will be pulled up into netbsd-10.
 1.18  07-May-2025  rin igc(4): igc_detach_counters: Correct sizes for kmem_free(9)

Now, igc(4) can be successfully detached by `drvctl -d`.
 1.17  24-Nov-2024  mlelstv MBUFTRACE
 1.16  05-Jul-2024  rin sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@
 1.15  29-Jun-2024  riastradh branches: 1.15.2;
if_stats(9): Add ifp argument to if_stat..._ref.

This will enable us to pass the ifp through to a dtrace probe inside.

No functional change intended in this change, but this is an API
change visible to modules so it shouldn't be pulled up.

PR kern/58377
 1.14  12-Jun-2024  rin igc: Add missing '\n' to a DPRINTF message
 1.13  21-Feb-2024  msaitoh igc(4): Print EtrackID.
 1.12  21-Feb-2024  msaitoh igc(4): Modify dmesg output of PHY and NVM info.

- Print PHY info first and then print NVM info.
- Remove debug output.
 1.11  08-Feb-2024  msaitoh igc: Add missing igc_check_for_link() call.

It's required to set the collision distance, configure flow control
from the negotiated result and set the LTR thresholds.
With this change, ifconfig igcN show the flow control status correctly.
 1.10  25-Jan-2024  msaitoh igc(4): Count iqdrops.

TODO: RQDPC should be visible via evcnt(9).
 1.9  20-Dec-2023  skrll Remove unnecssary #include
 1.8  02-Nov-2023  rin igc(4): Notify which of 64- or 32-bit DMA is used
 1.7  15-Oct-2023  oster Fix build of the MODULAR kernel, which explicitly excludes vlans.
 1.6  12-Oct-2023  rin igc(4): igc_init: Enable interrupt after everything is set up

Inspired by "ixgbe: Enable interrupt after setting IFF_RUNNING.":
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/ixgbe/ixgbe.c#rev1.337

Just for sure, callout_schedule(9) for igc_tick() is also postponed.
This is NFC for now, although.

XXX
Check other drivers.
 1.5  11-Oct-2023  riastradh igc(4): `nvm_ver & ...' has type int, so use %x, not %hx.

This happens even though nvm_ver is unsigned short (uint16_t),
because of the integer promotions.

Should fix clang build.

XXX pullup-10
 1.4  10-Oct-2023  msaitoh igc(4): Fix half duplex setting

From FreeBSD: 3b8d04f845b416d29a258658b8a48d1afb4a2e81
 1.3  04-Oct-2023  rin branches: 1.3.2;
igc(4): XXX: Temporally disable 64-bit DMA for aarch64

Until PR port-arm/57643 is properly addressed.
 1.2  04-Oct-2023  rin igc(4): Add support to Intel I225 / I226 series ethernet devices

Originally written by kevlo@o for OpenBSD, and ported by knakahara@,
msaitoh@, and myself.

The driver is *EXPERIMENTAL* at the moment, as some minor error
handling paths are not fully implemented.

Hardware VLAN tagging and TSO are not supported yet.

Although, we have never observed strange behaviors at least on amd64,
aarch64{,eb}, and evbppc (IBM405), except for PR port-arm/57643.

We will send pullup request to netbsd-10, after successful snapshot
build for -current.
 1.1  04-Oct-2023  rin branches: 1.1.1;
Initial revision
 1.1.1.1  04-Oct-2023  rin Import igc(4) from OpenBSD-current as of 2023-10-04
 1.3.2.7  01-Jun-2025  martin Pull up following revision(s) (requested by rin in ticket #1125):

sys/dev/pci/igc/if_igc.c: revision 1.19
sys/dev/pci/igc/if_igc.c: revision 1.20
share/man/man4/igc.4: revision 1.3

igc(4): TSOv[46]: Fix and register into capabilities
by syncing TX mbuf **after** L3/L4 headers are fixed up.

igc(4): Merge and clean up igc_{tx_ctx,tso}_setup(), NFC

igc.4: TSO is supported now. Bump date.
 1.3.2.6  09-May-2025  martin Pull up following revision(s) (requested by rin in ticket #1110):

sys/dev/pci/igc/if_igc.c: revision 1.18

igc(4): igc_detach_counters: Correct sizes for kmem_free(9)

Now, igc(4) can be successfully detached by `drvctl -d`.
 1.3.2.5  21-Jun-2024  martin Pull up following revision(s) (requested by rin in ticket #713):

sys/dev/pci/igc/if_igc.c: revision 1.14
sys/dev/pci/igc/if_igc.c: revision 1.7
sys/dev/pci/igc/if_igc.c: revision 1.8
sys/dev/pci/igc/if_igc.c: revision 1.9

Fix build of the MODULAR kernel, which explicitly excludes vlans.

igc(4): Notify which of 64- or 32-bit DMA is used

Remove unnecssary #include

igc: Add missing '\n' to a DPRINTF message
 1.3.2.4  23-Feb-2024  martin Pull up following revision(s) (requested by msaitoh in ticket #605):

sys/dev/pci/igc/if_igc.c: revision 1.12
sys/dev/pci/igc/if_igc.c: revision 1.13
sys/dev/pci/igc/igc_defines.h: revision 1.3
sys/dev/pci/igc/if_igc.c: revision 1.10
sys/dev/pci/igc/if_igc.c: revision 1.11

igc(4): Count iqdrops.

TODO: RQDPC should be visible via evcnt(9).

igc: Add missing igc_check_for_link() call.

It's required to set the collision distance, configure flow control
from the negotiated result and set the LTR thresholds.

With this change, ifconfig igcN show the flow control status correctly.

igc(4): Modify dmesg output of PHY and NVM info.
- Print PHY info first and then print NVM info.
- Remove debug output.

igc(4): Print EtrackID.
 1.3.2.3  14-Oct-2023  martin Pull up following revision(s) (requested by rin in ticket #410):

sys/dev/pci/igc/if_igc.c: revision 1.4
sys/dev/pci/igc/if_igc.c: revision 1.5
sys/dev/pci/igc/if_igc.c: revision 1.6

igc(4): Fix half duplex setting
From FreeBSD: 3b8d04f845b416d29a258658b8a48d1afb4a2e81

igc(4): `nvm_ver & ...' has type int, so use %x, not %hx.
This happens even though nvm_ver is unsigned short (uint16_t),
because of the integer promotions.
Should fix clang build.

igc(4): igc_init: Enable interrupt after everything is set up
Inspired by "ixgbe: Enable interrupt after setting IFF_RUNNING.":
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/ixgbe/ixgbe.c#rev1.337

Just for sure, callout_schedule(9) for igc_tick() is also postponed.
This is NFC for now, although.
 1.3.2.2  08-Oct-2023  martin Pull up following revision(s) (requested by rin in ticket #393):

sys/dev/pci/igc/if_igc.c up to 1.3
sys/dev/pci/igc/if_igc.h up to 1.2
sys/dev/pci/igc/igc_api.c up to 1.2
sys/dev/pci/igc/igc_api.h up to 1.2
sys/dev/pci/igc/igc_base.c up to 1.2
sys/dev/pci/igc/igc_base.h up to 1.2
sys/dev/pci/igc/igc_defines.h up to 1.2
sys/dev/pci/igc/igc_evcnt.h up to 1.1
sys/dev/pci/igc/igc_hw.h up to 1.2
sys/dev/pci/igc/igc_i225.c up to 1.2
sys/dev/pci/igc/igc_i225.h up to 1.2
sys/dev/pci/igc/igc_mac.c up to 1.2
sys/dev/pci/igc/igc_mac.h up to 1.2
sys/dev/pci/igc/igc_nvm.c up to 1.2
sys/dev/pci/igc/igc_nvm.h up to 1.2
sys/dev/pci/igc/igc_phy.c up to 1.2
sys/dev/pci/igc/igc_phy.h up to 1.2
sys/dev/pci/igc/igc_regs.h up to 1.2
distrib/sets/lists/man/mi: revision 1.1766
sys/arch/amd64/conf/GENERIC: revision 1.606
sys/arch/evbppc/conf/DHT: revision 1.5
sys/arch/evbarm/conf/GENERIC64: revision 1.213
share/man/man4/Makefile: revision 1.733
sys/arch/amd64/conf/ALL: revision 1.181
share/man/man4/igc.4: revision 1.1
sys/dev/pci/files.pci: revision 1.447
sys/arch/amd64/conf/XEN3_DOM0: revision 1.200
doc/CHANGES (apply patch)

Add igc(4) for Intel I225/I226 series ethernet devices
 1.3.2.1  04-Oct-2023  martin file if_igc.c was added on branch netbsd-10 on 2023-10-08 13:19:34 +0000
 1.15.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed