diff options
author | Michael Chan <michael.chan@broadcom.com> | 2024-03-25 15:28:57 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-28 22:34:40 -0700 |
commit | b09353437b28ff8786e60aa9bd560a4474facfc0 (patch) | |
tree | 8579db7d747c37368838a7cd92f2aee1543057bf /net/unix/af_unix.c | |
parent | ecb342bb6098fa13f2719f8baaab4475e404f784 (diff) |
bnxt_en: Simplify bnxt_rfs_capable()
bnxt_rfs_capable() determines the number of VNICs and RSS_CTXs
required to support aRFS and then reserves the resources. We already
have functions bnxt_get_total_vnics() and bnxt_get_total_rss_ctxs()
to do that. Simplify the code by calling these functions. It is
also more correct to do the resource reservation after
bnxt_can_reserve_rings() returns true.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20240325222902.220712-8-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions