From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cos-us-iron01k.cos.keysight.com (cos-us-iron01k.cos.keysight.com [192.25.5.35]) by dpdk.org (Postfix) with ESMTP id 7B0202BA6 for ; Fri, 4 Mar 2016 10:22:19 +0100 (CET) X-IPAS-Result: A2DAAADdUtlWehQYjJxdGQEBAg8BAQEBgj6BHm0GujABDYFqIYVuAoFmFAEBAQEBAQERAQEWMy+EQwEBAycGTBIBKhZAJgEEDg2IGg68MgEBAQcBAQEBAQEajwuDK4EPBZchhHxiiWxLg3mIU45SDw8BAYJCAgEZgUhqAQEBh2QkGQF9AQEB X-IronPort-AV: E=Sophos;i="5.22,535,1449558000"; d="scan'208,217";a="27048137" Received: from wcosexch01k.cos.is.keysight.com (HELO 2k10hubs.keysight.com) ([156.140.24.20]) by cos-us-iron01k.cos.keysight.com with ESMTP/TLS/AES128-SHA; 04 Mar 2016 02:12:18 -0700 Received: from wcosexch02k.cos.is.keysight.com ([169.254.2.178]) by wcosexch01k.cos.is.keysight.com ([169.254.3.25]) with mapi id 14.03.0266.001; Fri, 4 Mar 2016 02:22:17 -0700 From: To: Thread-Topic: RX Vector PMD with X710 Thread-Index: AdF19QVW9GFWn7PiRMePZc68mWXfAw== Date: Fri, 4 Mar 2016 09:22:16 +0000 Message-ID: <22C95CA62CBADB498D32A348F0F073BC116B8030@wcosexch02k.cos.is.keysight.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [156.140.13.70] x-tm-as-product-ver: SMEX-11.0.0.4255-8.000.1202-22170.006 x-tm-as-result: No--55.095600-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: martin_curran-gray@keysight.com Subject: [dpdk-users] RX Vector PMD with X710 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 09:22:20 -0000 Hi, About 12 months ago I did a brief evaluation of an Intel X710 card with DPD= K 1.7.0. I've now returned to this with DPDK 2.2.0 I've struggled to get the performance I had before, but have gradually twea= ked my app, and the dpdk settings and am getting close. I've used the test pmd program and noticed, that on my build/configure, it = runs in vector rx mode PMD: i40e_set_rx_function(): Vector rx enabled, please make sure RX burst s= ize no less than 4 (port=3D1). But I don't seem to be able to get vector rx mode in my app. PMD: i40e_set_rx_function()= : Port[2] doesn't meet Vector Rx preconditions I've temporarily tweaked various things I can find to match the defaults th= e test pmd program uses, but still no joy ( I do get rxBurst Alloc ) The documentation on the web http://dpdk.readthedocs.org/en/v2.2.0/nics/ixgbe.html mentions * rxq->rx_free_thresh >=3D RTE_PMD_IXGBE_RX_MAX_BURST * rxq->rx_free_thresh < rxq->nb_rx_desc * (rxq->nb_rx_desc % rxq->rx_free_thresh) =3D=3D 0 * rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) I've checked that for my real settings, and they all now pass, since before= , I didn't get burst alloc but I do now I've moved nb_rx_desc and rx_free_thresh to be the same as the values used = by testpmd I've also checked other settings the web page refers to * hw_vlan_strip * hw_vlan_extend * hw_ip_checksum * header_split * dev_conf fdir_conf->mode will also be checked. And made my settings for my code match those reported in testpmd, (I've twe= aked the testpmd code slightly to print out some settings, see below) But I still don't get Vector RX in my app, but the test pmd does! Is there something else I'm missing? Using centos 6.4 with kernel 2.6.32-358.el6.x86_64 Twin sandybridge host, 64G Ram Intel X710-DA4 I'm running the testpmd with the same config, igb_uio.ko, include files etc= . as my app (to the best of my knowledge) Thanks Martin ********************* Infos for port 0 , RX queue 0 ********************* Mempool: mbuf_pool_socket_0 RX prefetch threshold: 0 RX host threshold: 0 RX writeback threshold: 0 RX free threshold: 32 RX drop packets: off RX deferred start: off RX scattered packets: off Number of RXDs: 128 ********************* Infos for port 1 ********************* MAC address: 68:05:CA:36:F2:B9 Connect to socket: 0 memory allocation on the socket: 0 Link status: up Link speed: 10000 Mbps Link duplex: full-duplex Promiscuous mode: enabled Allmulticast mode: disabled Maximum number of MAC addresses: 64 Maximum number of MAC addresses of hash filtering: 0 VLAN offload: strip on filter on qinq(extend) off Hash key size in bytes: 52 Redirection table size: 512 Supported flow types: ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2_payload Max possible RX queues: 192 Max possible number of RXDs per queue: 4096 Min possible number of RXDs per queue: 64 RXDs number alignment: 32 Max possible TX queues: 192 Max possible number of TXDs per queue: 4096 Min possible number of TXDs per queue: 64 TXDs number alignment: 32 ######################## FDIR infos for port 0 #####################= ### MODE: DISABLE