net/i40e: destroy flow directory filter
authorBeilei Xing <beilei.xing@intel.com>
Fri, 6 Jan 2017 05:27:16 +0000 (13:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:54 +0000 (19:40 +0100)
This patch supports destroying a flow directory filter
for users.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_flow.c

index c090d84..e33da2d 100644 (file)
@@ -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);