From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m15-11.126.com (m15-11.126.com [220.181.15.11]) by dpdk.org (Postfix) with ESMTP id 5836C2E8B for ; Mon, 14 Mar 2016 03:30:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=4Mv47 mz0UEv5d8t+RGQrTTW2tvFdoG+bR6cReDeRS2g=; b=QwDd8Fm81cb2/naI4e3Z+ WhK8Vj+LSnFOi6+PTsXdplbROtZGcGaAamVA2CUNwF3J20026E+X1OPJNWD7z+hW wa1sRumamBtMRa05KN/RR53YuARCJSIBbVy7DEsPVpDfzEbukNCwjgFlfM4/ftzb 33qgXeA4ucsDDKrtJNHNAM= Received: from zhangwqh$126.com ( [161.253.120.35, 54.215.2.217, 10.144.1.72] ) by ajax-webmail-wmsvr11 (Coremail) ; Mon, 14 Mar 2016 10:30:22 +0800 (CST) X-Originating-IP: [161.253.120.35, 54.215.2.217, 10.144.1.72] Date: Mon, 14 Mar 2016 10:30:22 +0800 (CST) From: =?GBK?B?1cXOsA==?= To: "Dhana Eadala" Cc: bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, michael.qiu@intel.com, dev@dpdk.org X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20160223(81157.8522) Copyright (c) 2002-2016 www.mailtech.cn 126com In-Reply-To: <1457921808-14261-1-git-send-email-edreddy@gmail.com> References: <1457921808-14261-1-git-send-email-edreddy@gmail.com> X-CM-CTRLDATA: lG6KoGZvb3Rlcl9odG09MTk1OTk6NTY= MIME-Version: 1.0 Message-ID: <7c06f1b.3ed5.15372f5c4f6.Coremail.zhangwqh@126.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: C8qowAA3UA4_IuZWLHNKAA--.63860W X-CM-SenderInfo: x2kd0wxztkqiyswou0bp/1tbiigQs6VXnI-NgkwABsb X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] hash: fix memcmp function pointer in multi-process environment 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, 14 Mar 2016 02:30:31 -0000 SSBtZXQgYSBwcm9ibGVtIHdoaWNoIEkgdXNlZCB0aGUgRFBESyBoYXNoIHRhYmxlIGZvciBtdWx0 aSBwcm9jZXNzZXMuIE9uZSBzdGFydGVkIGFzIHByaW1hcnkgcHJvY2VzcyBhbmQgdGhlIG90aGVy IGFzIHNlY29uZGFyeSBwcm9jZXNzLgoKCkkgYmFzZWQgb24gdGhlIGNsaWVudCBhbmQgc2VydmVy IG11bHRpcHJvY2VzcyBleGFtcGxlLiBNeSBhaW0gaXMgdGhhdCBzZXJ2ZXIgY3JlYXRlcyBhIGhh c2ggdGFibGUsIHRoZW4gc2hhcmUgaXQgdG8gdGhlIGNsaWVudC4gVGhlIGNsaWVudCB3aWxsIHJl YWQgYW5kIHdyaXRlIHRoZSBoYXNoIHRhYmxlLCBhbmQgdGhlIHNlcnZlciB3aWxsIHJlYWQgdGhl IGhhc2ggdGFibGUuIEkgdXNlIHJ0ZV9jYWxsb2MgYWxsb2NhdGUgdGhlIHNwYWNlIGZvciBoYXNo IHRhYmxlLCB1c2UgbWVtem9uZSB0ZWxscyB0aGUgY2xpZW50IHRoZSBoYXNoIHRhYmxlIGFkZHJl c3MuCkJ1dCBvbmNlIEkgYWRkIGFuIGVudHJ5IGludG8gdGhlIGhhc2ggdGFibGUsIGNhbGxpbmcg Imxvb2t1cCIgZnVuY3Rpb24gd2lsbCBoYXZlIHRoZSBzZWdtZW50IGZhdWx0LiBCdXQgZm9yIHRo ZSBsb29rdXAgZnVuY3Rpb24sI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IGgtPmtl eV9sZW4pID09IDApIHsKPisjZWxzZQo+IAkJCWlmIChoLT5ydGVfaGFzaF9jbXBfZXEoa2V5LCBr LT5rZXksIGgtPmtleV9sZW4pID09IDApIHsKPisjZW5kaWYKPiAJCQkJcmVtb3ZlX2VudHJ5KGgs IGJrdCwgaSk7Cj4gCj4gCQkJCS8qCj5AQCAtOTgwLDcgKzEwMDQsMTEgQEAgbG9va3VwX3N0YWdl Myh1bnNpZ25lZCBpZHgsIGNvbnN0IHN0cnVjdCBydGVfaGFzaF9rZXkgKmtleV9zbG90LCBjb25z dCB2b2lkICogY28KPiAJdW5zaWduZWQgaGl0Owo+IAl1bnNpZ25lZCBrZXlfaWR4Owo+IAo+KyNp ZmRlZiBSVEVfTElCX01QX05PX0ZVTkNfUFRSCj4rCWhpdCA9ICFtZW1jbXAoa2V5X3Nsb3QtPmtl eSwga2V5c1tpZHhdLCBoLT5rZXlfbGVuKTsKPisjZWxzZQo+IAloaXQgPSAhaC0+cnRlX2hhc2hf Y21wX2VxKGtleV9zbG90LT5rZXksIGtleXNbaWR4XSwgaC0+a2V5X2xlbik7Cj4rI2VuZGlmCj4g CWlmIChkYXRhICE9IE5VTEwpCj4gCQlkYXRhW2lkeF0gPSBrZXlfc2xvdC0+cGRhdGE7Cj4gCj4t LSAKPjIuNS4wCj4K >From zhetao@shecgisg004.sh.intel.com Mon Mar 14 04:42:45 2016 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E6C0247CD for ; Mon, 14 Mar 2016 04:42:44 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 13 Mar 2016 20:42:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,334,1455004800"; d="scan'208";a="936338503" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 13 Mar 2016 20:42:43 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id u2E3gf4i032521; Mon, 14 Mar 2016 11:42:41 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u2E3gcKD024035; Mon, 14 Mar 2016 11:42:40 +0800 Received: (from zhetao@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u2E3gcta024031; Mon, 14 Mar 2016 11:42:38 +0800 From: Zhe Tao To: dev@dpdk.org Cc: zhe.tao@intel.com, jingjing.wu@intel.com Date: Mon, 14 Mar 2016 11:42:36 +0800 Message-Id: <1457926956-23910-1-git-send-email-zhe.tao@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1457426981-22571-1-git-send-email-zhe.tao@intel.com> References: <1457426981-22571-1-git-send-email-zhe.tao@intel.com> Subject: [dpdk-dev] [PATCH v3] ixgbe: fix ixgbevf RX/TX function assignment 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, 14 Mar 2016 03:42:45 -0000 For the secondary process of DPDK to initialize ixgbevf, it will always use the simple RX function or LRO RX function, and this behavior is not the same RX/TX function selection logic as it is for the primary process, so use the ixgbe_set_tx_function and ixgbe_set_rx_function to select the RX/TX function when secondary process call the init function for eth dev. Fixes: 46bc9d75 (ixgbe: fix multi-process support) Signed-off-by: Zhe Tao --- V2:added fixes line V3:changed fixes line drivers/net/ixgbe/ixgbe_ethdev.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 3e6fe86..0f9d048 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1278,8 +1278,21 @@ eth_ixgbevf_dev_init(struct rte_eth_dev *eth_dev) * has already done this work. Only check we don't need a different * RX function */ if (rte_eal_process_type() != RTE_PROC_PRIMARY){ - if (eth_dev->data->scattered_rx) - eth_dev->rx_pkt_burst = ixgbe_recv_pkts_lro_single_alloc; + struct ixgbe_tx_queue *txq; + /* TX queue function in primary, set by last queue initialized + * Tx queue may not initialized by primary process + */ + if (eth_dev->data->tx_queues) { + txq = eth_dev->data->tx_queues[eth_dev->data->nb_tx_queues-1]; + ixgbe_set_tx_function(eth_dev, txq); + } else { + /* Use default TX function if we get here */ + PMD_INIT_LOG(NOTICE, "No TX queues configured yet. " + "Using default TX function."); + } + + ixgbe_set_rx_function(eth_dev); + return 0; } -- 2.1.4