X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbonding%2Frte_eth_bond_flow.c;h=31e4bcaeb3470ba359f935c9c8938daa6ef9441c;hb=c6034a20d9e221dc6125db57e4378520af3a515d;hp=8093c04f57bd08ef33d56913479873fd76ffd90c;hpb=49dad9028e2ac2c9576c41bda13ae62814cb6e97;p=dpdk.git diff --git a/drivers/net/bonding/rte_eth_bond_flow.c b/drivers/net/bonding/rte_eth_bond_flow.c index 8093c04f57..31e4bcaeb3 100644 --- a/drivers/net/bonding/rte_eth_bond_flow.c +++ b/drivers/net/bonding/rte_eth_bond_flow.c @@ -152,6 +152,7 @@ bond_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *err) static int bond_flow_query_count(struct rte_eth_dev *dev, struct rte_flow *flow, + const struct rte_flow_action *action, struct rte_flow_query_count *count, struct rte_flow_error *err) { @@ -165,7 +166,7 @@ bond_flow_query_count(struct rte_eth_dev *dev, struct rte_flow *flow, rte_memcpy(&slave_count, count, sizeof(slave_count)); for (i = 0; i < internals->slave_count; i++) { ret = rte_flow_query(internals->slaves[i].port_id, - flow->flows[i], RTE_FLOW_ACTION_TYPE_COUNT, + flow->flows[i], action, &slave_count, err); if (unlikely(ret != 0)) { RTE_BOND_LOG(ERR, "Failed to query flow on" @@ -182,12 +183,12 @@ bond_flow_query_count(struct rte_eth_dev *dev, struct rte_flow *flow, static int bond_flow_query(struct rte_eth_dev *dev, struct rte_flow *flow, - enum rte_flow_action_type type, void *arg, + const struct rte_flow_action *action, void *arg, struct rte_flow_error *err) { - switch (type) { + switch (action->type) { case RTE_FLOW_ACTION_TYPE_COUNT: - return bond_flow_query_count(dev, flow, arg, err); + return bond_flow_query_count(dev, flow, action, arg, err); default: return rte_flow_error_set(err, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION, arg,