[ovs-discuss] Issue with offloading OVS flows into Mellanox-4 cards
roid at mellanox.com
Mon Jul 10 03:57:33 UTC 2017
On 07/07/2017 17:36, Sugu Chandran wrote:
> I am trying to test hardware offloading feature in OVS using a 2*25G
> mellanox NIC. My test setup has static OVS L2 rules to forward packets
> between these two ports. The traffic generators are connected to these
> ports to pump in traffic.
> The hardware offloading is enabled in the system by using,
> ovs-vsctl --no-wait set Open_vSwitch . other_config:hw-offload=true
> I didnt set any hw-policy explicit, as I kept it default as 'None'
> I noticed that when I am sending traffic to these ports, there are no
> rules that are getting programmed into the hardware. Also there are no
> error reported in ovs-vswitchd.log as such.
> Of Course the packets are getting forwarded in software. Is there
> anything else needs to be done to make the TC for programming the
> mellanox NICs?
Since you do not have errors in the log did you check if the rules
were added to tc software?
you can dump like this:
# tc -s filter show dev ens5f0 ingress
You need to enable the offload feature on the HCA with ethtool.
# ethtool -K ens5f0 hw-tc-offload on
We still need to work on docs for this feature but for now I
documented it a little here:
> discuss mailing list
> discuss at openvswitch.org
More information about the discuss