net/cxgbe: support flow API for matching IP TOS
[dpdk.git] / drivers / net / cxgbe / base / t4_hw.c
index 71ad1cb..cd4da0b 100644 (file)
@@ -5253,13 +5253,7 @@ int t4_init_tp_params(struct adapter *adap)
                                                                F_ETHERTYPE);
        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;
+       adap->params.tp.tos_shift = t4_filter_field_shift(adap, F_TOS);
 
        v = t4_read_reg(adap, LE_3_DB_HASH_MASK_GEN_IPV4_T6_A);
        adap->params.tp.hash_filter_mask = v;