DPDK-dev Archive on lore.kernel.org
 help / color / Atom feed
* [dpdk-dev] Cannot use MLX5 groups : cannot create jump action.: Operation not supported
@ 2019-11-30 11:19 Tom Barbette
  2019-11-30 16:23 ` Tom Barbette
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Barbette @ 2019-11-30 11:19 UTC (permalink / raw)
  To: dev; +Cc: Shahaf Shuler

Hi all,

I'm struggling to use the group feature with MLX5.

I'm using 19.08.2 for now (while 
https://bugs.dpdk.org/show_bug.cgi?id=371 gets fixed).

I use the latest OFED (no inbox driver this time).

I have dv_flow_en=1, but I still get "cannot create jump action.: 
Operation not supported". when I want to use the jump action or "cannot 
create table: Cannot allocate memory" when trying to add a rule to table 
1, all of this with testpmd but my own app does not work better.

sudo ~/dpdk-skylake/x86_64-native-linuxapp-gcc/app/testpmd –l 0-3 -w 
0000:17:00.0,dv_flow_en=1 –n 6 -- -i
EAL: Detected 36 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: PCI device 0000:17:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1017 net_mlx5
net_mlx5: can not get IB device "mlx5_0" ports number
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=283456, 
size=2176, socket=1
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=283456, 
size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=paired and odd forward ports number, the last 
port will pair with itself.

Configuring Port 0 (socket 0)
Port 0: 50:6B:4B:43:8A:DA
Checking link statuses...
Done
testpmd> flow create 0 group 1 ingress pattern eth / end actions queue 
index 0 / end
Caught error type 1 (cause unspecified): cannot create table: Cannot 
allocate memory
testpmd> flow validate 0 group 1 ingress pattern eth / end actions queue 
index 0 / end
Flow rule validated
testpmd> flow create 0 group 0 ingress pattern eth / end actions jump 
group 1 / end
Caught error type 16 (specific action): cannot create jump action.: 
Operation not supported
testpmd>

Thanks,

Tom

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

* Re: [dpdk-dev] Cannot use MLX5 groups : cannot create jump action.: Operation not supported
  2019-11-30 11:19 [dpdk-dev] Cannot use MLX5 groups : cannot create jump action.: Operation not supported Tom Barbette
@ 2019-11-30 16:23 ` Tom Barbette
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Barbette @ 2019-11-30 16:23 UTC (permalink / raw)
  To: dev; +Cc: Shahaf Shuler

Solved. The error was due to that NIC not having UCTX_EN enabled in the 
firmware.

Maybe a less cryptic message/warning would be helpful though? DV was 
enabled so I did not thought the problem could be below. A warning when 
the user explicitly asks for dv_flow_en=1 but UCTX_EN is not enabled maybe?

Thanks,
Tom

Le 30/11/2019 à 12:19, Tom Barbette a écrit :
> Hi all,
> 
> I'm struggling to use the group feature with MLX5.
> 
> I'm using 19.08.2 for now (while 
> https://bugs.dpdk.org/show_bug.cgi?id=371 gets fixed).
> 
> I use the latest OFED (no inbox driver this time).
> 
> I have dv_flow_en=1, but I still get "cannot create jump action.: 
> Operation not supported". when I want to use the jump action or "cannot 
> create table: Cannot allocate memory" when trying to add a rule to table 
> 1, all of this with testpmd but my own app does not work better.
> 
> sudo ~/dpdk-skylake/x86_64-native-linuxapp-gcc/app/testpmd –l 0-3 -w 
> 0000:17:00.0,dv_flow_en=1 –n 6 -- -i
> EAL: Detected 36 lcore(s)
> EAL: Detected 2 NUMA nodes
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
> EAL: Selected IOVA mode 'VA'
> EAL: Probing VFIO support...
> EAL: PCI device 0000:17:00.0 on NUMA socket 0
> EAL:   probe driver: 15b3:1017 net_mlx5
> net_mlx5: can not get IB device "mlx5_0" ports number
> Interactive-mode selected
> testpmd: create a new mbuf pool <mbuf_pool_socket_1>: n=283456, 
> size=2176, socket=1
> testpmd: preferred mempool ops selected: ring_mp_mc
> testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=283456, 
> size=2176, socket=0
> testpmd: preferred mempool ops selected: ring_mp_mc
> 
> Warning! port-topology=paired and odd forward ports number, the last 
> port will pair with itself.
> 
> Configuring Port 0 (socket 0)
> Port 0: 50:6B:4B:43:8A:DA
> Checking link statuses...
> Done
> testpmd> flow create 0 group 1 ingress pattern eth / end actions queue 
> index 0 / end
> Caught error type 1 (cause unspecified): cannot create table: Cannot 
> allocate memory
> testpmd> flow validate 0 group 1 ingress pattern eth / end actions queue 
> index 0 / end
> Flow rule validated
> testpmd> flow create 0 group 0 ingress pattern eth / end actions jump 
> group 1 / end
> Caught error type 16 (specific action): cannot create jump action.: 
> Operation not supported
> testpmd>
> 
> Thanks,
> 
> Tom

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-30 11:19 [dpdk-dev] Cannot use MLX5 groups : cannot create jump action.: Operation not supported Tom Barbette
2019-11-30 16:23 ` Tom Barbette

DPDK-dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dpdk-dev/0 dpdk-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dpdk-dev dpdk-dev/ https://lore.kernel.org/dpdk-dev \
		dev@dpdk.org
	public-inbox-index dpdk-dev

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git