|
@@ -1269,11 +1269,8 @@ static int bnxt_tc_del_flow(struct bnxt *bp,
|
|
flow_node = rhashtable_lookup_fast(&tc_info->flow_table,
|
|
flow_node = rhashtable_lookup_fast(&tc_info->flow_table,
|
|
&tc_flow_cmd->cookie,
|
|
&tc_flow_cmd->cookie,
|
|
tc_info->flow_ht_params);
|
|
tc_info->flow_ht_params);
|
|
- if (!flow_node) {
|
|
|
|
- netdev_info(bp->dev, "ERROR: no flow_node for cookie %lx",
|
|
|
|
- tc_flow_cmd->cookie);
|
|
|
|
|
|
+ if (!flow_node)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- }
|
|
|
|
|
|
|
|
return __bnxt_tc_del_flow(bp, flow_node);
|
|
return __bnxt_tc_del_flow(bp, flow_node);
|
|
}
|
|
}
|
|
@@ -1290,11 +1287,8 @@ static int bnxt_tc_get_flow_stats(struct bnxt *bp,
|
|
flow_node = rhashtable_lookup_fast(&tc_info->flow_table,
|
|
flow_node = rhashtable_lookup_fast(&tc_info->flow_table,
|
|
&tc_flow_cmd->cookie,
|
|
&tc_flow_cmd->cookie,
|
|
tc_info->flow_ht_params);
|
|
tc_info->flow_ht_params);
|
|
- if (!flow_node) {
|
|
|
|
- netdev_info(bp->dev, "Error: no flow_node for cookie %lx",
|
|
|
|
- tc_flow_cmd->cookie);
|
|
|
|
|
|
+ if (!flow_node)
|
|
return -1;
|
|
return -1;
|
|
- }
|
|
|
|
|
|
|
|
flow = &flow_node->flow;
|
|
flow = &flow_node->flow;
|
|
curr_stats = &flow->stats;
|
|
curr_stats = &flow->stats;
|