From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by dpdk.org (Postfix) with ESMTP id 85E941B44A for ; Thu, 31 Jan 2019 15:18:09 +0100 (CET) Received: by mail-io1-f67.google.com with SMTP id t24so2772595ioi.0 for ; Thu, 31 Jan 2019 06:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6ma/s1vSbftwb+t8pBuhxwG8WZIjv4R6pZDD/mkFEoI=; b=SJAf3ChBEOYv43qP4oRXbTtkJxQt6UfDKu5Ti1H2BpI0Ygjl/sCxhqt2zKvDxZbRg8 mVMYTieHspOsTvqepljXDUpyJG2MOhcRMROD3PKOdD4XhRJCpAP3EKI5ybKD0YL+wtku 0iH2NqAzBWgSrh5z6PKmTQsNZqKGb5nXfVMdSnTsZ4rlJT9NmGx+ez6YRGekuBvuTbdT CobVPjuod743Yab/T3gqWmRpUS8pmmFBxSWhIT4ACjZVucA2qjQ8f1B+Wq2FZ9YX1D2M DmMBIr3QJqDVgPx8Vjk5OdPSbiz7VdxzWnNI4ryusfamG73CTDULw7k6ZlL2nb03Xlso VSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6ma/s1vSbftwb+t8pBuhxwG8WZIjv4R6pZDD/mkFEoI=; b=qgYL5nFtmb5P/Nyeh5PHmnWv+C7iDec2eliZeSMBklYdsFvf2ZMZHUeDr3W3IjNfUb NtvMfyqaX6PRuTfS2iDH3SxKVJGZI6V5Bjkqqzyev9Y96XoXR3S9qvxCbhNDK/NxgvpV Bn3csaYyvGP4ikSZFYzIu3u+Icm3np68BeixbRe6CQb0FMaFZGWmF1vM0pHcagRBj1uT IfG+XvBJocw1XaPvLO8sYS/BKTHkNxFR0lym+vemJ7enyuGfLgZATC1ZMiwI+M2TJdqm b1oeWlATuTow3D77HR6coWJ/Jocw3gMX95orzlWkCSVXm4yTvXmAx6JkM1+65UHx359l Y99g== X-Gm-Message-State: AHQUAuZbm5y1hLK658WhRRdTNFe87hvAkeSC7r20gblWQm5pYIrjGvtQ MyorQKz7zaW/ucepPl0hcBRDSpq30R2ibHlc+GBGguoz X-Google-Smtp-Source: AHgI3IakDNHMsP5y2P8OiI6f2BhYkMet8zXLlg/a+z3D6HajSchxD1npd2n7NV0aZB4t5n0pz3cd5+gUt+LeiQKk95c= X-Received: by 2002:a5d:8b83:: with SMTP id p3mr5066114iol.275.1548944288800; Thu, 31 Jan 2019 06:18:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: ikuzar RABE Date: Thu, 31 Jan 2019 15:17:59 +0100 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] ERROR with rte_eth_dev_configure() call: return value: -22 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2019 14:18:09 -0000 Hi all, I forgot to tell you I work on Linux Debian 8. I set .rss_hf value to 0x7ef8 and now I see packets but: I get an error message: *i40e_dev_alarm_handler(): ICR0: HMC error* I found here https://mails.dpdk.org/archives/dev/2018-September/111338.html that I am in the following case: + if (icr0 & I40E_PFINT_ICR0_HMC_ERR_MASK) + PMD_DRV_LOG(ERR, "ICR0: HMC error"); Does anyone know what goes wrong ? Additionally, I get many RX errors: Port RX pkt RX byte TX pkt TX byte RX error TX error 1 3290 5196839 0 0 62001 0 Queue RX pkt RX byte TX pkt TX byte RX error TX error 0 0 0 0 0 0 0 1 0 0 0 0 0 0 Thank you for your help, Ikuzar Le lun. 28 janv. 2019 =C3=A0 18:02, ikuzar RABE a = =C3=A9crit : > Hi all, > > I work with DPDK LTS version 18.11 to read packets from XL710-QDA2 with > configuration 2x40 > So there are 2 ports: port 0 and port 1. Port 0 is not linked and it is > down. > Packets only arrive on port 1. I try to activate RSS but > rte_eth_dev_configure() return value -22 > and I get the following message error: > > Ethdev port_id=3D0 invalid rss_hf: 0x3afbc, valid value: 0x7ef8 > > What goes wrong with the call of this function ? > > #define RX_QUEUE_NUM 2 > #define TX_QUEUE_NUM 1 > #define SOCKET_ID 0 > #define RX_QUEUE_DESC_NUM 1024 > #define TX_QUEUE_DESC_NUM 0 > > struct rte_eth_conf port_conf =3D { > .rxmode =3D { > .mq_mode =3D ETH_MQ_RX_RSS, > }, > .rx_adv_conf =3D { > .rss_conf =3D { > .rss_hf =3D ETH_RSS_IP | > ETH_RSS_TCP | > ETH_RSS_UDP | > ETH_RSS_SCTP, > } > }, > }; > > ret =3D rte_eth_dev_configure(port_id, RX_QUEUE_NUM, TX_QUEUE_NUM, > &port_conf); // ret =3D -22 > > Thanks for your help, > > ikuzar >