Skip to content

ng_pktbuf: simplify API by extension#3458

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:ng_pktbuf/api/simplify-and-extends
Jul 29, 2015
Merged

ng_pktbuf: simplify API by extension#3458
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:ng_pktbuf/api/simplify-and-extends

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 20, 2015

This simplifies the ng_pktbuf API by adding a new function ng_pktbuf_mark() which takes over some functionality of ng_pktbuf_add(). size == 0 for ng_pktbuf_add() is now illegal.

TODO: Change implementation(s) and usage of these functions.

@miri64 miri64 added Area: network Area: Networking Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. NSTF labels Jul 20, 2015
@miri64 miri64 added this to the Release 2015.06 milestone Jul 20, 2015
@OlegHahm OlegHahm added the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Jul 20, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would vote for also simplifying this and copy data in any case, so we drop the checks if data is already in the buf...

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.

True.

@haukepetersen
Copy link
Copy Markdown
Contributor

+1 for the changes!

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 21, 2015

Addressed @haukepetersen's comments

@miri64 miri64 force-pushed the ng_pktbuf/api/simplify-and-extends branch from b9b6a67 to 50a7f9b Compare July 24, 2015 19:45
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 24, 2015

Replaced reset with init to be more versitile and adapted doc for changes.

@miri64 miri64 force-pushed the ng_pktbuf/api/simplify-and-extends branch from 069837b to bace359 Compare July 27, 2015 10:46
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 27, 2015

Squashed.

@miri64 miri64 removed the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Jul 27, 2015
@PeterKietzmann
Copy link
Copy Markdown
Member

Do we need to merge this before #3496 or can we just close it?

@PeterKietzmann
Copy link
Copy Markdown
Member

Anyway, I assume that @haukepetersen's "+1" was an ACK :-) ?

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 28, 2015

@PeterKietzmann we need #3496 to have working code. But when we merge #3496 this will be marked as merged, too. I'd prefer that over just closing it, because it would show a more precise history of what happened here than when we close it.

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 28, 2015

So my verdict is: leave this open, but merge #3496 ;-)

@PeterKietzmann
Copy link
Copy Markdown
Member

Fine. Honestly I just wanted to activate communication in the hope of a soonish merge

This simplifies the `ng_pktbuf` API by adding a new function
`ng_pktbuf_mark()` which takes over some functionality of
`ng_pktbuf_add()`. `size == 0` for `ng_pktbuf_add()` is now illegal.
@miri64 miri64 force-pushed the ng_pktbuf/api/simplify-and-extends branch from bace359 to 41b0a26 Compare July 28, 2015 22:48
@miri64 miri64 merged commit 41b0a26 into RIOT-OS:master Jul 29, 2015
@miri64 miri64 deleted the ng_pktbuf/api/simplify-and-extends branch July 29, 2015 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants