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)
Oct 4 2024, 10:09 AM
Unknown Object (File)
Oct 3 2024, 3:03 PM
Unknown Object (File)
Oct 1 2024, 5:51 PM
Unknown Object (File)
Oct 1 2024, 4:01 PM
Unknown Object (File)
Sep 29 2024, 11:24 PM
Unknown Object (File)
Sep 29 2024, 2:16 AM
Unknown Object (File)
Sep 27 2024, 4:09 AM
Unknown Object (File)
Sep 26 2024, 9:34 AM
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.