[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55499996.2090308@plumgrid.com>
Date: Tue, 05 May 2015 21:33:26 -0700
From: Alexei Starovoitov <ast@...mgrid.com>
To: Jesper Dangaard Brouer <brouer@...hat.com>, netdev@...r.kernel.org
CC: Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH 2/2] pktgen: introduce xmit_mode 'rx_inject'
On 5/5/15 1:30 PM, Jesper Dangaard Brouer wrote:
>
> Introduce xmit_mode 'rx_inject' for pktgen which generates the packets
> using familiar pktgen commands, but feeds them into
> netif_receive_skb() instead of ndo_start_xmit().
...
> pgset "xmit_mode rx_inject"
I think 'xmit_mode rx_inject' would make native english speaker cringe,
since it's saying 'transmit mode is receive' ... but I don't mind :)
>
> Signed-off-by: Alexei Starovoitov <ast@...mgrid.com>
> Signed-off-by: Jesper Dangaard Brouer <brouer@...hat.com>
...
> @@ -251,13 +255,14 @@ struct pktgen_dev {
> * we will do a random selection from within the range.
> */
> __u32 flags;
> - int removal_mark; /* non-zero => the device is marked for
> - * removal by worker thread */
> -
> + int xmit_mode;
> int min_pkt_size;
> int max_pkt_size;
> int pkt_overhead; /* overhead for MPLS, VLANs, IPSEC etc */
> int nfrags;
> + int removal_mark; /* non-zero => the device is marked for
> + * removal by worker thread */
I'm not sure why you're moving removal_mark field.
Looks good. Thank you for doing this.
Ack. My SOB is already there :)
btw, these patches didn't reach my subscribed to netdev email yet...
something is stalling vger.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists