Skip to contentSkip to conversation

amd-xgbe: Set RSS enablement based on hardware features

PATCH Applied Tom Lendacky 2 participants 2 messages Feb 3, 2015 – Feb 5, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amd-xgbe: Set RSS enablement based on hardware features

The RSS support requires enablement based on the features reported by the hardware. The setting of this flag is missing. Add support to set the RSS enablement flag based on the reported hardware features.

---
 drivers/net/ethernet/amd/xgbe/xgbe-drv.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +1 -0
index 1246140..e5ffb2c 100644
@@ -523,6 +523,7 @@ void xgbe_get_all_hw_features(struct xgbe_prv_data *pdata)
 	hw_feat->sph           = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, SPHEN);
 	hw_feat->tso           = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, TSOEN);
 	hw_feat->dma_debug     = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DBGMEMA);
+	hw_feat->rss           = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, RSSEN);
 	hw_feat->tc_cnt	       = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, NUMTC);
 	hw_feat->hash_table_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R,
 						  HASHTBLSZ);
maintainer Applied
#1 lore raw

From: Tom Lendacky <[email protected]>
Date: Tue, 3 Feb 2015 14:14:32 -0600

Quoted 5 lines

The RSS support requires enablement based on the features reported by the hardware. The setting of this flag is missing. Add support to set the RSS enablement flag based on the reported hardware features.

Applied, thanks Tom.