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 DCB885A82 for ; Mon, 19 Jan 2015 12:59:27 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 19 Jan 2015 03:59:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,426,1418112000"; d="scan'208";a="639289590" Received: from unknown (HELO Sent) ([10.217.248.44]) by orsmga001.jf.intel.com with SMTP; 19 Jan 2015 03:59:24 -0800 Received: by Sent (sSMTP sendmail emulation); Mon, 19 Jan 2015 12:58:41 +0200 From: Tomasz Kulasek To: dev@dpdk.org Date: Mon, 19 Jan 2015 12:56:40 +0100 Message-Id: <1421668601-156-3-git-send-email-tomaszx.kulasek@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421668601-156-1-git-send-email-tomaszx.kulasek@intel.com> References: <1418375682-4703-3-git-send-email-michalx.k.jastrzebski@intel.com> <1421668601-156-1-git-send-email-tomaszx.kulasek@intel.com> Subject: [dpdk-dev] [PATCH v2 2/3] PMD Ring - Add MAC addr add/remove functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2015 11:59:28 -0000 Added MAC addr add/remove dummy callbacks. Signed-off-by: Tomasz Kulasek Signed-off-by: Pawel Wodkowski --- lib/librte_pmd_ring/rte_eth_ring.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/librte_pmd_ring/rte_eth_ring.c b/lib/librte_pmd_ring/rte_eth_ring.c index 929e71a..91e1964 100644 --- a/lib/librte_pmd_ring/rte_eth_ring.c +++ b/lib/librte_pmd_ring/rte_eth_ring.c @@ -213,6 +213,20 @@ eth_stats_reset(struct rte_eth_dev *dev) } static void +eth_mac_addr_remove(struct rte_eth_dev *dev __rte_unused, + uint32_t index __rte_unused) +{ +} + +static void +eth_mac_addr_add(struct rte_eth_dev *dev __rte_unused, + struct ether_addr *mac_addr __rte_unused, + uint32_t index __rte_unused, + uint32_t vmdq __rte_unused) +{ +} + +static void eth_queue_release(void *q __rte_unused) { ; } static int eth_link_update(struct rte_eth_dev *dev __rte_unused, @@ -232,6 +246,8 @@ static struct eth_dev_ops ops = { .link_update = eth_link_update, .stats_get = eth_stats_get, .stats_reset = eth_stats_reset, + .mac_addr_remove = eth_mac_addr_remove, + .mac_addr_add = eth_mac_addr_add, }; int -- 1.7.9.5