aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCasey Leedom <leedom@chelsio.com>2010-06-29 08:54:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-30 16:57:12 -0400
commitb3003be36a3c9215cd17182349981581de269048 (patch)
tree73ea04abe84b2452ffe47a327008ecd8313cd4cc /drivers
parent64bb336c8f4de8b281d0d44f2ec2c900b9b28466 (diff)
cxgb4vf: Use correct shift factor for extracting the SGE DMA Ingress Padding Boundary
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 ... Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/cxgb4vf/sge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/sge.c b/drivers/net/cxgb4vf/sge.c
index 5c4a81dae19a..3a7c02f98a4d 100644
--- a/drivers/net/cxgb4vf/sge.c
+++ b/drivers/net/cxgb4vf/sge.c
@@ -2432,7 +2432,7 @@ int t4vf_sge_init(struct adapter *adapter)
2432 STAT_LEN = ((sge_params->sge_control & EGRSTATUSPAGESIZE) ? 128 : 64); 2432 STAT_LEN = ((sge_params->sge_control & EGRSTATUSPAGESIZE) ? 128 : 64);
2433 PKTSHIFT = PKTSHIFT_GET(sge_params->sge_control); 2433 PKTSHIFT = PKTSHIFT_GET(sge_params->sge_control);
2434 FL_ALIGN = 1 << (INGPADBOUNDARY_GET(sge_params->sge_control) + 2434 FL_ALIGN = 1 << (INGPADBOUNDARY_GET(sge_params->sge_control) +
2435 INGPADBOUNDARY_SHIFT); 2435 SGE_INGPADBOUNDARY_SHIFT);
2436 2436
2437 /* 2437 /*
2438 * Set up tasklet timers. 2438 * Set up tasklet timers.