Skip navigation.
Home
The QNX Community Portal

View topic - Call next ion->reg_tx_done() before tx_done() callback ?

Call next ion->reg_tx_done() before tx_done() callback ?

Read-only archive of qnx.ddk (Writing device drivers for scanners, video card, optical mouse, etc) at inn.qnx.com

Call next ion->reg_tx_done() before tx_done() callback ?

Postby Q » Fri Oct 26, 2007 11:16 am

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())
?
Q
 

Re: Call next ion->reg_tx_done() before tx_done() callback ?

Postby seanb » Fri Oct 26, 2007 3:09 pm

Q <no@spam.pl> wrote:
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.

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())
?
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm

Re: Call next ion->reg_tx_done() before tx_done() callback ?

Postby seanb » Fri Oct 26, 2007 3:11 pm

Q <no@spam.pl> wrote:
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
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm


Return to qnx.ddk

Who is online

Users browsing this forum: No registered users and 3 guests