From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m50-111.126.com (m50-111.126.com [123.125.50.111]) by dpdk.org (Postfix) with ESMTP id 749F3903; Sat, 28 Feb 2015 05:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=yiCEq weiOVFTXJTUiI+oqH9ihPIygKQTL3aNkVLbmcg=; b=S886yzza2P0O07WIX2jCG UECYULRCDOIkYtxxmrKnIAHRwjx+ChFbIEw1Ct5LQ7/QlNcjds7KajABtzNyo+Vf IoPxCSLV2clIk5e7BhEvPNVWiZO+lzc1hOcd/N9xX6PvMcdt1gy1CnrQGEZo4Dlz jMEnYjQhoy9RTuosMtF6e8= Received: from qqPC (unknown [59.108.29.42]) by smtp5 (Coremail) with SMTP id jtKowAD39YIZRfFU2uzZAA--.634S2; Sat, 28 Feb 2015 12:33:31 +0800 (CST) From: "lhffjzh" To: "'Zhang, Helin'" , "'Thomas Monjalon'" References: <1416936405-25333-1-git-send-email-ssujith@cisco.com> <03fb01d05269$fe8d2110$fba76330$@com> <1566601.Xkl8jJDb44@xps13> <046801d052f8$9090a530$b1b1ef90$@com> In-Reply-To: Date: Sat, 28 Feb 2015 12:33:35 +0800 Message-ID: <049801d0530f$b866bce0$293436a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdBSe++3hYejogolSOOWUQUj62OZbAAdqO6QAARY9PAAAJniMA== Content-Language: zh-cn X-CM-TRANSID: jtKowAD39YIZRfFU2uzZAA--.634S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxZw48ZrWDXr1xKFy3XFy7Wrg_yoW5Kryfpr yxZayay3ykXr1Ikw4DJa18Wry5GrsYkay7Grs3W34UA3WDK3Waqa4Sk3yF9a4kGF95tw12 q3ZrZws8A34kZFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jelk3UUUUU= X-Originating-IP: [59.108.29.42] X-CM-SenderInfo: hokiwyl2k6ij2wof0z/1tbiWBmuWU3AY9LcyQAAsf Cc: dev@dpdk.org, maintainers@dpdk.org Subject: Re: [dpdk-dev] Why only rx queue "0" can receive network packet by i40e NIC 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: Sat, 28 Feb 2015 04:34:09 -0000 Hi Helin, Thanks a lot for your great help, all of rx queue received network packet after I update rss_hf from "ETH_RSS_IP" to " ETH_RSS_PROTO_MASK ". static struct rte_eth_conf port_conf = { .rxmode = { .mq_mode = ETH_MQ_RX_RSS, .max_rx_pkt_len = ETHER_MAX_LEN, .split_hdr_size = 0, .header_split = 0, /**< Header Split disabled */ .hw_ip_checksum = 1, /**< IP checksum offload enabled */ .hw_vlan_filter = 0, /**< VLAN filtering disabled */ .jumbo_frame = 0, /**< Jumbo Frame Support disabled */ .hw_strip_crc = 0, /**< CRC stripped by hardware */ }, .rx_adv_conf = { .rss_conf = { .rss_key = NULL, .rss_hf = ETH_RSS_PROTO_MASK, }, }, .txmode = { .mq_mode = ETH_MQ_TX_NONE, }, .fdir_conf.mode = RTE_FDIR_MODE_SIGNATURE, }; Regards, Haifeng -----Original Message----- From: Zhang, Helin [mailto:helin.zhang@intel.com] Sent: Saturday, February 28, 2015 11:18 AM To: lhffjzh; 'Thomas Monjalon' Cc: dev@dpdk.org; maintainers@dpdk.org Subject: RE: [dpdk-dev] Why only rx queue "0" can receive network packet by i40e NIC Hi Haifeng > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of lhffjzh > Sent: Saturday, February 28, 2015 9:48 AM > To: 'Thomas Monjalon' > Cc: dev@dpdk.org; maintainers@dpdk.org > Subject: Re: [dpdk-dev] Why only rx queue "0" can receive network packet by > i40e NIC > > Hi Thomas, > > Thanks very much for your reminder, you give me many help in this mail list. > > The issue with detailed information just as below. but I don't know who is the > dpdk i40e maintainers? is maintainers@dpdk.org? > > Hardware list: > 2 i40e 40G NICs > Xeon E5-2670 v2(10 cores) > 32G memory > > I loopback 2 i40e NICs by QSFP cable, one NIC send UDP network packet by > DPDK, and another for receiving. I bind 4 processor's logical cores with 4 rx > queue "0,1,2,3" on receiving NIC, when I start to send packet, only rx queue > "0" > can receive > the UDP packet, the others queue always receive nothing. but it is work well on > ixgbe 10G NICs, I can receive network packet from all rx queues. does anyone > kindly know why? Could you help to list the DPDK version you are using now? Two possible reasons: 1. UDP rss is not enabled on your board correctly. I40e has different rss flags from ixgbe, so I am wondering if you use it correctly. In addition, this will be unified from 2.0. So I care about the DPDK version. 2. The UDP stream is occasionally hit the hash key of queue 0. You'd better to try to send your UDP stream with random 5-tuples, to get the hash value hit different queues randomly. Regards, Helin > > > Regards, > Haifeng > > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Friday, February 27, 2015 6:55 PM > To: lhffjzh > Cc: dev@dpdk.org > Subject: Re: Why only rx queue "0" can receive network packet by i40e NIC > > 2015-02-27 16:47, lhffjzh: > > Hi All, > > > > We use 4 cores loop 4 rx queues on one i40e port, but only rx queue "0" > can > > receive network packet, do anyone kindly know why? BTW, all of network > > packet has same destination ip address but has more than 200 different > > source ip address. > > It's possible that you don't have any answer for 2 reasons: > - you replied in a thread dedicated to Cisco enic questions > - you didn't describe your usage enough to understand your problem > > I suggest to use the button "new email" instead of "reply all" to > start a new question with enough details. > > Did you noticed you put some Cisco guys in CC instead of putting the > Intel responsible for i40e (see MAINTAINERS file)? >