cnic,bnx2i,bnx2fc: Fix inconsistent use of page size
The bnx2/bnx2x rings are made up of linked pages. However there is an upper limit on the page size as some the page size settings are 16-bit in the hardware/firmware interface. In the current code, some parts use BNX2_PAGE_SIZE which has a 16K upper limit and some parts use PAGE_SIZE. On archs with >= 64K PAGE_SIZE, it generates some compile warnings. Define a new CNIC_PAGE_SZIE which has an upper limit of 16K and use it consistently in all relevant parts. Signed-off-by:Michael Chan <mchan@broadcom.com> Signed-off-by:
Eddie Wai <eddie.wai@broadcom.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/broadcom/cnic.c 52 additions, 52 deletionsdrivers/net/ethernet/broadcom/cnic.c
- drivers/net/ethernet/broadcom/cnic_if.h 10 additions, 0 deletionsdrivers/net/ethernet/broadcom/cnic_if.h
- drivers/scsi/bnx2fc/bnx2fc_io.c 8 additions, 8 deletionsdrivers/scsi/bnx2fc/bnx2fc_io.c
- drivers/scsi/bnx2fc/bnx2fc_tgt.c 21 additions, 17 deletionsdrivers/scsi/bnx2fc/bnx2fc_tgt.c
- drivers/scsi/bnx2i/bnx2i_hwi.c 26 additions, 26 deletionsdrivers/scsi/bnx2i/bnx2i_hwi.c
- drivers/scsi/bnx2i/bnx2i_iscsi.c 12 additions, 11 deletionsdrivers/scsi/bnx2i/bnx2i_iscsi.c
Loading
Please register or sign in to comment