forked from mirrors/linux
		
	net/mlx5e: Un-expose functions in en.h
Un-expose functions that are not used outside of their c file. Make them static. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Link: https://lore.kernel.org/r/20240404173357.123307-6-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
		
							parent
							
								
									4aafb8ab2a
								
							
						
					
					
						commit
						958f56e483
					
				
					 3 changed files with 12 additions and 24 deletions
				
			
		|  | @ -1143,7 +1143,6 @@ void mlx5e_close_drop_rq(struct mlx5e_rq *drop_rq); | ||||||
| int mlx5e_create_tis(struct mlx5_core_dev *mdev, void *in, u32 *tisn); | int mlx5e_create_tis(struct mlx5_core_dev *mdev, void *in, u32 *tisn); | ||||||
| void mlx5e_destroy_tis(struct mlx5_core_dev *mdev, u32 tisn); | void mlx5e_destroy_tis(struct mlx5_core_dev *mdev, u32 tisn); | ||||||
| 
 | 
 | ||||||
| int mlx5e_update_nic_rx(struct mlx5e_priv *priv); |  | ||||||
| void mlx5e_update_carrier(struct mlx5e_priv *priv); | void mlx5e_update_carrier(struct mlx5e_priv *priv); | ||||||
| int mlx5e_close(struct net_device *netdev); | int mlx5e_close(struct net_device *netdev); | ||||||
| int mlx5e_open(struct net_device *netdev); | int mlx5e_open(struct net_device *netdev); | ||||||
|  | @ -1180,23 +1179,12 @@ int mlx5e_ethtool_set_coalesce(struct mlx5e_priv *priv, | ||||||
| 			       struct ethtool_coalesce *coal, | 			       struct ethtool_coalesce *coal, | ||||||
| 			       struct kernel_ethtool_coalesce *kernel_coal, | 			       struct kernel_ethtool_coalesce *kernel_coal, | ||||||
| 			       struct netlink_ext_ack *extack); | 			       struct netlink_ext_ack *extack); | ||||||
| int mlx5e_ethtool_get_link_ksettings(struct mlx5e_priv *priv, |  | ||||||
| 				     struct ethtool_link_ksettings *link_ksettings); |  | ||||||
| int mlx5e_ethtool_set_link_ksettings(struct mlx5e_priv *priv, |  | ||||||
| 				     const struct ethtool_link_ksettings *link_ksettings); |  | ||||||
| int mlx5e_get_rxfh(struct net_device *dev, struct ethtool_rxfh_param *rxfh); |  | ||||||
| int mlx5e_set_rxfh(struct net_device *dev, struct ethtool_rxfh_param *rxfh, |  | ||||||
| 		   struct netlink_ext_ack *extack); |  | ||||||
| u32 mlx5e_ethtool_get_rxfh_key_size(struct mlx5e_priv *priv); | u32 mlx5e_ethtool_get_rxfh_key_size(struct mlx5e_priv *priv); | ||||||
| u32 mlx5e_ethtool_get_rxfh_indir_size(struct mlx5e_priv *priv); | u32 mlx5e_ethtool_get_rxfh_indir_size(struct mlx5e_priv *priv); | ||||||
| int mlx5e_ethtool_get_ts_info(struct mlx5e_priv *priv, | int mlx5e_ethtool_get_ts_info(struct mlx5e_priv *priv, | ||||||
| 			      struct ethtool_ts_info *info); | 			      struct ethtool_ts_info *info); | ||||||
| int mlx5e_ethtool_flash_device(struct mlx5e_priv *priv, | int mlx5e_ethtool_flash_device(struct mlx5e_priv *priv, | ||||||
| 			       struct ethtool_flash *flash); | 			       struct ethtool_flash *flash); | ||||||
| void mlx5e_ethtool_get_pauseparam(struct mlx5e_priv *priv, |  | ||||||
| 				  struct ethtool_pauseparam *pauseparam); |  | ||||||
| int mlx5e_ethtool_set_pauseparam(struct mlx5e_priv *priv, |  | ||||||
| 				 struct ethtool_pauseparam *pauseparam); |  | ||||||
| 
 | 
 | ||||||
