igbvf: fix mac type for 82576
[dpdk.git] / lib / librte_pmd_e1000 / igb_rxtx.c
index 4608595..7fe1780 100644 (file)
@@ -2077,6 +2077,11 @@ eth_igbvf_rx_init(struct rte_eth_dev *dev)
 
        hw = E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 
+       /* setup MTU */
+       e1000_rlpml_set_vf(hw,
+               (uint16_t)(dev->data->dev_conf.rxmode.max_rx_pkt_len +
+               VLAN_TAG_SIZE));
+
        /* Configure and enable each RX queue. */
        rctl_bsize = 0;
        dev->rx_pkt_burst = eth_igb_recv_pkts;
@@ -2149,7 +2154,7 @@ eth_igbvf_rx_init(struct rte_eth_dev *dev)
                rxdctl &= 0xFFF00000;
                rxdctl |= (rxq->pthresh & 0x1F);
                rxdctl |= ((rxq->hthresh & 0x1F) << 8);
-               if (hw->mac.type == e1000_82576) {
+               if (hw->mac.type == e1000_vfadapt) {
                        /* 
                         * Workaround of 82576 VF Erratum
                         * force set WTHRESH to 1