DPDK usage discussions
 help / color / mirror / Atom feed
From: ikuzar RABE <ikuzar9295@gmail.com>
To: users@dpdk.org
Subject: Re: [dpdk-users] ERROR with rte_eth_dev_configure() call: return value: -22
Date: Thu, 31 Jan 2019 15:17:59 +0100	[thread overview]
Message-ID: <CACNnN_=uZY1=exZsC5XVBEz=U8nnuSfyHQxFiQnPN-R7AvXtqw@mail.gmail.com> (raw)
In-Reply-To: <CACNnN_mS=c4BpmDLcu7-7znrcBVyz9-8p8bDOPjOdF2VPbo2pw@mail.gmail.com>

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 à 18:02, ikuzar RABE <ikuzar9295@gmail.com> a écrit :

> 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=0 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 = {
> .rxmode = {
> .mq_mode = ETH_MQ_RX_RSS,
> },
> .rx_adv_conf = {
> .rss_conf = {
> .rss_hf = ETH_RSS_IP |
> ETH_RSS_TCP |
> ETH_RSS_UDP |
> ETH_RSS_SCTP,
> }
> },
> };
>
> ret = rte_eth_dev_configure(port_id, RX_QUEUE_NUM, TX_QUEUE_NUM,
> &port_conf); // ret = -22
>
> Thanks for your help,
>
> ikuzar
>

      reply	other threads:[~2019-01-31 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-28 17:02 ikuzar RABE
2019-01-31 14:17 ` ikuzar RABE [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACNnN_=uZY1=exZsC5XVBEz=U8nnuSfyHQxFiQnPN-R7AvXtqw@mail.gmail.com' \
    --to=ikuzar9295@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).