OSDN Git Service

bnxt_en: Refactor the functions to reserve hardware rings.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 10 Mar 2018 04:46:03 +0000 (23:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 14:57:23 +0000 (10:57 -0400)
commit4ed50ef4da4d113fe65d9f9d049c1ce7468e3ac1
treede9540b2d0d3f4c73f79d335d76183e819b07d98
parenta2c054a896b8ac794ddcfc7c92e2dc7ec4ed4ed5
bnxt_en: Refactor the functions to reserve hardware rings.

The bnxt_hwrm_reserve_{pf|vf}_rings() functions are very similar to
the bnxt_hwrm_check_{pf|vf}_rings() functions.  Refactor the former
so that the latter can make use of common code in the next patch.

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