Page MenuHomeFreeBSD

if_dwc: Multicast and FCS fixes
ClosedPublic

Authored by jmcneill on May 31 2016, 12:27 AM.
Tags
Referenced Files
Unknown Object (File)
Mar 23 2024, 1:27 AM
Unknown Object (File)
Feb 16 2024, 6:32 AM
Unknown Object (File)
Feb 16 2024, 5:31 AM
Unknown Object (File)
Feb 8 2024, 8:45 AM
Unknown Object (File)
Nov 29 2023, 6:09 PM
Unknown Object (File)
Nov 29 2023, 7:21 AM
Unknown Object (File)
Nov 7 2023, 3:47 AM
Unknown Object (File)
Oct 26 2023, 5:31 PM
Subscribers

Details

Summary

Multicast filters are different between the two versions of dwc supported by the driver. This patch adds support for the second (DWC_GMAC_ALT_DESC mode) type of filters.

In addition, remove trailing FCS in receive path. dhclient complains:

ip length 334 disagrees with bytes received 338.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill retitled this revision from to if_dwc: Fix multicast in DWC_GMAC_ALT_DESC mode.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added reviewers: ARM, loos.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: ARM.
jmcneill retitled this revision from if_dwc: Fix multicast in DWC_GMAC_ALT_DESC mode to if_dwc: Multicast and FCS fixes.
jmcneill updated this object.

Remove trailing FCS in receive path. Fixes "ip length XXX disagrees with bytes received YYY" message from dhclient.

sys/dev/dwc/if_dwc.c
772 ↗(On Diff #17143)

I wanted to use M_HASFCS here but if_ethersubr.c passes the mbuf to BPF before stripping FCS (so dhclient still complained).

loos edited edge metadata.
This revision is now accepted and ready to land.Jun 4 2016, 3:09 PM
This revision was automatically updated to reflect the committed changes.