OpenQNX :: The QNX Community Portal

Dec 01, 2008 - 06:41 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 21 unlogged users and 3 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Q
Post subject: Call next ion->reg_tx_done() before tx_done() callback ?  PostPosted: Oct 26, 2007 - 11:16 AM
Guest





I'm writing net filter (QNX 6.3.2) and (I hope) this is my lasy question:

Should I call ion->reg_tx_done() always before ion->tx_down()
or
should I call ion->reg_tx_done() just befor _first_ ion->tx_down()
and than call ion->tx_down() without preceding ion->reg_tx_done()
right up to tx_done() callback, and after that tx_done()
call ion->reg_tx_done() (of course before ion->tx_down())
?
 
   
Reply with quote Back to top
seanb
Post subject: Re: Call next ion->reg_tx_done() before tx_done() callback ?  PostPosted: Oct 26, 2007 - 03:09 PM
QNX Master


Joined: Jul 28, 2006
Posts: 74

Q <no@spam.pl> wrote:
Quote:
I'm writing net filter (QNX 6.3.2) and (I hope) this is my lasy question:

Should I call ion->reg_tx_done() always before ion->tx_down()

Yes.

Quote:
or
should I call ion->reg_tx_done() just befor _first_ ion->tx_down()
and than call ion->tx_down() without preceding ion->reg_tx_done()
right up to tx_done() callback, and after that tx_done()
call ion->reg_tx_done() (of course before ion->tx_down())
?
 
 View user's profile Send private message  
Reply with quote Back to top
seanb
Post subject: Re: Call next ion->reg_tx_done() before tx_done() callback ?  PostPosted: Oct 26, 2007 - 03:11 PM
QNX Master


Joined: Jul 28, 2006
Posts: 74

Q <no@spam.pl> wrote:
Quote:
I'm writing net filter (QNX 6.3.2) and (I hope) this is my lasy question:

Should I call ion->reg_tx_done() always before ion->tx_down()
or
should I call ion->reg_tx_done() just befor _first_ ion->tx_down()
and than call ion->tx_down() without preceding ion->reg_tx_done()
right up to tx_done() callback, and after that tx_done()
call ion->reg_tx_done() (of course before ion->tx_down())
?

re-reading this, if you're using the same packet over and
over this amounts to the same thing; however if you inject
new packets into the mix this latter opens the window where
they could be sent without reg_tx_done() so the former is
safer.

-seanb
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.