From: Ferruh Yigit Subject: Re: [PATCH v5 19/29] app/testpmd: use unicast promiscuous mode on i40e Date: Mon, 19 Dec 2016 11:05:29 +0000 Message-ID: References: <20161216143919.4909-1-ferruh.yigit@intel.com> <20161216190257.6921-1-ferruh.yigit@intel.com> <20161216190257.6921-20-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Jingjing Wu , Helin Zhang , Wenzhuo Lu To: Vincent JARDIN , dev@dpdk.org 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) In-Reply-To: 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 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.