From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 06/50] net/liquidio: liquidio VF PMD Driver registration Date: Thu, 23 Feb 2017 14:29:42 +0000 Message-ID: <2709e18a-110e-ec60-e3f5-c9ad0de36f68@intel.com> References: <1487669225-30091-1-git-send-email-shijith.thotton@caviumnetworks.com> <1487669225-30091-7-git-send-email-shijith.thotton@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Jerin Jacob , Derek Chickles , Venkat Koppula , Mallesham Jatharakonda To: Shijith Thotton , dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id C3AF9316B for ; Thu, 23 Feb 2017 15:29:45 +0100 (CET) In-Reply-To: <1487669225-30091-7-git-send-email-shijith.thotton@caviumnetworks.com> 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 2/21/2017 9:26 AM, Shijith Thotton wrote: > Register LiquidIO PMD (net_liovf) and define APIs to init and > uninit. > > Signed-off-by: Shijith Thotton > Signed-off-by: Jerin Jacob > Signed-off-by: Derek Chickles > Signed-off-by: Venkat Koppula > Signed-off-by: Mallesham Jatharakonda <...> > + > + mac_addr_size = ETHER_ADDR_LEN; > + > + eth_dev->data->mac_addrs = rte_zmalloc("lio", mac_addr_size, 0); "mac_addr_size" only used here, your call but it is possible to remove variable and use ETHER_ADDR_LEN here directly.