diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2019-11-06 02:05:39 -0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-11-08 12:03:12 -0800 |
commit | 964674f1ddc10a27702be63b241618570c611e9d (patch) | |
tree | 6c4e6ee5d54196493d25c6c4f820c9e2b55c1b23 /drivers/net/ethernet/intel/ice/ice_lib.h | |
parent | 87a2e4988994df699f674af33e5cc30db5bf0690 (diff) | |
download | linux-964674f1ddc10a27702be63b241618570c611e9d.tar.gz linux-964674f1ddc10a27702be63b241618570c611e9d.tar.bz2 linux-964674f1ddc10a27702be63b241618570c611e9d.zip |
ice: Introduce and use ice_vsi_type_str
ice_vsi_type_str converts an ice_vsi_type enum value to its string
equivalent. This is expected to help easily identify VSI types from
module print statements.
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.h b/drivers/net/ethernet/intel/ice/ice_lib.h index 2c5c01b7a582..e86aa60c0254 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.h +++ b/drivers/net/ethernet/intel/ice/ice_lib.h @@ -6,6 +6,8 @@ #include "ice.h" +const char *ice_vsi_type_str(enum ice_vsi_type type); + int ice_add_mac_to_list(struct ice_vsi *vsi, struct list_head *add_list, const u8 *macaddr); |