DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] mlx5: match broadcast and multicast packets using flows
@ 2020-10-02 10:53 Carasec Elena
  2020-11-13 15:18 ` Slava Ovsiienko
  0 siblings, 1 reply; 2+ messages in thread
From: Carasec Elena @ 2020-10-02 10:53 UTC (permalink / raw)
  To: dev

Hello,

I am trying to create flow rules that will match broadcast and multicast 
packets using testpmd
on mlx5 'MT27800 Family [ConnectX-5] 1017'. However, after creating the 
following rules, they do not match any packets.

My testpmd script is:

port stop all
port config all rss none
set promisc 0 on
set allmulti 0 on
port start all
set link-up port all
flow create 0 group 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff / 
ipv4 / end actions mark id 1 / count / queue index 1 / end
flow create 0 group 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff / 
ipv6 / end actions mark id 1 / count / queue index 1 / end
flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst 
mask 01:00:00:00:00:00 / ipv4 / end actions mark id 2 / count / queue 
index 2 / end
flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst 
mask 01:00:00:00:00:00 / ipv6 / end actions mark id 2 / count / queue 
index 2 / end
flow create 0 group 0 priority 1 ingress pattern end actions queue index 
3 / count / end
start

All the packets will match the last rule.

Also, creating only the rule
flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst 
mask 01:00:00:00:00:00 / end actions mark id 2 / count / queue index 2 / 
end
fails with error "port_flow_complain(): Caught PMD error type 1 (cause 
unspecified): hardware refuses to create flow: File exists"

What may be the reason of it? Is there another way to match broadcast 
and multicast packets using flow?

Thank you.
Elena Carasec

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

* Re: [dpdk-dev] mlx5: match broadcast and multicast packets using flows
  2020-10-02 10:53 [dpdk-dev] mlx5: match broadcast and multicast packets using flows Carasec Elena
@ 2020-11-13 15:18 ` Slava Ovsiienko
  0 siblings, 0 replies; 2+ messages in thread
From: Slava Ovsiienko @ 2020-11-13 15:18 UTC (permalink / raw)
  To: Carasec Elena, dev

Hi, Elena

We have the similar issue: https://bugs.dpdk.org/show_bug.cgi?id=563
I'll reply with results there.

With best regards, Slava

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Carasec Elena
> Sent: Friday, October 2, 2020 13:53
> To: dev@dpdk.org
> Subject: [dpdk-dev] mlx5: match broadcast and multicast packets using flows
> 
> Hello,
> 
> I am trying to create flow rules that will match broadcast and multicast packets
> using testpmd on mlx5 'MT27800 Family [ConnectX-5] 1017'. However, after
> creating the following rules, they do not match any packets.
> 
> My testpmd script is:
> 
> port stop all
> port config all rss none
> set promisc 0 on
> set allmulti 0 on
> port start all
> set link-up port all
> flow create 0 group 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff /
> ipv4 / end actions mark id 1 / count / queue index 1 / end flow create 0 group
> 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff /
> ipv6 / end actions mark id 1 / count / queue index 1 / end flow create 0 group
> 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask 01:00:00:00:00:00 /
> ipv4 / end actions mark id 2 / count / queue index 2 / end flow create 0 group
> 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask 01:00:00:00:00:00 /
> ipv6 / end actions mark id 2 / count / queue index 2 / end flow create 0 group
> 0 priority 1 ingress pattern end actions queue index
> 3 / count / end
> start
> 
> All the packets will match the last rule.
> 
> Also, creating only the rule
> flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask
> 01:00:00:00:00:00 / end actions mark id 2 / count / queue index 2 / end fails
> with error "port_flow_complain(): Caught PMD error type 1 (cause
> unspecified): hardware refuses to create flow: File exists"
> 
> What may be the reason of it? Is there another way to match broadcast and
> multicast packets using flow?
> 
> Thank you.
> Elena Carasec

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

end of thread, other threads:[~2020-11-13 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 10:53 [dpdk-dev] mlx5: match broadcast and multicast packets using flows Carasec Elena
2020-11-13 15:18 ` Slava Ovsiienko

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