if_axge: remove AXGE_RX_MII_ERR from packet dropping criteria

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: <ASIX Elec. Corp. AX88179, rev 2.10/1.00, addr 3> on usbus0
	miibus0: <MII bus> on axge0
	rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> 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
This commit is contained in:
Tai-hwa Liang
2026-05-15 09:32:03 -05:00
parent 97edd37e62
commit 8011f6b0d8
+1 -1
View File
@@ -197,7 +197,7 @@ struct axge_frame_rxhdr {
#define AXGE_RXBYTES(x) (((x) & AXGE_RX_LEN_MASK) >> AXGE_RX_LEN_SHIFT)
#define AXGE_RX_ERR(x) \
((x) & (AXGE_RX_CRC_ERR | AXGE_RX_MII_ERR | AXGE_RX_DROP_PKT))
((x) & (AXGE_RX_CRC_ERR | AXGE_RX_DROP_PKT))
struct axge_softc {
struct usb_ether sc_ue;