[dpdk-dev] [PATCH] Use proper mac type for 82576 VF

Konstantin Ananyev konstantin.ananyev at intel.com
Tue May 6 13:28:39 CEST 2014


e1000_vfadapt type corresponds to 82576 VF devices,
check e1000_set_mac_type() for more details.
---
 lib/librte_pmd_e1000/igb_rxtx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c
index 6b454a5..7fe1780 100644
--- a/lib/librte_pmd_e1000/igb_rxtx.c
+++ b/lib/librte_pmd_e1000/igb_rxtx.c
@@ -2154,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 
-- 
1.7.7.6



More information about the dev mailing list