Skip to content
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

BoardInitGmac: Fix byte-swapped MAC address #68

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

rokuyama
Copy link

GMAC[01]MAC_ADDRESS0{LOW,HIGH} were written in MSB, but they should be in LSB.

See also the fix for NetBSD eqos(4) driver:
NetBSD/src@8c816b8

Tested for Quartz64. For other boards, compile-test only.

GMAC[01]_MAC_ADDRESS0_{LOW,HIGH} were written in MSB,
but they should be in LSB.

See also the fix for NetBSD eqos(4) driver:
NetBSD/src@8c816b8

Tested for Quartz64. For other boards, compile-test only.
@jaredmcneill
Copy link
Owner

Thanks for the patch! When generating a random address, we could set the locally administered bit and clear the multicast bit for both bytes 0 and 3, to maintain compatibility with kernels that expected the byte-swapped address. What do you think?

@rokuyama
Copy link
Author

rokuyama commented Oct 24, 2023 via email

@jaredmcneill jaredmcneill merged commit ac0ec5f into jaredmcneill:main Nov 3, 2023
1 check passed
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.

2 participants