From: Beilei Xing Date: Fri, 6 Jan 2017 05:27:16 +0000 (+0800) Subject: net/i40e: destroy flow directory filter X-Git-Tag: spdx-start~4853 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c41aca973b0c2026910819b924a8df1dfd926bd5;p=dpdk.git net/i40e: destroy flow directory filter This patch supports destroying a flow directory filter for users. Signed-off-by: Beilei Xing Acked-by: Jingjing Wu --- diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index c090d84061..e33da2d1bb 100644 --- a/drivers/net/i40e/i40e_flow.c +++ b/drivers/net/i40e/i40e_flow.c @@ -1629,6 +1629,10 @@ i40e_flow_destroy(struct rte_eth_dev *dev, ret = i40e_flow_destroy_tunnel_filter(pf, (struct i40e_tunnel_filter *)flow->rule); break; + case RTE_ETH_FILTER_FDIR: + ret = i40e_add_del_fdir_filter(dev, + &((struct i40e_fdir_filter *)flow->rule)->fdir, 0); + break; default: PMD_DRV_LOG(WARNING, "Filter type (%d) not supported", filter_type);