bnxt_en: Modify bnxt_get_max_rings() to support shared or non shared rings.
authorMichael Chan <mchan@broadcom.com>
Sun, 3 Jan 2016 04:45:02 +0000 (23:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2016 20:54:40 +0000 (15:54 -0500)
commit6e6c5a57fbe1c77c2c55e266f87a83429adc3de7
tree8d0e9f435721f5f1c654134ae39fdb903837f521
parentb81a90d3028af92da61a61e2efd231a585180044
bnxt_en: Modify bnxt_get_max_rings() to support shared or non shared rings.

Add logic to calculate how many shared or non shared rings can be
supported.  Default is to use shared rings.

Signed-off-by: Michael Chan <mchan@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
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c