RIOT
RIOT copied to clipboard
sys/net/gnrc: Remove code duplication
Contribution description
While using simian (a tool that can detect code duplication) on RIOT-OS, I found two snippets of code that were good candidates for being factorized. This pull request does not change the behavior of gnrc.
Testing procedure
I compiled for the SAMD21-XPRO board the following examples: gnrc_minimal
, gnrc_networking
and gnrc_networking_mac
.
Issues/PRs references
None.
I compiled for the SAMD21-XPRO board the following examples:
gnrc_minimal
,gnrc_networking
andgnrc_networking_mac
.
Since I don't have the time to test it myself at the moment, to all testers: Only gnrc_networking_mac
uses the modules that are changed here and gnrc_lwmac
is only used when explicitly selected in the Makefile
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.
@jia200x what do you think of this PR?
I think it makes sense!
I think it makes sense!
I mean in the scope of DSME coming in and the MAC layers fixed here potentially going out soon ;-)
Ping! :> Where do we stand here?
The question still stands if those mac layers are still needed. We have DSME now, and lwmac
and gomach
are effectively unmaintained for years. I'd say: Let's rebase this one and merge, then deprecate lwmac
and gomach
.
Murdock results
:heavy_check_mark: PASSED
9056e14e74ff51aafec2257427f58d8d92c12ddb gnrc/gomach: Reduce code duplication
Success | Failures | Total | Runtime |
---|---|---|---|
10031 | 0 | 10031 | 09m:45s |