Skip to contentSkip to conversation

Use correct shift factor for extracting the SGE DMA Ingress Padding ...

PATCH Applied Casey Leedom 1 participant 1 message Jun 29, 2010

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

PATCH 2/2 Use correct shift factor for extracting the SGE DMA Ingress Padding ...

Quoted 1 line

From d9aed637fc8a9f1bf1bccf6f23aed0342870f868 Mon Sep 17 00:00:00 2001

From: Casey Leedom <[email protected]>
Date: Tue, 29 Jun 2010 15:15:11 -0700
Subject: [PATCH 2/2] Use correct shift factor for extracting the SGE DMA Ingress Padding
Boundary. Was accidentally using the register field's shift which was close enough (4 instead of the propper value of 5) that it actually sort of worked for various packet sizes ...

---
 drivers/net/cxgb4vf/sge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4vf/sge.c +1 -1
index 5c4a81d..3a7c02f 100644
@@ -2432,7 +2432,7 @@ int t4vf_sge_init(struct adapter *adapter)
 	STAT_LEN = ((sge_params->sge_control & EGRSTATUSPAGESIZE) ? 128 : 64);
 	PKTSHIFT = PKTSHIFT_GET(sge_params->sge_control);
 	FL_ALIGN = 1 << (INGPADBOUNDARY_GET(sge_params->sge_control) +
-			 INGPADBOUNDARY_SHIFT);
+			 SGE_INGPADBOUNDARY_SHIFT);
 
 	/*
 	 * Set up tasklet timers.
Signature · 1 line
1.7.0.4