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

satish dhote sdhote926 at gmail.com
Fri Feb 21 07:33:45 UTC 2020


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://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20200221/024a5d10/attachment.html>


More information about the discuss mailing list