Re: pktgen question

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steve Wise <swise@...>
Cc: Ben Greear <greearb@...>, <hadi@...>, Evgeniy Polyakov <johnpol@...>, <netdev@...>, Robert Olsson <Robert.Olsson@...>
Date: Monday, September 24, 2007 - 11:42 am

Hi,

Steve Wise writes:
 > I think pktgen should be cloning the skbs using skb_clone().  Then it 
 > will work for all devices, eh?

 pktgen assumes for "fastpath" sending exclusive ownership of
 the skb. And does a skb_get to avoid final skb destruction so 
 the same skb can be sent over and over. The idea is to avoid 
 memory allocation and keep things in cache to give very high
 packet rates with identical packets.
   I
 But if you need to alter the packet then the skb_get trick can't 
 be done. And you have to turn off "fastpath" with clone_skb 

 > Perf-wise, you could clone the skbs up front, then deliver them to the 
 > nic in a tight loop.  This would mitigate the added overhead introduced 
 > by calling skb_clone() in the loop doing transmits...

 Sure it's can be done. It could replay sequences etc but it will not
 beat the skb_get trick in sending identical packets. It has been
 proposed before but I've avoided such efforts to keep things relatively 
 small and simple. Really pktgen should be reworked to have s small 
 skim in kernel and move the rest of the stuff to userland.

 Cheers.
					--ro
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
pktgen question, Steve Wise, (Sun Sep 23, 12:12 pm)
Re: pktgen question, Evgeniy Polyakov, (Sun Sep 23, 1:28 pm)
Re: pktgen question, Steve Wise, (Sun Sep 23, 1:55 pm)
Re: pktgen question, jamal, (Sun Sep 23, 2:18 pm)
Re: pktgen question, Ben Greear, (Mon Sep 24, 2:30 am)
Re: pktgen question, Steve Wise, (Mon Sep 24, 9:54 am)
Re: pktgen question, David Miller, (Mon Sep 24, 1:40 pm)
Re: pktgen question, Robert Olsson, (Mon Sep 24, 11:42 am)
Re: pktgen question, Ben Greear, (Mon Sep 24, 10:39 am)
Re: pktgen question, Steve Wise, (Mon Sep 24, 11:00 am)
Re: pktgen question, Ben Greear, (Mon Sep 24, 11:37 am)
Re: pktgen question, Rick Jones, (Mon Sep 24, 2:02 pm)
Re: pktgen question, Ben Greear, (Mon Sep 24, 2:22 pm)
Re: pktgen question, Steve Wise, (Mon Oct 8, 5:43 pm)
Re: pktgen question, Ben Greear, (Mon Oct 8, 5:57 pm)
Re: pktgen question, David Miller, (Mon Oct 8, 6:22 pm)
Re: pktgen question, Steve Wise, (Mon Oct 8, 6:46 pm)
Re: pktgen question, David Miller, (Mon Oct 8, 6:54 pm)