On Mon, Nov 28, 2022 at 7:36 PM Jamal Hadi Salim <[email protected]> wrote:
> On Mon, Nov 28, 2022 at 3:56 AM Tianyu Yuan <[email protected]>
> wrote:
> >
> > Hi Jamal,
> >
> >
> > When no action is specified, there should not be gact with PIPE, rather than
> a gact with drop, like:
> >
Thanks for reminding, I'll add that :)
>
> Thanks for the example dumps. I think you should put them in your commit
> logs.
>
> [..]
>
> >
> > About the second scenario of PIPE alone, I don’t think it should exist.
> > Besides this adding a PIPE at the first place of a tc filter to update
> > the flow stats, another attempt that directly store the flower stats,
> > which is got from driver, in socket transacted with userspace (e.g.
> > OVS). In this approach, we don’t have to make changes in driver. Which
> > could be a better solution you think for this propose
>
> I was thinking about a case of a filter with no actions but with interest in a
> counter for that match.
>
> i.e pseudo-tc-dsl as:
> tc filter add ... flower blah action count
>
> which translated is:
> tc filter add ... flower blah action pipe
>
> cheers,
> jamal
I test the case that only add a gact pipe in a filter as a counter, the result
is shown below:
# tc filter add dev eth5 parent ffff: pref 4 flower action gact pipe
# tc -s -d filter show dev eth5 ingress
filter parent ffff: protocol ip pref 4 flower chain 0
filter parent ffff: protocol ip pref 4 flower chain 0 handle 0x1
eth_type ipv4
in_hw in_hw_count 1
action order 1: gact action pipe
random type none pass val 0
index 2 ref 1 bind 1 installed 314 sec used 0 sec
Action statistics:
Sent 8449056 bytes 5588 pkt (dropped 0, overlimits 0 requeues 0)
Sent software 0 bytes 0 pkt
Sent hardware 8449056 bytes 5588 pkt
backlog 0b 0p requeues 0
used_hw_stats delayed
in which eth5 is a vf representor and packets are coming from corresponding vf.
Packets are
generated by iperf udp.
This pipe(counter) still shows in_hw flag, although the only one action is
ignored by driver.
Best regards,
Tianyu
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev