]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add bnxt_get_avail_cp_rings_for_en() helper function.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 16 Dec 2018 23:46:20 +0000 (18:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:08:53 +0000 (23:08 -0800)
commit6612cf93cd39d60bc80e22c4c3183ab589585c9b
tree2ff6df74c364b0afa3890b50b51aa7bf99f79b3f
parentb3d9b6efbb889316169d5267ce2a4cbfad9cc84e
bnxt_en: Add bnxt_get_avail_cp_rings_for_en() helper function.

The available CP rings are calculated differently on the new 57500
chips, so add this helper to do this calculation correctly.  The
VFs will be assigned these available CP rings.

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
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c