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

ethernet: eth_stellaris: data_len should not include header size #15241

Merged
merged 1 commit into from
Apr 11, 2019

Conversation

bravegnu
Copy link
Contributor

@bravegnu bravegnu commented Apr 7, 2019

As part of the ll_reserve refactoring effort, the packet length now
includes header size as well. Before the refactor, when the packet
length was written to the device, it did not include the header size,
which is the required value as per the LM3S6965 datasheet. After the
refactor the packet length includes the header size as well. The
header size has to subtracted from the packet length before writing to
the device.

Fixes #13943

Signed-off-by: Vijay Kumar B. vijaykumar@zilogic.com

@bravegnu
Copy link
Contributor Author

bravegnu commented Apr 7, 2019

Fixes issue with Stellaris Ethernet driver reported in #13943

@zephyrbot
Copy link
Collaborator

zephyrbot commented Apr 7, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

@jukkar jukkar added area: Ethernet area: Networking bug The issue is a bug, or the PR is fixing a bug labels Apr 7, 2019
drivers/ethernet/eth_stellaris.c Outdated Show resolved Hide resolved
drivers/ethernet/eth_stellaris.c Outdated Show resolved Hide resolved
@bravegnu bravegnu force-pushed the header-fix branch 2 times, most recently from 2454a78 to 07a1720 Compare April 7, 2019 16:48
As part of the ll_reserve refactoring effort, the packet length now
includes header size as well. Before the refactor, when the packet
length was written to the device, it did not include the header size,
which is the required value as per the LM3S6965 datasheet. After the
refactor the packet length includes the header size as well. The
header size has to subtracted from the packet length before writing to
the device. Fixes zephyrproject-rtos#13943.

Signed-off-by: Vijay Kumar B <vijaykumar@zilogic.com>
@nashif nashif added this to the v1.14.0 milestone Apr 8, 2019
@nashif nashif merged commit a69cb03 into zephyrproject-rtos:master Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Ethernet area: Networking bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net: QEMU Ethernet drivers are flaky (seemingly after "net_buf" refactor)
4 participants