From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] net/enic: add private API to set ingress VLAN rewrite mode Date: Wed, 13 Mar 2019 18:32:56 +0000 Message-ID: <399e1eeb-3c3f-ac73-03e9-2e37b2d8ef52@intel.com> References: <20190305055659.3095-1-hyonkim@cisco.com> <20190305071134.21725-1-hyonkim@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, John Daley , Shahaf Shuler , Jerin Jacob , David Marchand , Maxime Coquelin , Konstantin Ananyev , Hemant Agrawal , Stephen Hemminger To: Hyong Youb Kim , Thomas Monjalon , Andrew Rybchenko , Qi Zhang Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 59CCD2BD3 for ; Wed, 13 Mar 2019 19:33:01 +0100 (CET) In-Reply-To: <20190305071134.21725-1-hyonkim@cisco.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 3/5/2019 7:11 AM, Hyong Youb Kim wrote: > The driver currently has a devarg to set the rewrite mode during > init. Some apps want to programatically set it after running > rte_eal_init() and finding that ports are VIC. Add a private function > to support such applications. It is not good idea to have PMD specific APIs (although we already have some). Specific to this case, as far as I can see it is to pass a config value and do the action related to it, what would you think having a generic key/value set/get API in ethdev for this? Similar to rawdev get_attr/set_attr [1]? My concern is it may turn into something like ioctl with many things pushed to it, and cause possible duplication ... [1] https://git.dpdk.org/dpdk/tree/lib/librte_rawdev/rte_rawdev.c?h=v19.02#n186