netdev
[Top] [All Lists]

Re: Pktgen receive hook in dev.c?

To: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Subject: Re: Pktgen receive hook in dev.c?
From: jamal <hadi@xxxxxxxxxx>
Date: Fri, 29 Apr 2005 20:14:18 -0400
Cc: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
In-reply-to: <4272C384.50901@xxxxxxxxxxxxxxx>
Organization: unknown
References: <4272C384.50901@xxxxxxxxxxxxxxx>
Reply-to: hadi@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 2005-29-04 at 16:30 -0700, Ben Greear wrote:
> I am curious if there is any interest in adding a hook in the 
> netif_receive_skb
> method to allow receiving (and consuming) pktgen packets.  This gives the 
> ability
> to get some good packet receive & latency stats using pktgen.
> 
> I asked this a year or so ago and was told no, but since then the netpoll and
> TC_NCLS hooks have been added.... so maybe hooks are OK again?
> 

Write an action. It should be trivial to consume pktgen. Infact if all
you wanted was to count, use the gact action.

cheers,
jamal


<Prev in Thread] Current Thread [Next in Thread>