eal: fix dynamic link with virtio
[dpdk.git] / lib / librte_pmd_i40e / i40e_ethdev_vf.c
index 7ef7d58..7d8d8ef 100644 (file)
@@ -1673,7 +1673,6 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 static void
 i40evf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 {
-       memset(stats, 0, sizeof(*stats));
        if (i40evf_get_statics(dev, stats))
                PMD_DRV_LOG(ERR, "Get statics failed");
 }
@@ -1760,7 +1759,7 @@ i40evf_dev_rss_reta_query(struct rte_eth_dev *dev,
                lut = I40E_READ_REG(hw, I40E_VFQF_HLUT(i >> 2));
                for (j = 0; j < I40E_4_BIT_WIDTH; j++) {
                        if (mask & (0x1 << j))
-                               reta_conf[idx].reta[shift] =
+                               reta_conf[idx].reta[shift + j] =
                                        ((lut >> (CHAR_BIT * j)) &
                                                I40E_8_BIT_MASK);
                }