net/af_packet: run on kernel without qdisc bypass support
[dpdk.git] / drivers / net / i40e / i40e_flow.c
index 2cc9ad9..3c1570b 100644 (file)
@@ -4897,7 +4897,7 @@ i40e_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error)
 static int
 i40e_flow_flush_fdir_filter(struct i40e_pf *pf)
 {
-       struct rte_eth_dev *dev = pf->adapter->eth_dev;
+       struct rte_eth_dev *dev = &rte_eth_devices[pf->dev_data->port_id];
        struct i40e_fdir_info *fdir_info = &pf->fdir;
        struct i40e_fdir_filter *fdir_filter;
        enum i40e_filter_pctype pctype;
@@ -4940,7 +4940,7 @@ i40e_flow_flush_fdir_filter(struct i40e_pf *pf)
 
                for (pctype = I40E_FILTER_PCTYPE_NONF_IPV4_UDP;
                     pctype <= I40E_FILTER_PCTYPE_L2_PAYLOAD; pctype++) {
-                       pf->fdir.inset_flag[pctype] = 0;
+                       pf->fdir.flow_count[pctype] = 0;
                        pf->fdir.flex_mask_flag[pctype] = 0;
                }