diff options
author | Dave Ertman <david.m.ertman@intel.com> | 2022-02-11 10:26:03 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-14 13:35:12 +0000 |
commit | 88f62aea1cff0c2ff84901dc11ceddf1eaf7021d (patch) | |
tree | ad9f9b1b58167815e76616b169acb712f80e1fc8 /drivers/net/ethernet/intel/ice/ice_lib.c | |
parent | d4e7592b6404c87c33be5159e5d06e21d9e5e7b8 (diff) | |
download | lwn-88f62aea1cff0c2ff84901dc11ceddf1eaf7021d.tar.gz lwn-88f62aea1cff0c2ff84901dc11ceddf1eaf7021d.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index f23917d6a495..7a1cb29e5bcb 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -733,14 +733,14 @@ bool ice_is_safe_mode(struct ice_pf *pf) } /** - * ice_is_aux_ena + * ice_is_rdma_ena * @pf: pointer to the PF struct * - * returns true if AUX devices/drivers are supported, false otherwise + * returns true if RDMA is currently supported, false otherwise */ -bool ice_is_aux_ena(struct ice_pf *pf) +bool ice_is_rdma_ena(struct ice_pf *pf) { - return test_bit(ICE_FLAG_AUX_ENA, pf->flags); + return test_bit(ICE_FLAG_RDMA_ENA, pf->flags); } /** |