net/ice: Add support for enable_iwarp and enable_roce devlink param
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 18 Oct 2021 23:16:02 +0000 (18:16 -0500)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Nov 2021 16:41:56 +0000 (08:41 -0800)
commite523af4ee56090fbdd9cf474752448d35930bcd4
tree3a259fc79f9c2d65d75d5bc6347cae9322e9d5ef
parent325e0d0aa683a96b9d9cd5802be524d4da5e2dd2
net/ice: Add support for enable_iwarp and enable_roce devlink param

Allow support for 'enable_iwarp' and 'enable_roce' devlink params to turn
on/off iWARP or RoCE protocol support for E800 devices.

For example, a user can turn on iWARP functionality with,

devlink dev param set pci/0000:07:00.0 name enable_iwarp value true cmode runtime

This add an iWARP auxiliary rdma device, ice.iwarp.<>, under this PF.

A user request to enable both iWARP and RoCE under the same PF is rejected
since this device does not support both protocols simultaneously on the
same port.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Tested-by: Leszek Kaliszczuk <leszek.kaliszczuk@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_devlink.c
drivers/net/ethernet/intel/ice/ice_devlink.h
drivers/net/ethernet/intel/ice/ice_idc.c
drivers/net/ethernet/intel/ice/ice_main.c
include/linux/net/intel/iidc.h