ice: Simplify tracking status of RDMA support
authorDave Ertman <david.m.ertman@intel.com>
Fri, 11 Feb 2022 18:26:03 +0000 (10:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 13:35:12 +0000 (13:35 +0000)
commit88f62aea1cff0c2ff84901dc11ceddf1eaf7021d
treead9f9b1b58167815e76616b169acb712f80e1fc8
parentd4e7592b6404c87c33be5159e5d06e21d9e5e7b8
ice: Simplify tracking status of RDMA support

The status of support for RDMA is currently being tracked with two
separate status flags. This is unnecessary with the current state of
the driver.

Simplify status tracking down to a single flag.

Rename the helper function to denote the RDMA specific status and
universally use the helper function to test the status bit.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Leszek Kaliszczuk <leszek.kaliszczuk@intel.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_idc.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_main.c