| /* mlx5e generic netdev management API */ | /* mlx5e generic netdev management API */ | ||||||
| static inline bool | static inline bool | ||||||
|  |  | ||||||
|  | @ -996,7 +996,7 @@ static void get_lp_advertising(struct mlx5_core_dev *mdev, u32 eth_proto_lp, | ||||||
| 	ptys2ethtool_adver_link(lp_advertising, eth_proto_lp, ext); | 	ptys2ethtool_adver_link(lp_advertising, eth_proto_lp, ext); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_ethtool_get_link_ksettings(struct mlx5e_priv *priv, | static int mlx5e_ethtool_get_link_ksettings(struct mlx5e_priv *priv, | ||||||
| 					    struct ethtool_link_ksettings *link_ksettings) | 					    struct ethtool_link_ksettings *link_ksettings) | ||||||
| { | { | ||||||
| 	struct mlx5_core_dev *mdev = priv->mdev; | 	struct mlx5_core_dev *mdev = priv->mdev; | ||||||
|  | @ -1167,7 +1167,7 @@ static bool ext_requested(u8 autoneg, const unsigned long *adver, bool ext_suppo | ||||||
| 	return  autoneg == AUTONEG_ENABLE ? ext_link_mode : ext_supported; | 	return  autoneg == AUTONEG_ENABLE ? ext_link_mode : ext_supported; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_ethtool_set_link_ksettings(struct mlx5e_priv *priv, | static int mlx5e_ethtool_set_link_ksettings(struct mlx5e_priv *priv, | ||||||
| 					    const struct ethtool_link_ksettings *link_ksettings) | 					    const struct ethtool_link_ksettings *link_ksettings) | ||||||
| { | { | ||||||
| 	struct mlx5_core_dev *mdev = priv->mdev; | 	struct mlx5_core_dev *mdev = priv->mdev; | ||||||
|  | @ -1268,7 +1268,7 @@ static u32 mlx5e_get_rxfh_indir_size(struct net_device *netdev) | ||||||
| 	return mlx5e_ethtool_get_rxfh_indir_size(priv); | 	return mlx5e_ethtool_get_rxfh_indir_size(priv); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_get_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh) | static int mlx5e_get_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh) | ||||||
| { | { | ||||||
| 	struct mlx5e_priv *priv = netdev_priv(netdev); | 	struct mlx5e_priv *priv = netdev_priv(netdev); | ||||||
| 	u32 rss_context = rxfh->rss_context; | 	u32 rss_context = rxfh->rss_context; | ||||||
|  | @ -1281,7 +1281,7 @@ int mlx5e_get_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh) | ||||||
| 	return err; | 	return err; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_set_rxfh(struct net_device *dev, struct ethtool_rxfh_param *rxfh, | static int mlx5e_set_rxfh(struct net_device *dev, struct ethtool_rxfh_param *rxfh, | ||||||
| 			  struct netlink_ext_ack *extack) | 			  struct netlink_ext_ack *extack) | ||||||
| { | { | ||||||
| 	struct mlx5e_priv *priv = netdev_priv(dev); | 	struct mlx5e_priv *priv = netdev_priv(dev); | ||||||
|  | @ -1411,7 +1411,7 @@ static void mlx5e_get_pause_stats(struct net_device *netdev, | ||||||
| 	mlx5e_stats_pause_get(priv, pause_stats); | 	mlx5e_stats_pause_get(priv, pause_stats); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void mlx5e_ethtool_get_pauseparam(struct mlx5e_priv *priv, | static void mlx5e_ethtool_get_pauseparam(struct mlx5e_priv *priv, | ||||||
| 					 struct ethtool_pauseparam *pauseparam) | 					 struct ethtool_pauseparam *pauseparam) | ||||||
| { | { | ||||||
| 	struct mlx5_core_dev *mdev = priv->mdev; | 	struct mlx5_core_dev *mdev = priv->mdev; | ||||||
|  | @ -1433,7 +1433,7 @@ static void mlx5e_get_pauseparam(struct net_device *netdev, | ||||||
| 	mlx5e_ethtool_get_pauseparam(priv, pauseparam); | 	mlx5e_ethtool_get_pauseparam(priv, pauseparam); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_ethtool_set_pauseparam(struct mlx5e_priv *priv, | static int mlx5e_ethtool_set_pauseparam(struct mlx5e_priv *priv, | ||||||
| 					struct ethtool_pauseparam *pauseparam) | 					struct ethtool_pauseparam *pauseparam) | ||||||
| { | { | ||||||
| 	struct mlx5_core_dev *mdev = priv->mdev; | 	struct mlx5_core_dev *mdev = priv->mdev; | ||||||
|  |  | ||||||
|  | @ -5562,7 +5562,7 @@ static void mlx5e_nic_disable(struct mlx5e_priv *priv) | ||||||
| 	mlx5e_ipsec_cleanup(priv); | 	mlx5e_ipsec_cleanup(priv); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int mlx5e_update_nic_rx(struct mlx5e_priv *priv) | static int mlx5e_update_nic_rx(struct mlx5e_priv *priv) | ||||||
| { | { | ||||||
| 	return mlx5e_refresh_tirs(priv, false, false); | 	return mlx5e_refresh_tirs(priv, false, false); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Tariq Toukan
						Tariq Toukan