Skip to content

sys: net: ng_pktdump: make pktdump have higher-than-main priority#2774

Merged
PeterKietzmann merged 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_pktdump_priority
Apr 9, 2015
Merged

sys: net: ng_pktdump: make pktdump have higher-than-main priority#2774
PeterKietzmann merged 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_pktdump_priority

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

Some of the simple shell implementations seem to be busy-waiting, causing pktdump to never print anything.
This commit fixes those cases by having pktdump a high-than-main priority.

@kaspar030 kaspar030 added Area: network Area: Networking Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer labels Apr 9, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This was on purpose: #2719 (comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Does a higher priority hurt? The lower one breaks all native shell tests that use getchar (I think), like the tapnet test you wrote.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can't tell right now if I experienced the same… In what manner does it break it? Does it starve out due to getchar?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like. Didn't debug further as raising the priority helps and main() sits in shell.

The effect is that the pktdump loop never starts, thus no packets get printed. I think it even stalled the nomac thread.

@miri64
Copy link
Copy Markdown
Member

miri64 commented Apr 9, 2015

ACK if travis is happy

@PeterKietzmann
Copy link
Copy Markdown
Member

He is, go!

PeterKietzmann added a commit that referenced this pull request Apr 9, 2015
sys: net: ng_pktdump: make pktdump have higher-than-main priority
@PeterKietzmann PeterKietzmann merged commit 7cbc667 into RIOT-OS:master Apr 9, 2015
@kaspar030 kaspar030 deleted the fix_pktdump_priority branch February 7, 2017 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants