<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/usb/net, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>if_axge: remove AXGE_RX_MII_ERR from packet dropping criteria</title>
<updated>2026-06-09T11:51:09+00:00</updated>
<author>
<name>Tai-hwa Liang</name>
<email>avatar@FreeBSD.org</email>
</author>
<published>2026-05-15T14:32:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8011f6b0d8ba2ee18a60f3bd719f950081a474b3'/>
<id>8011f6b0d8ba2ee18a60f3bd719f950081a474b3</id>
<content type='text'>
Packets received with the following configuration are associated with
AXGE_RX_MII_ERR, which looks legit since there's no AXGE_RX_CRC_ERR
or AXGE_RX_DROP_PKT attached:

	axge0: &lt;ASIX Elec. Corp. AX88179, rev 2.10/1.00, addr 3&gt; on usbus0
	miibus0: &lt;MII bus&gt; on axge0
	rgephy0: &lt;RTL8169S/8110S/8211 1000BASE-T media interface&gt; PHY 3 on miibus0
	rgephy0: OUI 0x00e04c, model 0x0011, rev. 5
	rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow

Without this, 'dhclient ue0' never gets valid lease as all the DHCP
replies are dropped by the driver.

This behaviour is align with the reference driver provided by the
vendor(ASIX_USB_NIC_Linux_Driver_Source_v3.5.0.tar.bz2).

MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Packets received with the following configuration are associated with
AXGE_RX_MII_ERR, which looks legit since there's no AXGE_RX_CRC_ERR
or AXGE_RX_DROP_PKT attached:

	axge0: &lt;ASIX Elec. Corp. AX88179, rev 2.10/1.00, addr 3&gt; on usbus0
	miibus0: &lt;MII bus&gt; on axge0
	rgephy0: &lt;RTL8169S/8110S/8211 1000BASE-T media interface&gt; PHY 3 on miibus0
	rgephy0: OUI 0x00e04c, model 0x0011, rev. 5
	rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow

Without this, 'dhclient ue0' never gets valid lease as all the DHCP
replies are dropped by the driver.

This behaviour is align with the reference driver provided by the
vendor(ASIX_USB_NIC_Linux_Driver_Source_v3.5.0.tar.bz2).

MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>smsc: Add missing newline to PHY timeout error printf</title>
<updated>2026-05-05T23:51:43+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2026-05-05T23:50:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0979bfb0ec804590a782ea33b787ec0989c1f1a4'/>
<id>0979bfb0ec804590a782ea33b787ec0989c1f1a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ure: add USB device IDs for additional RTL8152/RTL8153 adapters</title>
<updated>2026-04-21T14:14:09+00:00</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-04-21T14:14:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=76c082180719f42481289eb837e44b055efc003a'/>
<id>76c082180719f42481289eb837e44b055efc003a</id>
<content type='text'>
Add device IDs for several USB Ethernet adapters that use
RTL8152 and RTL8153 chips but are not yet recognized by ure(4).
This includes adapters from Cisco/Linksys, D-Link, Lenovo,
Microsoft Surface, Realtek, Samsung, and TP-Link.

All added devices use chip revisions already handled by
ure_read_chipver().

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55748
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add device IDs for several USB Ethernet adapters that use
RTL8152 and RTL8153 chips but are not yet recognized by ure(4).
This includes adapters from Cisco/Linksys, D-Link, Lenovo,
Microsoft Surface, Realtek, Samsung, and TP-Link.

All added devices use chip revisions already handled by
ure_read_chipver().

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55748
</pre>
</div>
</content>
</entry>
<entry>
<title>ofw: bool-ify OF_hasprop()</title>
<updated>2026-04-16T14:12:41+00:00</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2026-04-16T14:12:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b60cd486a652f0427e525b4482ac598be5460459'/>
<id>b60cd486a652f0427e525b4482ac598be5460459</id>
<content type='text'>
Adjust the function signature and the few callers that don't treat it
this way already.

This is style only; no functional change intended.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D56203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adjust the function signature and the few callers that don't treat it
this way already.

This is style only; no functional change intended.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D56203
</pre>
</div>
</content>
</entry>
<entry>
<title>ure(4): Fix spurious link flaps from MII</title>
<updated>2026-03-16T10:37:37+00:00</updated>
<author>
<name>Rafael Kitover</name>
<email>rkitover@gmail.com</email>
</author>
<published>2026-03-16T10:32:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=33e0568d30a687b3bbd3f00fd9b323ff031e39a2'/>
<id>33e0568d30a687b3bbd3f00fd9b323ff031e39a2</id>
<content type='text'>
A race condition in the MII layer causes spurious link down events.
In `statchg`, on link down, check if the PHY reports the link as
actually down using the BMSR register, if not, force the status of the
link to back up and restart TX. Do the same in a MII `linkchg` handler.
On actual link up, restart TX in case it went idle and down.

