[ovs-discuss] TC flow offload using OVS - failed to offload flow: Invalid argument: enp0s25

Roni Bar Yanai roniba at mellanox.com
Mon Feb 24 11:42:04 UTC 2020


Hi Satish,
Can you share more details of your setup. How it is connected and what is the traffic you run?
Are you in switchdev mode?
See https://www.mellanox.com/related-docs/prod_software/ASAP2_Hardware_Offloading_for_vSwitches_User_Manual_v4.4.pdf
BR,
Roni
Hi Team,

I'm using OVS to understand its feature and workflow and came across the topic of "offloading flow in hardware" through TC.
I installed OVS following official guide http://docs.openvswitch.org/en/latest/intro/install/general/#bootstrapping<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdocs.openvswitch.org%2Fen%2Flatest%2Fintro%2Finstall%2Fgeneral%2F%23bootstrapping&data=02%7C01%7Croniba%40mellanox.com%7C0dc50af71cad471ca4b108d7b90a1f9e%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C637181325434673302&sdata=3ggxP7Ta7Q3RmFF1QjfHiXjZJAo3U1wU1uP0skmtIE0%3D&reserved=0>
https://docs.mellanox.com/display/MLNXOFEDv473290/OVS+Offload+Using+ASAP2+Direct#OVSOffloadUsingASAP2Direct-Overview

I tried to add flows after enabling hw_offload and then added few basic flow using ovs-ofctl utilities. Flows are getting added into ovs-datapath but not getting offloaded into hardware.

I'm using mellanox card connectx4, centos 7.5, ovs 2.1.12.

Please let me know whether am I missing something? OR this could be a bug? Below are the various command output for the references, let me know for anything else.

ovs-vsctl set Open_vSwitch . other_config:hw-offload=true

root at satish:~# ovs-vsctl show
966880f9-7702-44b9-be38-3dfc2d3cfb44
    Bridge test-br
        Port "enp0s25"
            Interface "enp0s25"
        Port test-br
            Interface test-br
                type: internal
    ovs_version: "2.12.0"

root at satish:~# ovs-ofctl dump-flows test-br
 cookie=0x0, duration=26540.500s, table=0, n_packets=0, n_bytes=0, in_port=1 actions=output:enp0s25
 cookie=0x0, duration=31399.514s, table=0, n_packets=18537, n_bytes=2420553, priority=0 actions=NORMAL

root at satish:~# tc filter show dev test-br ingress
root at satish:~#
root at satish:~# tc filter show dev enp0s25 ingress

satish at satish:~$ sudo tail -f /usr/local/var/log/openvswitch/ovs-vswitchd.log
..................
2020-02-20T05:31:20.155Z|00255|dpif_netlink(handler6)|ERR|Dropped 5 log messages in last 7 seconds (most recently, 3 seconds ago) due to excessive rate
2020-02-20T05:31:20.155Z|00256|dpif_netlink(handler6)|ERR|failed to offload flow: Invalid argument: enp0s25
2020-02-20T05:31:30.516Z|00257|dpif_netlink(handler6)|ERR|Dropped 3 log messages in last 8 seconds (most recently, 1 seconds ago) due to excessive rate
2020-02-20T05:31:30.516Z|00258|dpif_netlink(handler6)|ERR|failed to offload flow: Invalid argument: enp0s25


Thanks
Satish
_______________________________________________
discuss mailing list
discuss at openvswitch.org<mailto:discuss at openvswitch.org>
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discuss&data=02%7C01%7Croniba%40mellanox.com%7C0dc50af71cad471ca4b108d7b90a1f9e%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C637181325434683296&sdata=rsnXmSfkPWmWbOHS32W0pk6xeaKzAZS%2BsG9BR%2FcuqQ4%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20200224/bbea1efa/attachment-0001.html>


More information about the discuss mailing list