DPDK usage discussions
 help / color / mirror / Atom feed
* Failed to create flow rule using E810 while setting priority 1
@ 2021-12-01  6:53 Filip Janiszewski
  0 siblings, 0 replies; only message in thread
From: Filip Janiszewski @ 2021-12-01  6:53 UTC (permalink / raw)
  To: users

Hi,

For some reason this rule cannot be created (DPDK 21.11, Intel E810-2CQDA2):

.
testpmd> flow create 0 ingress priority 1 pattern eth type spec 0x8000
type mask 0x8000 / end actions drop / end
ice_flow_create(): Failed to create flow
port_flow_complain(): Caught PMD error type 2 (flow rule (handle)):
switch filter create flow fail: Invalid argument

.

But, this one can:

.
testpmd> flow create 0 ingress priority 0 pattern eth type spec 0x8000
type mask 0x8000 / end actions drop / end
Flow rule #1 created
.

Apparently it's like those type of rules are not valid while using
priority 1, but then if I change the mask to 0xF000 the rule is created
regardless of the priority:

.
testpmd> flow create 0 ingress priority 1 pattern eth type spec 0x8000
type mask 0xF000 / end actions drop / end
Flow rule #1 created
.

Is that a black-magic-rule or this is some malfunction in the ICE driver?

This issue is related to my last two questions for the community*, in
fact I was able to create a rule set to drop all the packets, like this:

.
testpmd> flow create 0 ingress pattern eth type spec 0x0000 type mask
0x8000 / end actions drop / end
Flow rule #0 created
testpmd> flow create 0 ingress pattern eth type spec 0x8000 type mask
0x8000 / end actions drop / end
Flow rule #1 created
.

And now I wanted to use the priority mechanism to configure those rules
with a lower priority, and then have a bunch of higher priority rules to
collect (not drop) the packets I'm interested in.

Thanks

* See emails with subject: "rte flow priority not working", "flow rule
to drop all the packets".


-- 
BR, Filip
+48 666 369 823

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-01  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01  6:53 Failed to create flow rule using E810 while setting priority 1 Filip Janiszewski

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/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 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


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