PR:		252165
Signed-off-by:	Rafael Kitover &lt;rkitover@gmail.com&gt;
Reviewed by:	pouria
Differential Revision: https://reviews.freebsd.org/D55682
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A race condition in the MII layer causes spurious link down events.
In `statchg`, on link down, check if the PHY reports the link as
actually down using the BMSR register, if not, force the status of the
link to back up and restart TX. Do the same in a MII `linkchg` handler.
On actual link up, restart TX in case it went idle and down.

PR:		252165
Signed-off-by:	Rafael Kitover &lt;rkitover@gmail.com&gt;
Reviewed by:	pouria
Differential Revision: https://reviews.freebsd.org/D55682
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: replace {0, 0} with {DEV,KOBJ}METHOD_END</title>
<updated>2026-02-25T05:59:34+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-02-21T06:14:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0fc6c3f731a2cca3120798806c330a3081c9424b'/>
<id>0fc6c3f731a2cca3120798806c330a3081c9424b</id>
<content type='text'>
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414
</pre>
</div>
</content>
</entry>
<entry>
<title>ure: improve receive checksum offloading</title>
<updated>2026-02-10T17:13:48+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2026-02-10T17:08:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=378577393e407fa2cd9677392da2287e37b4dd33'/>
<id>378577393e407fa2cd9677392da2287e37b4dd33</id>
<content type='text'>
Let the receive checksum offload for TCP/IPv6 and UDP/IPv6 be
controlled by ifconfig rxcsum6 and not by ifconfig rxcsum.
While there, make the code more compact and improve stlye.9
conformity.

Reviewed by:		Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55188
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let the receive checksum offload for TCP/IPv6 and UDP/IPv6 be
controlled by ifconfig rxcsum6 and not by ifconfig rxcsum.
While there, make the code more compact and improve stlye.9
conformity.

Reviewed by:		Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55188
</pre>
</div>
</content>
</entry>
<entry>
<title>ure: improve transmit checksum offloading</title>
<updated>2026-02-08T20:16:20+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2026-02-08T20:11:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7266121ce985a1a895441357c20b0e9d56b4e5f5'/>
<id>7266121ce985a1a895441357c20b0e9d56b4e5f5</id>
<content type='text'>
Apparently, the name of the variable l4off was correct. Providing the
offset to the TCP or UDP header allows the transmit checksum offload to
work for TCP/IPv4, TCP/IPv6, UDP/IPv4, and UDP/IPv6.

Reported by:		vishwin
Reviewed by:		vishwin
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55187
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apparently, the name of the variable l4off was correct. Providing the
offset to the TCP or UDP header allows the transmit checksum offload to
work for TCP/IPv4, TCP/IPv6, UDP/IPv4, and UDP/IPv6.

Reported by:		vishwin
Reviewed by:		vishwin
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55187
</pre>
</div>
</content>
</entry>
<entry>
<title>ure: improve checksum offloading</title>
<updated>2026-01-31T10:42:10+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2026-01-31T10:42:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7b6e84c9ac5668134ab2d075019ef0b827d90c84'/>
<id>7b6e84c9ac5668134ab2d075019ef0b827d90c84</id>
<content type='text'>
This patch fixes three issues:
(1) Initially, set the hwassist flags correctly when enabling
    transmit checksum offload for TCP/IPv6 and UDP/IPv6.
(2) Keep the hwassist flags in sync with the capabilities when
    changing txcsum.
(3) Keep the hwasssit flags in sync with the capabilities when
    changing txcsum6.
Without this patch, transmit checksum offloading for TCP/IPv6 and
UDP/IPv6 is never used and transmit checksum offloading for IPv4,
TCP/IPv4 and UDP/IPv4 is always used, even if disabled via
ifconfig ue? -txcsum.

Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D54974
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes three issues:
(1) Initially, set the hwassist flags correctly when enabling
    transmit checksum offload for TCP/IPv6 and UDP/IPv6.
(2) Keep the hwassist flags in sync with the capabilities when
    changing txcsum.
(3) Keep the hwasssit flags in sync with the capabilities when
    changing txcsum6.
Without this patch, transmit checksum offloading for TCP/IPv6 and
UDP/IPv6 is never used and transmit checksum offloading for IPv4,
TCP/IPv4 and UDP/IPv4 is always used, even if disabled via
ifconfig ue? -txcsum.

Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D54974
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: RealTek -&gt; Realtek</title>
<updated>2025-11-27T06:19:26+00:00</updated>
<author>
<name>ykla</name>
<email>yklaxds@gmail.com</email>
</author>
<published>2025-11-26T09:02:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8cbe0dd5097fbcbfbfbba50b016ec48352892ca7'/>
<id>8cbe0dd5097fbcbfbfbba50b016ec48352892ca7</id>
<content type='text'>
Realtek changed how it styled its name 25 or so years ago, but the old
style persisted in many places. These products use the new styling in
their datasheets.

Signed-off-by: ykla yklaxds@gmail.com
Sponsored by: Chinese FreeBSD Community
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1901
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Realtek changed how it styled its name 25 or so years ago, but the old
style persisted in many places. These products use the new styling in
their datasheets.

Signed-off-by: ykla yklaxds@gmail.com
Sponsored by: Chinese FreeBSD Community
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1901
</pre>
</div>
</content>
</entry>
</feed>
