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

net: Fix connectivity issues if only UDP or TCP is enabled #776

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

jukkar
Copy link
Member

@jukkar jukkar commented Jul 13, 2017

If either UDP or TCP is enabled but not both, then connectivity
fails. This was a side effect of commit 3604c39 ("net: udp:
Remove NET_UDP_HDR() macro and direct access to net_buf")

Jira: ZEP-2380

Signed-off-by: Jukka Rissanen [email protected]

If either UDP or TCP is enabled but not both, then connectivity
fails. This was a side effect of commit 3604c39 ("net: udp:
Remove NET_UDP_HDR() macro and direct access to net_buf")

Jira: ZEP-2380

Signed-off-by: Jukka Rissanen <[email protected]>
@jukkar jukkar added the net label Jul 13, 2017
@jukkar jukkar self-assigned this Jul 13, 2017
@jukkar jukkar requested review from mbolivar and pfalcon July 13, 2017 12:12
Copy link
Contributor

@mbolivar mbolivar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me; thanks for the fast response. I can confirm that the issue reported in ZEP-2380 no longer reproduces with this commit, regardless of if UDP is enabled or not.

Going forward, is there some way we can avoid a similar regression in the future? Is there enough CI infrastructure to e.g. run something like the echo client in shippable to verify basic connectivity is maintained?

@mbolivar
Copy link
Contributor

Ah, does this also mean that CONFIG_NET_UDP can be set to n again in samples/net/mqtt_publisher? That was another change in 3604c39 which seemed related to this issue.

@pfalcon
Copy link
Contributor

pfalcon commented Jul 13, 2017

Is there enough CI infrastructure to e.g. run something like the echo client in shippable

See #752, where I complain that since beginning of the week, I hit 4 issues, cause by 3 recent patches merged.

I think there's not enough infrastructure. Shippable just runs sanitycheck. Any networking app simply won't start in qemu unless net_tools daemons are running. Even if we make Shippable run the daemons, those tests will fail when run via sanitycheck in developers' machine. Somebody brave should come up with a solution to this, or propose a completely different way. But there're issues and blockers on each way, so all matter is in impasse ;-).

@jukkar jukkar merged commit 7474553 into zephyrproject-rtos:master Jul 14, 2017
@jukkar jukkar deleted the zep-2380-tcp-broken branch October 13, 2017 09:21
nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
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