-
Notifications
You must be signed in to change notification settings - Fork 8.4k
drivers: ethernet: lan865x: fix seed for random backoff #100787
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
base: main
Are you sure you want to change the base?
drivers: ethernet: lan865x: fix seed for random backoff #100787
Conversation
To activate changes in mac address registers the top register has to be written Signed-off-by: Sandro Scherer <[email protected]>
|
lmajewski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the DS60001734C-page 38 point 6.4.2. MAC Transmit Block:
The back off time is based on a pseudo random binary sequence (PRBS) generator seeded from the least significant
32 bits of the MAC address as configured in the Specific Address Bottom 1 (MAC_SAB1) register.
The code as it is now writes the MAC address to LAN865x_MAC_SAT2 and LAN865x_MAC_SAB2 and updates the LAN865x_MAC_SAB1 for back off time generation.
(I'm asking as maybe the documentation is not precise)
What you want to do is to also activate the SAT/B1 register to hold the same mac address.
Am I correct?
Or what is your use case as you need this feature?
|
We have currently issues with collision detection. With only two nodes answering at the same time to a UDP multicast message we often do not get all the responses.
This statement in the datasheet on page 167 made us think that the activation of the register might be required to seed the random number generator. |
I'm just wondering, as the datasheet may be not precise enough. |
@lmajewski MAC Specific Address 1 Top register also has to be written to activate the back-off time configuration. As per the informations in the datasheet, ii) DS60001734F-page 167 point 11.2.5. MAC Specific Address 1 Bottom Register: The same statements mentioned by you and @sandro97git. |
|
@RamyaI73943 @sandro97git - Ok, so if I understood you correctly - to setup back off timer I do need to provide seed by setting |
@lmajewski Yes, You are right. |



To activate changes in mac address registers
the top register has to be written