From mboxrd@z Thu Jan 1 00:00:00 1970 From: chetan L Subject: Re: [RFC PATCH 01/14] packet: introduce AF_PACKET V4 userspace API Date: Thu, 16 Nov 2017 11:32:55 -0800 Message-ID: References: <20171031124145.9667-1-bjorn.topel@gmail.com> <20171031124145.9667-2-bjorn.topel@gmail.com> <20171116.104407.141002935068271606.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Karlsson, Magnus" , Alexander Duyck , Alexander Duyck , John Fastabend , Alexei Starovoitov , Jesper Dangaard Brouer , michael.lundkvist@ericsson.com, ravineet.singh@ericsson.com, Daniel Borkmann , netdev , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , jesse.brandeburg@intel.com, anjali.singhai@intel.com, rami.rosen@intel.com, jeffrey.b.shaw@intel.com, ferruh.yigit@intel.com, qi.z.zhang@intel.com To: David Miller Return-path: Received: from mail-wm0-f44.google.com ([74.125.82.44]:43884 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936727AbdKPTc5 (ORCPT ); Thu, 16 Nov 2017 14:32:57 -0500 Received: by mail-wm0-f44.google.com with SMTP id x63so2375559wmf.2 for ; Thu, 16 Nov 2017 11:32:56 -0800 (PST) In-Reply-To: <20171116.104407.141002935068271606.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Nov 15, 2017 at 5:44 PM, David Miller wrote: > From: chet l > Date: Wed, 15 Nov 2017 14:34:32 -0800 > >> I have not reviewed the entire patchset but I think if we could add a >> version_hdr and then unionize the fields, it might be easier to add >> SVM support without having to spin v5. I could be wrong though. > > Please, NO VERSION FIELDS! > > Design things properly from the start rather than using a crutch of > being able to "adjust things later". Agreed. If this step in tpkt_v4 is able to follow what req1/2/3 did as part of the setsockopt(..) API then it should be ok. If its a different API then it will be difficult for the follow-on version(s) to make seamless changes. Look at tpacket_req3 for example. Since there was no hdr, I had no option but to align the fields with tpacket_req/req2 during the setup. I won't have access to a SMMUv3 capable ARM platform anytime soon. So I can't actually test/write anything as of now. Chetan