bnxt_en: Reduce maximum ring pages if page size is 64K.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 15 May 2016 07:04:46 +0000 (03:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2016 17:35:48 +0000 (13:35 -0400)
commitd0a42d6fc8eaf1b64f62b0bbc3b829b756eacf57
tree8472c0120feccbaa8270141480fcae7eb6a98e2b
parent90c4f788f6c08aaa52edbb47a817403376523375
bnxt_en: Reduce maximum ring pages if page size is 64K.

The chip supports 4K/8K/64K page sizes for the rings and we try to
match it to the CPU PAGE_SIZE.  The current page size limits for the rings
are based on 4K/8K page size. If the page size is 64K, these limits are
too large.  Reduce them appropriately.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.h