ice: Enable switching default Tx scheduler topology
authorMichal Wilczynski <michal.wilczynski@intel.com>
Fri, 19 Apr 2024 08:08:52 +0000 (04:08 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Apr 2024 20:05:19 +0000 (13:05 -0700)
commitcc5776fe183208115e42c044497e193e4671a2b9
treef214c749207aa78bd6052ea64e0603204955f6c0
parent927127cda11ab91ebba84f74c70b56cb4160c569
ice: Enable switching default Tx scheduler topology

Introduce support for Tx scheduler topology change, based on user
selection, from default 9-layer to 5-layer.
Change requires NVM (version 3.20 or newer) and DDP package (OS Package
1.3.30 or newer - available for over a year in linux-firmware, since
commit aed71f296637 in linux-firmware ("ice: Update package to 1.3.30.0"))
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=aed71f296637

Enable 5-layer topology switch in init path of the driver. To accomplish
that upload of the DDP package needs to be delayed, until change in Tx
topology is finished. To trigger the Tx change user selection should be
changed in NVM using devlink. Then the platform should be rebooted.

Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Co-developed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c