Skip to content

net: Initial import of a global packet buffer#1638

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:packetbuf2
Oct 16, 2014
Merged

net: Initial import of a global packet buffer#1638
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:packetbuf2

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Sep 5, 2014

Cleaner alternative to #1129. Queue in #1640

This is basically a static malloc + sugar

@miri64 miri64 added this to the Release NEXT MAJOR milestone Sep 5, 2014
@miri64 miri64 mentioned this pull request Sep 5, 2014
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To do this we need a board dependent MCU MTU definition. Will be part of a later PR.

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.

Do you mean MTU?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes! I was a little bit tired there 😊

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.

You could turn that into a freshly squeezed issue right away.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Up to here, the tools do have nothing else to complain about =)

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Their is no "group" defined for this module in the doxygen - is that intentional?
It looks a little odd but I guess it also makes sense somehow..

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.

- * @detail  The rational here is to have at least space for 4 full-MTU IPv6
- *          packages (2 for incoming, 2 for outgoing; 2 * 2 * 1280 B = 5 KiB)
+ * @detail  The rational here is to have space for at least 4 full-MTU IPv6
+ *          packages (2 incoming, 2 outgoing; 2 * 2 * 1280 B = 5 KiB)

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Sep 6, 2014

Addressed @LudwigOrtmann's comments

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.

thread-safe

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Sep 10, 2014

@LudwigOrtmann do you find more spelling errors, or should I squash so you can ACK? 😉

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Sorry, didn't have time for a proper review yet. You may squash nonetheless.

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Sep 10, 2014

Squashed and "addressed" comment :)

@OlegHahm
Copy link
Copy Markdown
Member

Why is PKTBUF_SIZE only defined for MSP430?

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.

DEVELHELP?

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.

Is this indentation intensional?

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 13, 2014

Rebased and addressed @OlegHahm's comments

@OlegHahm OlegHahm added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Oct 13, 2014
@OlegHahm
Copy link
Copy Markdown
Member

pktbuf_tests.test_pktbuf_copy_data_len_too_long (/home/oleg/git/RIOT/tests/unittests/tests-pktbuf/tests-pktbuf.c 219) exp -105 was -12
.
pktbuf_tests.test_pktbuf_copy_data_len_too_long2 (/home/oleg/git/RIOT/tests/unittests/tests-pktbuf/tests-pktbuf.c 228) exp -105 was -12

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 13, 2014

Fixed

@OlegHahm
Copy link
Copy Markdown
Member

Unittests don't fit on MSB-430 platforms.

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 13, 2014

Even with

make tests-pktbuf test

?

Edit: yes it does, please test it this way, but the buildtests on Travis do not handle this case. I open an issue for that [since travis does not flash this is senseless].

@OlegHahm
Copy link
Copy Markdown
Member

Why do we build unittests for all boards if they don't get flashed anyway?

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 14, 2014

Because there are no boards connected to the Travis ;-)

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Coverage?

@OlegHahm
Copy link
Copy Markdown
Member

@authmillenon, that's my point - why are we building them?

@LudwigOrtmann: To cover what?

@LudwigKnuepfer
Copy link
Copy Markdown
Member

code

@LudwigKnuepfer
Copy link
Copy Markdown
Member

architectures

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 14, 2014

This discussion is OT. What about the review?

@OlegHahm
Copy link
Copy Markdown
Member

Sorry, you're right. ACK

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Oct 16, 2014

Squashed, rebased and waiting for tests to pass

miri64 added a commit that referenced this pull request Oct 16, 2014
net: Initial import of a global packet buffer
@miri64 miri64 merged commit 0812d47 into RIOT-OS:master Oct 16, 2014
@miri64 miri64 deleted the packetbuf2 branch October 16, 2014 12:07
@OlegHahm OlegHahm removed the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants