dpif-netdev: Populate dpif class field in offload struct.
Populate dpif class field in offload struct to be used in offloading
flow put.
@@ -2396,6 +2396,7 @@ static int
dp_netdev_flow_offload_put(struct dp_flow_offload_item *offload)
{
struct dp_netdev_pmd_thread *pmd = offload->pmd;
+ const struct dpif_class *dpif_class = pmd->dp->class;
struct dp_netdev_flow *flow = offload->flow;
odp_port_t in_port = flow->flow.in_port.odp_port;
bool modification = offload->op == DP_NETDEV_FLOW_OFFLOAD_OP_MOD;
@@ -2433,6 +2434,7 @@ dp_netdev_flow_offload_put(struct dp_flow_offload_item *offload)
}
}
info.flow_mark = mark;
+ info.dpif_class = dpif_class;
port = netdev_ports_get(in_port, pmd->dp->class);
if (!port || netdev_vport_is_vport_class(port->netdev_class)) {
