diff options
author | Michael Chan <mchan@broadcom.com> | 2014-03-17 19:19:07 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-18 16:02:16 -0400 |
commit | be1fefc21433f6202fcd76bdc7916e557fe80b9a (patch) | |
tree | 48f0fcfefc21f1be95c27673435c8c5cf2a5e15c /drivers/net/Makefile | |
parent | f7bd12d09ed6e4093a56dbbfbe8411cc52a738d1 (diff) | |
download | kernel-common-be1fefc21433f6202fcd76bdc7916e557fe80b9a.tar.gz kernel-common-be1fefc21433f6202fcd76bdc7916e557fe80b9a.tar.bz2 kernel-common-be1fefc21433f6202fcd76bdc7916e557fe80b9a.zip |
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>
Diffstat (limited to 'drivers/net/Makefile')
0 files changed, 0 insertions, 0 deletions