Skip to content

Commit

Permalink
cxgb4vf: Use correct shift factor for extracting the SGE DMA Ingress …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Casey Leedom authored and David S. Miller committed Jun 30, 2010
1 parent 64bb336 commit b3003be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb4vf/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b3003be

Please sign in to comment.