From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 52498235 for ; Fri, 30 Jun 2017 18:52:02 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jun 2017 09:51:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,287,1496127600"; d="scan'208";a="103233207" Received: from silpixa00372839.ir.intel.com (HELO silpixa00372839.ger.corp.intel.com) ([10.237.222.154]) by orsmga004.jf.intel.com with ESMTP; 30 Jun 2017 09:51:47 -0700 From: Ferruh Yigit To: dev@dpdk.org Cc: Ferruh Yigit , Stephen Hemminger , Bruce Richardson , Anatoly Burakov Date: Fri, 30 Jun 2017 17:51:23 +0100 Message-Id: <20170630165140.59594-4-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170630165140.59594-1-ferruh.yigit@intel.com> References: <20170621110651.75299-1-ferruh.yigit@intel.com> <20170630165140.59594-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH v9 03/20] ethtool: remove PMD specific API call 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: Fri, 30 Jun 2017 16:52:03 -0000 ethtool library has ixgbe specific API call, this needs to be removed when moved into lib folder, libraries shouldn't have PMD dependencies. Signed-off-by: Ferruh Yigit --- lib/librte_ethtool/rte_ethtool.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/lib/librte_ethtool/rte_ethtool.c b/lib/librte_ethtool/rte_ethtool.c index fabfcb2ba..2807a53ff 100644 --- a/lib/librte_ethtool/rte_ethtool.c +++ b/lib/librte_ethtool/rte_ethtool.c @@ -36,9 +36,6 @@ #include #include #include -#ifdef RTE_LIBRTE_IXGBE_PMD -#include -#endif #include "rte_ethtool.h" #define PKTPOOL_SIZE 512 @@ -361,26 +358,8 @@ rte_ethtool_net_vlan_rx_kill_vid(uint8_t port_id, uint16_t vid) int rte_ethtool_net_set_rx_mode(uint8_t port_id) { - uint16_t num_vfs; - struct rte_eth_dev_info dev_info; - uint16_t vf; - - memset(&dev_info, 0, sizeof(dev_info)); - rte_eth_dev_info_get(port_id, &dev_info); - num_vfs = dev_info.max_vfs; - - /* Set VF vf_rx_mode, VF unsupport status is discard */ - for (vf = 0; vf < num_vfs; vf++) { -#ifdef RTE_LIBRTE_IXGBE_PMD - rte_pmd_ixgbe_set_vf_rxmode(port_id, vf, - ETH_VMDQ_ACCEPT_UNTAG, 0); -#endif - } - /* Enable Rx vlan filter, VF unspport status is discard */ - rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_FILTER_MASK); - - return 0; + return rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_FILTER_MASK); } -- 2.13.0