Skip to content

net: lan78xx: Allow for VLAN headers in timeout. #2487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Apr 4, 2018

The frame abort timeout being set by lan78xx_set_rx_max_frame_length
didn't account for any VLAN headers, resulting in very low
throughput if used with tagged VLANs.
Use VLAN_ETH_HLEN instead of ETH_HLEN to correct for this.

See #2458

Signed-off-by: Dave Stevenson [email protected]

The frame abort timeout being set by lan78xx_set_rx_max_frame_length
didn't account for any VLAN headers, resulting in very low
throughput if used with tagged VLANs.
Use VLAN_ETH_HLEN instead of ETH_HLEN to correct for this.

See raspberrypi#2458

Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Apr 4, 2018

I guess this probably ought to be merged upstream, or at least notified to Microchip.
Tested on a baby VLAN setup here. between a Pi3B+ and Pi3B. Without the patch iperf3 fails to transfer anything. With the patch I was getting 94Mbits/s.

@popcornmix
Copy link
Collaborator

Agreed this should go upstream.
But I'm ok with merging this now as it looks pretty sane and fixes a current issue.

@pelwell pelwell merged commit 55140f5 into raspberrypi:rpi-4.14.y Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants