On 22 Sep 2025, at 18:28, Ratheesh Kannoth wrote:
>> From: Eelco Chaudron <mailto:[email protected]> >> Subject: Re: [ovs-discuss] OVS offload >> >>> On 19 Sep 2025, at 12: 14, Ratheesh Kannoth via discuss wrote: Hi, I did >>> following configuration; but did not see .ndo_setup_tc() of >> >> >>> You could use the -m option to check if the flows are offloaded. However, >>> your ingress and egress port need to be on the same nic (you might need to >>> setup a vf). >>> If you leave the tc-policy to default, it should at least install the tc >>> flows, and then you can see if they are in hw or not. >>> //Eelco >> >> Thanks, when I changed the ovs version to 3.6.0, flows gets offloaded. I >> could see that “ovs-appctl dpctl/dump-flows -m type=offloaded”. But now >> stats sync are not getting called. I added >> Prints in netdev_tc_flow_get() and figured out that it is not hitting. So >> flow gets deleted by netdev_tc_flow_del() after some time. When I used >> "ovs-vsctl set Open_vSwitch . other_config:max-idle=30000" command to >> to increase the idle time flow delete takes a little more time. > > See my reply to your other email, check the tc command to see if the counters > get incremented by the driver. OVS gets the counters roughly every 500ms as > part of the revalidator process (see the > https://urldefense.proofpoint.com/v2/url?u=https-3A__developers.redhat.com_articles_2022_10_19_open-2Dvswitch-2Drevalidator-2Dprocess-2Dexplained&d=DwIFaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=aekcsyBCH00_LewrEDcQBzsRw8KCpUR0vZb_auTHk4M&m=aOY_kKPsBSrX0NHUW6JekSkJiRsQu3p4UMhDtOns0r0OwwtW1ysUYrNfZiXBgDdt&s=ZB-L8bU3iFD-KPHA98shRW_3SzdRNWHAM6xmDsjmbTQ&e= > blog if you want to learn more). > > //Eelco > > Thanks, > ovs-ofctl with -m option, shows all stats as 0 for offloaded flows. I > will dig more into it. One question, Eventually, netdev_tc_flow_get() should > be called by revalidator thread to fetch packet stats from HW (for offloaded > flows), Am I right ? The revalidator threads do not query individual flows; they will use the dump APIs, so for tc, they will be the netdev_tc_flow_dump_XXX() functions. //Eelco _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
