From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 1/3] fm10k: enable FTAG based forwarding Date: Wed, 24 Feb 2016 17:37:45 +0100 Message-ID: <13026611.uCVrZtfrBT@xps13> References: <1454410216-13333-2-git-send-email-xiao.w.wang@intel.com> <1454557129-12825-2-git-send-email-xiao.w.wang@intel.com> <20160224154255.GA21808@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson , Wang Xiao W Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id AD0381396 for ; Wed, 24 Feb 2016 17:39:19 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id g62so38170497wme.0 for ; Wed, 24 Feb 2016 08:39:19 -0800 (PST) In-Reply-To: <20160224154255.GA21808@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-02-24 15:42, Bruce Richardson: > On Thu, Feb 04, 2016 at 11:38:47AM +0800, Wang Xiao W wrote: > > This patch enables reading sglort info into mbuf for RX and inserting > > an FTAG at the beginning of the packet for TX. The vlan_tci_outer field > > selected from rte_mbuf structure for sglort is not used in fm10k now. > > In FTAG based forwarding mode, the switch will forward packets according > > to glort info in FTAG rather than mac and vlan table. > > > > To activate this feature, user needs to turn ``CONFIG_RTE_LIBRTE_FM10K_FTAG_FWD`` > > to y in common_linuxapp or common_bsdapp. Currently this feature is supported > > only on PF, because FM10K_PFVTCTL register is read-only for VF. > > > > Signed-off-by: Wang Xiao W > > Any comments on this patch? > > My thoughts: is there a way in which this could be done without adding in a new > build time config option? Bruce, it's simpler to explain that build time options are forbidden to enable such options. Or the terrific kid's approach: one day, the Big Build-Option Eater will come and will eat every undecided features! ;)