From: Casey Leedom Date: Tue, 29 Jun 2010 12:54:12 +0000 (+0000) Subject: cxgb4vf: Use correct shift factor for extracting the SGE DMA Ingress Padding Boundary X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3003be36a3c9215cd17182349981581de269048;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) 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.