diff options
author | Michael Chan <michael.chan@broadcom.com> | 2024-02-20 15:03:11 -0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-22 15:31:23 +0100 |
commit | 9294299867734ceff303012cd6ec98990fbd78e6 (patch) | |
tree | 89ea11e08db31959c85b1699f0af755eda66f590 /net/unix/sysctl_net_unix.c | |
parent | 438ba39b25fe71fc9cd862f30d25e54ed8f00603 (diff) | |
download | linux-9294299867734ceff303012cd6ec98990fbd78e6.tar.gz linux-9294299867734ceff303012cd6ec98990fbd78e6.tar.bz2 linux-9294299867734ceff303012cd6ec98990fbd78e6.zip |
bnxt_en: Check additional resources in bnxt_check_rings()
bnxt_check_rings() is called to check if we have enough resource
assets to satisfy the new number of ethtool channels. If the asset
test fails, the ethtool operation will fail gracefully. Otherwise
we will proceed and commit to use the new number of channels. If it
fails to allocate any resources, the chip will fail to come up.
For completeness, check all possible resources before committing to
the new settings. Add the missing ring group and RSS context asset
tests in bnxt_check_rings().
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions