bnxt_en: Add Level 2 context memory paging support.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 20 Dec 2018 08:38:50 +0000 (03:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 16:26:16 +0000 (08:26 -0800)
commit08fe9d1816067170e167867d06009fb0f41cb411
treeb5b73defe3f6a2763a67675a395d0db73c9f9216
parent4f49b2b8d4167b712ce876bff08bd9606a44f7a6
bnxt_en: Add Level 2 context memory paging support.

Add the new functions bnxt_alloc_ctx_pg_tbls()/bnxt_free_ctx_pg_tbls()
to allocate and free pages for context memory.  The new functions
will handle the different levels of paging support and allocate/free
the pages accordingly using the existing functions.

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