From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8B1C5F610 for ; Mon, 19 Dec 2016 12:05:32 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP; 19 Dec 2016 03:05:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,373,1477983600"; d="scan'208";a="44647187" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by fmsmga006.fm.intel.com with ESMTP; 19 Dec 2016 03:05:30 -0800 To: Vincent JARDIN , dev@dpdk.org References: <20161216143919.4909-1-ferruh.yigit@intel.com> <20161216190257.6921-1-ferruh.yigit@intel.com> <20161216190257.6921-20-ferruh.yigit@intel.com> Cc: Jingjing Wu , Helin Zhang , Wenzhuo Lu From: Ferruh Yigit Message-ID: Date: Mon, 19 Dec 2016 11:05:29 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v5 19/29] app/testpmd: use unicast promiscuous mode on i40e X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 11:05:32 -0000 On 12/16/2016 8:28 PM, Vincent JARDIN wrote: > Le 16/12/2016 à 20:02, Ferruh Yigit a écrit : >> +#ifdef RTE_LIBRTE_I40E_PMD >> + ret = rte_pmd_i40e_set_vf_unicast_promisc(res->port_id, >> + res->vf_id, is_on); >> +#endif > > Why is an ifdef used here? It won't scale to all PMDs. As explained in previous e-mail, because these are PMD specific APIs. And it is not expected to scale to all PMDs. > > I means that you are missing an abstraction layer. > Yes, intentionally.