Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-20 Thread Bruce Evans
On Tue, 20 Jun 2006, Pyun YongHyeon wrote: On Tue, Jun 20, 2006 at 05:11:18PM +1000, Bruce Evans wrote: > On Mon, 19 Jun 2006, Pyun YongHyeon wrote: > My sk_start() tries to fill the tx ring (to length 512) and then put > an interrupt mark only on the last fragment in a packet nearest to 32 >

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-20 Thread Pyun YongHyeon
On Tue, Jun 20, 2006 at 05:11:18PM +1000, Bruce Evans wrote: > On Mon, 19 Jun 2006, Pyun YongHyeon wrote: > > Please trim quotes. > > >On Mon, Jun 19, 2006 at 06:04:26PM +1000, Bruce Evans wrote: > > >> To max out the link without unmaxing CPU for other uses, you do have > >> to know whe

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-20 Thread Bruce Evans
On Mon, 19 Jun 2006, Pyun YongHyeon wrote: Please trim quotes. On Mon, Jun 19, 2006 at 06:04:26PM +1000, Bruce Evans wrote: > To max out the link without unmaxing CPU for other uses, you do have > to know when the tx approaches running out of packets. This is best > done using watermark stu

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-19 Thread John Polstra
On 18-Jun-2006 John-Mark Gurney wrote: > John Polstra wrote this message on Thu, Jun 15, 2006 at 09:18 -0700: >> in the HW but have not yet completed. When the completion interrupt >> comes in, the driver is supposed to check the if_snd queue for more >> mbufs and process them. Only when the tran

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-19 Thread Pyun YongHyeon
On Mon, Jun 19, 2006 at 06:04:26PM +1000, Bruce Evans wrote: > On Sun, 18 Jun 2006, John-Mark Gurney wrote: > > >John Polstra wrote this message on Thu, Jun 15, 2006 at 09:18 -0700: > >>in the HW but have not yet completed. When the completion interrupt > >>comes in, the driver is supposed t

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-19 Thread Bruce Evans
On Sun, 18 Jun 2006, John-Mark Gurney wrote: John Polstra wrote this message on Thu, Jun 15, 2006 at 09:18 -0700: in the HW but have not yet completed. When the completion interrupt comes in, the driver is supposed to check the if_snd queue for more mbufs and process them. Only when the trans

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-18 Thread John-Mark Gurney
John Polstra wrote this message on Thu, Jun 15, 2006 at 09:18 -0700: > in the HW but have not yet completed. When the completion interrupt > comes in, the driver is supposed to check the if_snd queue for more > mbufs and process them. Only when the transmit side of the HW goes > totally idle shou

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-15 Thread John Polstra
On 15-Jun-2006 Robert Watson wrote: > On Wed, 14 Jun 2006, John Polstra wrote: > >> Can somebody explain why there is both an IF_HANDOFF macro and an >> IFQ_HANDOFF macro? Except for a slight difference in parameters, they both >> seem to do roughly the same thing using completely distinct bloc

Re: IF_HANDOFF vs. IFQ_HANDOFF

2006-06-15 Thread Robert Watson
On Wed, 14 Jun 2006, John Polstra wrote: Can somebody explain why there is both an IF_HANDOFF macro and an IFQ_HANDOFF macro? Except for a slight difference in parameters, they both seem to do roughly the same thing using completely distinct blocks of code. Is IF_HANDOFF supposed to be used o

IF_HANDOFF vs. IFQ_HANDOFF

2006-06-14 Thread John Polstra
Can somebody explain why there is both an IF_HANDOFF macro and an IFQ_HANDOFF macro? Except for a slight difference in parameters, they both seem to do roughly the same thing using completely distinct blocks of code. Is IF_HANDOFF supposed to be used only when the target queue is not the interfac