[dpdk-dev] [PATCH 4/4] net/ice: rework switch filter

Ye Xiaolong xiaolong.ye at intel.com
Sun Sep 8 14:04:18 CEST 2019


On 09/04, Ying Wang wrote:
[snip]
>+
>+static void
>+ice_free_switch_filter_rule(struct rte_flow *flow)
>+{
>+	struct ice_rule_query_data *filter_ptr;
>+
>+	filter_ptr = (struct ice_rule_query_data *)
>+		flow->rule;
>+
>+	rte_free(filter_ptr);

What about directly call rte_free(flow->rule); ?



More information about the dev mailing list