diff options
| author | 2024-03-25 15:28:57 -0700 | |
|---|---|---|
| committer | 2024-03-28 22:34:40 -0700 | |
| commit | b09353437b28ff8786e60aa9bd560a4474facfc0 (patch) | |
| tree | 8579db7d747c37368838a7cd92f2aee1543057bf /net/unix/garbage.c | |
| parent | bnxt_en: Refactor RSS indir alloc/set functions (diff) | |
| download | wireguard-linux-b09353437b28ff8786e60aa9bd560a4474facfc0.tar.xz wireguard-linux-b09353437b28ff8786e60aa9bd560a4474facfc0.zip | |
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/garbage.c')
0 files changed, 0 insertions, 0 deletions
