From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [PATCH net-next v2 00/12] bnxt_en: Add XDP support. Date: Fri, 3 Feb 2017 16:33:48 -0800 Message-ID: <20170203163003.00d794dc@cakuba.netronome.com> References: <1486054540-366-1-git-send-email-michael.chan@broadcom.com> <20170203.154910.2213640966872850071.davem@davemloft.net> <20170203.165054.437855043325795801.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: michael.chan@broadcom.com, netdev@vger.kernel.org, Alexei Starovoitov To: David Miller Return-path: Received: from mx4.wp.pl ([212.77.101.12]:32339 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbdBDAeK (ORCPT ); Fri, 3 Feb 2017 19:34:10 -0500 In-Reply-To: <20170203.165054.437855043325795801.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 03 Feb 2017 16:50:54 -0500 (EST), David Miller wrote: > We don't set precedence by one driver saying "hey it's better to do > things this way, forget what all the other drivers are doing." Rather > we have a "discussion" about what the appropriate thing is to do and > convert all the drivers only after a decision has been made. Would making sure that if xdp_adjust_head() changes the starting offset (and length) of frame and the program returns XDP_PASS - the stack will see the changes made by xdp_adjust_head() fall under the same follow the precedent rule? That is what Martin did for mlx4 and mlx5, and what John did in virtio, but not what this patch set does (see my comment on patch 11). I should have double checked mlx4/mlx5 and made it clearer that there is a precedent here in my review comment...