]> git.proxmox.com Git - mirror_ovs.git/commit - lib/dpif-netdev.c
dpif-netdev: Initialize dpif_flow attrs
authorGavi Teitz <gavi@mellanox.com>
Fri, 10 Aug 2018 08:30:07 +0000 (11:30 +0300)
committerSimon Horman <simon.horman@netronome.com>
Thu, 13 Sep 2018 14:56:25 +0000 (16:56 +0200)
commit0d6b401cf60d10809e4644105cf47c44b4bdc4ab
treecbbfe01745034e838827aeb3878999ebeb11f2e0
parent205639c253e698ae92de3e6661166a5fcb21e8d8
dpif-netdev: Initialize dpif_flow attrs

In a previous commit, the dpif_flow struct was expanded, with the
'offloaded' field being moved into a new struct which also includes a
field for the dp layer the flow is handled on. The initialization of
these fields was only done in dpif-netlink.

This completes that commit, by initializing the fields in dpif-netdev
as well. As the 'offloaded' field was previously ignored by
dpif-netdev, the attrs are initialized to the default values of
'false' for the offloaded state, and 'ovs' for the dp layer.

Fixes: d63ca5329ff9 ("dpctl: Properly reflect a rule's offloaded to HW state")
Signed-off-by: Gavi Teitz <gavi@mellanox.com>
Acked-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/dpif-netdev.c