DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] ERROR with rte_eth_dev_configure() call: return value: -22
@ 2019-01-28 17:02 ikuzar RABE
  2019-01-31 14:17 ` ikuzar RABE
  0 siblings, 1 reply; 2+ messages in thread
From: ikuzar RABE @ 2019-01-28 17:02 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-31 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-28 17:02 [dpdk-users] ERROR with rte_eth_dev_configure() call: return value: -22 ikuzar RABE
2019-01-31 14:17 ` ikuzar RABE

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).