ice: Add support for VF rate limiting
authorBrett Creeley <brett.creeley@intel.com>
Mon, 13 Sep 2021 18:22:19 +0000 (11:22 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 19 Oct 2021 16:22:31 +0000 (09:22 -0700)
commit4ecc8633056b8d2f214c6ce860a50837e5c8fb41
tree1c4ff4b3c3ea030d80676bf3017460319eb5c935
parent05be94633783ffb3ad5b0aca7f6cff08cad6868d
ice: Add support for VF rate limiting

Implement ndo_set_vf_rate to support setting of min_tx_rate and
max_tx_rate; set the appropriate bandwidth in the scheduler for the
node representing the specified VF VSI.

Co-developed-by: Tarun Singh <tarun.k.singh@intel.com>
Signed-off-by: Tarun Singh <tarun.k.singh@intel.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_sched.c
drivers/net/ethernet/intel/ice/ice_sched.h
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h