]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f77cabdff73b218346616729088d61f74ea6403
treede9540b2d0d3f4c73f79d335d76183e819b07d98
parent69109748de4d46761b6d189a3594c2c73fec6691
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