[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <554A26A4.1000505@plumgrid.com>
Date: Wed, 06 May 2015 07:35:16 -0700
From: Alexei Starovoitov <ast@...mgrid.com>
To: Jesper Dangaard Brouer <brouer@...hat.com>,
Alexander Duyck <alexander.duyck@...il.com>
CC: netdev@...r.kernel.org, Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH 2/2] pktgen: introduce xmit_mode 'rx_inject'
On 5/6/15 1:44 AM, Jesper Dangaard Brouer wrote:
>>
>> I was just wondering. Since M_RX_INJECT is not compatible with
>> clone_skb couldn't the lines added above be moved down into the block
>> below so that you could avoid the additional conditional jump?
>
> Sure, that is possible. I'll let Alexei answer, as it is his code.
> (And repost if he also thinks so...)
I think this optimization makes sense. Cleans up the code a little too.
> We could call it "stack_inject" instead? ... to take out the confusing
> "rx" part of an "transmit/xmit" mode that "receives"
I would vote for: 'mode netif_receive' + 'mode start_xmit'
then if out-of-tree guys would want to upstream their stuff something
like 'mode parse_and_consume' can fit.
--
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