mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
bnx2x: Adding restriction on sge_buf_size
sge_buff_size may not be more than 0xffff. Reported-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Tested-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c035002472
commit
916c775ff2
1 changed files with 2 additions and 1 deletions
|
@ -4518,7 +4518,8 @@ static void bnx2x_init_context(struct bnx2x *bp)
|
|||
(USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA |
|
||||
USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING);
|
||||
context->ustorm_st_context.common.sge_buff_size =
|
||||
(u16)(BCM_PAGE_SIZE*PAGES_PER_SGE);
|
||||
(u16)min((u32)SGE_PAGE_SIZE*PAGES_PER_SGE,
|
||||
(u32)0xffff);
|
||||
context->ustorm_st_context.common.sge_page_base_hi =
|
||||
U64_HI(fp->rx_sge_mapping);
|
||||
context->ustorm_st_context.common.sge_page_base_lo =
|
||||
|
|
Loading…
Reference in a new issue