#include "en.h"
#include "ipoib.h"
#include "en/fs_ethtool.h"
static void mlx5i_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *drvinfo)
{ … }
static void mlx5i_get_strings(struct net_device *dev, u32 stringset, u8 *data)
{ … }
static int mlx5i_get_sset_count(struct net_device *dev, int sset)
{ … }
static void mlx5i_get_ethtool_stats(struct net_device *dev,
struct ethtool_stats *stats,
u64 *data)
{ … }
static int mlx5i_set_ringparam(struct net_device *dev,
struct ethtool_ringparam *param,
struct kernel_ethtool_ringparam *kernel_param,
struct netlink_ext_ack *extack)
{ … }
static void mlx5i_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *param,
struct kernel_ethtool_ringparam *kernel_param,
struct netlink_ext_ack *extack)
{ … }
static int mlx5i_set_channels(struct net_device *dev,
struct ethtool_channels *ch)
{ … }
static void mlx5i_get_channels(struct net_device *dev,
struct ethtool_channels *ch)
{ … }
static int mlx5i_set_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coal,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
{ … }
static int mlx5i_get_coalesce(struct net_device *netdev,
struct ethtool_coalesce *coal,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
{ … }
static int mlx5i_get_ts_info(struct net_device *netdev,
struct kernel_ethtool_ts_info *info)
{ … }
static int mlx5i_flash_device(struct net_device *netdev,
struct ethtool_flash *flash)
{ … }
static inline int mlx5_ptys_width_enum_to_int(enum mlx5_ptys_width width)
{ … }
enum mlx5_ptys_rate { … };
static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
{ … }
static u32 mlx5i_get_speed_settings(u16 ib_link_width_oper, u16 ib_proto_oper)
{ … }
static int mlx5i_get_link_ksettings(struct net_device *netdev,
struct ethtool_link_ksettings *link_ksettings)
{ … }
static u32 mlx5i_flow_type_mask(u32 flow_type)
{ … }
static int mlx5i_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd)
{ … }
static int mlx5i_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
u32 *rule_locs)
{ … }
const struct ethtool_ops mlx5i_ethtool_ops = …;
const struct ethtool_ops mlx5i_pkey_ethtool_ops = …;