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

[golan.c] Fix inline header size #1174

Merged
merged 1 commit into from
Mar 17, 2024
Merged

[golan.c] Fix inline header size #1174

merged 1 commit into from
Mar 17, 2024

Conversation

rabiamn
Copy link
Contributor

@rabiamn rabiamn commented Mar 17, 2024

Fixing the issue #1091
Fix Eth inline header size to 14 bytes instead of 18 bytes. because the eapol packet is 18 bytes and all the packet was inserted to the inline header, so it appears as empty packet and the driver cant handle it.

Rabia manaa
rabiam@nvidia.com

@mcb30
Copy link
Member

mcb30 commented Mar 17, 2024

That's great, thank you. Could you please update the commit to have your proper name and email address? (Alternatively, since it's such a small change, just let me know what name and email you want to appear and I'll update it)

@rabiamn
Copy link
Contributor Author

rabiamn commented Mar 17, 2024

That's great, thank you. Could you please update the commit to have your proper name and email address? (Alternatively, since it's such a small change, just let me know what name and email you want to appear and I'll update it)

Rabia Manaa
rabiam@nvidia.com

The driver does not correctly handle very short transmitted packets
such as EAPoL-Start where the entire DMA content lies within the
current send work queue entry inline header length of 18 bytes.

Fix by reducing the inline header length to the Ethernet frame header
length of 14 bytes.

Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
@mcb30 mcb30 merged commit c11734e into ipxe:master Mar 17, 2024
@mcb30
Copy link
Member

mcb30 commented Mar 17, 2024

Merged; thank you. I rewrote the commit message and adjusted the change to use ETH_HLEN so that it's clear where the magic number 14 came from.

I've been looking at this issue recently: it's good to have a vendor bugfix submitted!

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.

None yet

2 participants