Use correct shift factor for extracting the SGE DMA Ingress Padding ...
Subsystems (2)
PATCH 2/2 Use correct shift factor for extracting the SGE DMA Ingress Padding ...
Quoted 1 line
From
d9aed637fc8a9f1bf1bccf6f23aed0342870f868Mon 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 ...
Signed-off-by Casey Leedom <[email protected]>
--- drivers/net/cxgb4vf/sge.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4vf/sge.c +1 -1
@@ -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