From: Alexei Starovoitov Subject: Re: [RFC PATCH 00/14] Introducing AF_PACKET V4 support Date: Wed, 15 Nov 2017 18:55:59 -0800 Message-ID: References: <20171031124145.9667-1-bjorn.topel@gmail.com> <2ea8c29a-25bb-c632-9622-3a8b123ce32c@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Karlsson, Magnus" , "Duyck, Alexander H" , Alexander Duyck , Jesper Dangaard Brouer , , , Daniel Borkmann , Netdev , Tushar Dave , "Eric Dumazet" , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Brandeburg, Jesse" , "Singhai, Anjali" , "Rosen, Rami" , "Shaw, Jeffrey B" , "Yigit, Ferruh" , "Zhang, Qi Z" , John Fastabend Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:55836 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753877AbdKPC4f (ORCPT ); Wed, 15 Nov 2017 21:56:35 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 11/14/17 4:20 AM, Willem de Bruijn wrote: >>>>> >>>>> * Limit the scope of the first patchset to Rx only, and introduce Tx >>>>> in a separate patchset. >>>> >>>> >>>> all sounds good to me except above bit. >>>> I don't remember people suggesting to split it this way. >>>> What's the value of it without tx? >>>> >>> >>> We definitely need Tx for our use-cases! I'll rephrase, so the >>> idea was making the initial patch set without Tx *driver* >>> specific code, e.g. use ndo_xdp_xmit/flush at a later point. >>> >>> So AF_ZEROCOPY, the socket parts, would have Tx support. >>> >>> @John Did I recall that correctly? >>> >> >> Yep, that is what I said. However, on second thought, without the >> driver tx half I guess tx will be significantly slower. > > The idea was that existing packet rings already send without > copying, so the benefit from device driver changes is not obvious. > > I would leave them out for now and evaluate before possibly > sending a separate patchset. are you suggesting to use new af_zerocopy for rx and old af_packet for tx ? imo that's too cumbersome to use. New interface has to be symmetrical from the start.