ice: Implement devlink port split operations
authorAnatolii Gerasymenko <anatolii.gerasymenko@intel.com>
Thu, 11 Aug 2022 13:05:35 +0000 (15:05 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 24 Aug 2022 15:45:55 +0000 (08:45 -0700)
commit26d1c571e16a4ca8c144f6627245eb8209f326c2
tree62667e125408935c0ac6a94395ebaf5e24018a73
parentda02ee9c220bcc8abbb97473dbf82aad28de80cc
ice: Implement devlink port split operations

Allow to configure port split options using the devlink port split
interface. Support port splitting only for port 0, as the FW has
a predefined set of available port split options for the whole device.

Add ice_devlink_port_options_print() function to print the table with
all available FW port split options. It will be printed after each port
split and unsplit command.

Add documentation for devlink port split interface usage for the ice
driver.

Co-developed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Documentation/networking/devlink/ice.rst
drivers/net/ethernet/intel/ice/ice_devlink.c
drivers/net/ethernet/intel/ice/ice_type.h