Skip to contentSkip to conversation

e1000 kick

DISCUSSION Scott Huang 3 participants 5 messages Oct 8, 2004 – Oct 24, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi folks,

Is there a way to force tx dma to start on e1000 after the I fill up the tx ring to a certain level?

thanks

-Scott

#1 lore raw
Quoted 2 lines · Scott Huang

Is there a way to force tx dma to start on e1000 after the I fill up the tx ring to a certain level?

Just delay the write of the Tx tail index (TDT). Writing to the Tx tail index signals hardware to start the DMA from Tx head index (TDH) to TDT. See code for

	E1000_WRITE_REG(&adapter->hw, TDT, i);

But don't delay too long...you'll trigger the tx_timeout reset.

-scott

#2 lore raw
In reply to Scott Huang

What are you trying to do?
I have some patches i wouldnt mind passing on for test purposes but it would depend on what the end goal is,

cheers,
jamal

Quoted 11 lines · Scott Huang

Hi folks,

Is there a way to force tx dma to start on e1000 after the I fill up the tx ring to a certain level?

thanks

-Scott

#3 lore raw

Hi Jamal,

I would like to DMA packets to/from pre-allocated fixed-sized buffer pools for a user space TCP/IP stack to transmit/receive packets. The Rx path is working well. I wanted to control when the card should DMA packets from the Tx pool.

thanks

-Scott

Quoted 23 lines · --- jamal

What are you trying to do?
I have some patches i wouldnt mind passing on for
test purposes
but it would depend on what the end goal is,

cheers,
jamal

Quoted 3 lines · Scott Huang

Hi folks,

Is there a way to force tx dma to start on e1000

after

Quoted 8 lines

the I fill up the tx ring to a certain level?

thanks

-Scott

#4 lore raw

Scott,
Sorry to bother you again. I am still trying to evaluate whether i should go and grab these patches from the unconnected machine. In other words, they may not be useful for you.
Is this a proprieatry stack, something you are researching. what? How do you pass the packets from user space straight to DMA?

cheers,
jamal

Quoted 41 lines · Scott Huang

Hi Jamal,

I would like to DMA packets to/from pre-allocated fixed-sized buffer pools for a user space TCP/IP stack to transmit/receive packets. The Rx path is working well. I wanted to control when the card should DMA packets from the Tx pool.

thanks

-Scott

Quoted 23 lines · --- jamal

What are you trying to do?
I have some patches i wouldnt mind passing on for
test purposes
but it would depend on what the end goal is,

cheers,
jamal

Quoted 3 lines · Scott Huang

Hi folks,

Is there a way to force tx dma to start on e1000

after

Quoted 8 lines

the I fill up the tx ring to a certain level?

thanks

-Scott