From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7304C682E for ; Wed, 19 Nov 2014 10:52:50 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 19 Nov 2014 01:29:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,415,1413270000"; d="scan'208";a="634394399" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by fmsmga002.fm.intel.com with ESMTP; 19 Nov 2014 01:29:43 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by pgsmsx106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 19 Nov 2014 17:28:48 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.182]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0195.001; Wed, 19 Nov 2014 17:28:42 +0800 From: "Chen, Erlu" To: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [PATCH v6 0/8] support of multiple sizes of redirection table Thread-Index: AQHQAO3BwH1OdmkZu0qGQLWuZQJ+HZxntDDg Date: Wed, 19 Nov 2014 09:28:41 +0000 Message-ID: <57080872D7808940A39EED8613FE035E4DDF37@SHSMSX104.ccr.corp.intel.com> References: <1415283932-20724-1-git-send-email-helin.zhang@intel.com> <1416067424-31699-1-git-send-email-helin.zhang@intel.com> In-Reply-To: <1416067424-31699-1-git-send-email-helin.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v6 0/8] support of multiple sizes of redirection table 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: Wed, 19 Nov 2014 09:52:52 -0000 Tested-by: Erlu Chen - Tested Commit: 951ac486a6bb9499cbaa605bd4bde22222b5e52e - OS: Linux fc20 3.11.10-301.fc20.x86_64 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - GCC: gcc version 4.8.3 20140624 - NIC: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:157= 2] Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ [8086:1584] Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ [8086:1583] - Default x86_64-native-linuxapp-gcc configuration - Total 1 cases, 1 passed, 0 failed - Case: pmdrss_reta Description: pmdrss_reta is designed to improve networking performance by= load balancing the packets received from a NIC port to multiple NIC RX que= ues, with each queue handled by a different logical core. Command / instruction: #1. set up testpmd with fortville NICs:: ./testpmd -c fffff -n %d -- -i --coremask=3D0xffffe --rxq=3D16 --txq=3D1= 6 #2. verbose configuration:: testpmd command: set verbose 8 =09 #3. PMD fwd only receive the packets:: testpmd command: set fwd rxonly #4. Reta Configuration. 128 or 512 reta entries configuration:: testpmd command: port config 0 rss reta (hash_index,queue_id) =09 #5. start packet receive:: testpmd command: start tester Configuration ------------------- #1. set up scapy #2. send packets with different type ipv4/ipv4 with tcp/ipv4 with udp/ipv6= /ipv6 with tcp/ipv6 with udp:: sendp([Ether(dst=3D"90:e2:ba:36:99:3c")/IP(src=3D"192.168.0.4", dst=3D= "192.168.0.5")], iface=3D"eth3") =20 Expected test result: The testpmd will print the hash value and actual queue of every packet. #1. Calaute the queue id: hash value%128or512, then refer to the redirectio= n table to get the theoretical queue id. #2. The theoretical queue id is the same with the actual queue id. -----Original Message----- From: Zhang, Helin=20 Sent: Sunday, November 16, 2014 12:04 AM To: dev@dpdk.org Cc: Cao, Waterman; Cao, Min; Wu, Jingjing; Liu, Jijiang; Chen, Erlu; Ananye= v, Konstantin; Zhang, Helin Subject: [PATCH v6 0/8] support of multiple sizes of redirection table As e1000, ixgbe and i40e hardware use different sizes of redirection table = in PF or VF, ethdev and PMDs need to be reworked to support multiple sizes = of that table. In addition, commands in testpmd also need to be reworked to= support these changes. v2 changes: * Reorganized the patches. * Added code style fixes. * Added support of reta updating/querying in i40e VF. v3 changes: * Reorganized the patch set. * Added returning default RX/TX configurations in VF (igb/ixgbe/i40e), as the patch set of it for PF has been accepted recently. v4 changes: * Renamed RTE_BIT_WIDTH_64 to RTE_RETA_GROUP_SIZE. * Added more comments to rte_eth_dev_rss_reta_update() and rte_eth_dev_rss_reta_query(). v5 changes: * Reworked the annotations of macros of RETA sizes in rte_ethdev.h. v6 changes: * Checking if the input number of reta size is 64 aligned has been added in rte_ethdev.c. * Use macros to replace numeric in all igb, ixgbe and i40e PMDs of updating/querying reta. Helin Zhang (8): app/testpmd: code style fix i40evf: code style fix i40e: support of setting hash lookup table size igb: implement ops of 'dev_infos_get' for PF and VF respectively ixgbe: implement ops of 'dev_infos_get' for PF and VF respectively i40e: rework of ops of 'dev_infos_get' for both PF and VF ethdev: support of multiple sizes of redirection table i40evf: support of updating/querying redirection table app/test-pmd/cmdline.c | 166 ++++++++++++++++++++-------- app/test-pmd/config.c | 37 +++---- app/test-pmd/testpmd.h | 4 +- lib/librte_ether/rte_ethdev.c | 121 ++++++++++++-------- lib/librte_ether/rte_ethdev.h | 51 ++++++--- lib/librte_pmd_e1000/igb_ethdev.c | 179 +++++++++++++++++++----------- lib/librte_pmd_i40e/i40e_ethdev.c | 122 +++++++++++--------- lib/librte_pmd_i40e/i40e_ethdev.h | 25 ++++- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 124 ++++++++++++++++++++- lib/libr= te_pmd_ixgbe/ixgbe_ethdev.c | 208 +++++++++++++++++++++++------------ 10 files changed, 719 insertions(+), 318 deletions(-) -- 1.8.1.4