New upstream version 17.11.3
[deb_dpdk.git] / drivers / net / i40e / i40e_flow.c
index 37380e6..4ebf925 100644 (file)
@@ -2418,7 +2418,7 @@ i40e_flow_fdir_get_pctype_value(struct i40e_pf *pf,
                break;
        }
 
-       if (cus_pctype)
+       if (cus_pctype && cus_pctype->valid)
                return cus_pctype->pctype;
 
        return I40E_FILTER_PCTYPE_INVALID;