net/cxgbe: support flow API for matching QinQ VLAN
[dpdk.git] / drivers / net / cxgbe / base / t4_hw.c
index 71ad1cb..f6bf57c 100644 (file)
@@ -5254,13 +5254,6 @@ int t4_init_tp_params(struct adapter *adap)
        adap->params.tp.macmatch_shift = t4_filter_field_shift(adap,
                                                               F_MACMATCH);
 
-       /*
-        * If TP_INGRESS_CONFIG.VNID == 0, then TP_VLAN_PRI_MAP.VNIC_ID
-        * represents the presense of an Outer VLAN instead of a VNIC ID.
-        */
-       if ((adap->params.tp.ingress_config & F_VNIC) == 0)
-               adap->params.tp.vnic_shift = -1;
-
        v = t4_read_reg(adap, LE_3_DB_HASH_MASK_GEN_IPV4_T6_A);
        adap->params.tp.hash_filter_mask = v;
        v = t4_read_reg(adap, LE_4_DB_HASH_MASK_GEN_IPV4_T6_A);