ice: Fix max_rate check while configuring TX rate limits
authorSridhar Samudrala <sridhar.samudrala@intel.com>
Sat, 10 Jun 2023 00:40:23 +0000 (17:40 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 5 Jul 2023 16:22:02 +0000 (09:22 -0700)
commit5f16da6ee6ac32e6c8098bc4cfcc4f170694f9da
tree22d36cf52d213059222b5ef0b9e7aff7bfadc283
parentc451410ca7e3d8eeb31d141fc20c200e21754ba4
ice: Fix max_rate check while configuring TX rate limits

Remove incorrect check in ice_validate_mqprio_opt() that limits
filter configuration when sum of max_rates of all TCs exceeds
the link speed. The max rate of each TC is unrelated to value
used by other TCs and is valid as long as it is less than link
speed.

Fixes: fbc7b27af0f9 ("ice: enable ndo_setup_tc support for mqprio_qdisc")
Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c