OSDN Git Service

octeontx2-af: fixed resource availability check
authorSatha Rao <skoteshwar@marvell.com>
Thu, 8 Jun 2023 11:42:00 +0000 (17:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2023 18:53:02 +0000 (19:53 +0100)
commit4e635f9d86165e47f5440196f2ebdb258efb8341
treecd21b82a6ce1db295637508306a5d73a55cd83ff
parent1b8975f30abffc4f74f1ba049f9042e7d8f646cc
octeontx2-af: fixed resource availability check

txschq_alloc response have two different arrays to store continuous
and non-continuous schedulers of each level. Requested count should
be checked for each array separately.

Fixes: 5d9b976d4480 ("octeontx2-af: Support fixed transmit scheduler topology")
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c