bnxt_en: Parameterize RX buffer offsets.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:35 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:30:58 +0000 (13:30 -0500)
commitb3dba77cf0acb6e44b368979026df975658332bc
tree841b21f71a7d7a1a7be6412e604a92e92ff9f35a
parent745fc05c9db1f17da076861c7f57507e13f28a3a
bnxt_en: Parameterize RX buffer offsets.

Convert the global constants BNXT_RX_OFFSET and BNXT_RX_DMA_OFFSET to
device parameters.  This will make it easier to support XDP with
headroom support which requires different RX buffer offsets.

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