]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cxgb4vf: Use correct shift factor for extracting the SGE DMA Ingress Padding Boundary
authorCasey Leedom <leedom@chelsio.com>
Tue, 29 Jun 2010 12:54:12 +0000 (12:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jun 2010 20:57:12 +0000 (13:57 -0700)
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>
drivers/net/cxgb4vf/sge.c

index 5c4a81dae19a11b7d307c3c42694a03318058eac..3a7c02f98a4d8cfc3fcb14f473e9a4e192be7d67 100644 (file)
@@ -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.