ixgbevf: make ethtool ops and strings const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
375b27cf5d
commit
b47aca135d
|
@ -56,7 +56,8 @@ struct ixgbe_stats {
|
||||||
offsetof(struct ixgbevf_adapter, m), \
|
offsetof(struct ixgbevf_adapter, m), \
|
||||||
offsetof(struct ixgbevf_adapter, b), \
|
offsetof(struct ixgbevf_adapter, b), \
|
||||||
offsetof(struct ixgbevf_adapter, r)
|
offsetof(struct ixgbevf_adapter, r)
|
||||||
static struct ixgbe_stats ixgbe_gstrings_stats[] = {
|
|
||||||
|
static const struct ixgbe_stats ixgbe_gstrings_stats[] = {
|
||||||
{"rx_packets", IXGBEVF_STAT(stats.vfgprc, stats.base_vfgprc,
|
{"rx_packets", IXGBEVF_STAT(stats.vfgprc, stats.base_vfgprc,
|
||||||
stats.saved_reset_vfgprc)},
|
stats.saved_reset_vfgprc)},
|
||||||
{"tx_packets", IXGBEVF_STAT(stats.vfgptc, stats.base_vfgptc,
|
{"tx_packets", IXGBEVF_STAT(stats.vfgptc, stats.base_vfgptc,
|
||||||
|
@ -671,7 +672,7 @@ static int ixgbevf_nway_reset(struct net_device *netdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ethtool_ops ixgbevf_ethtool_ops = {
|
static const struct ethtool_ops ixgbevf_ethtool_ops = {
|
||||||
.get_settings = ixgbevf_get_settings,
|
.get_settings = ixgbevf_get_settings,
|
||||||
.get_drvinfo = ixgbevf_get_drvinfo,
|
.get_drvinfo = ixgbevf_get_drvinfo,
|
||||||
.get_regs_len = ixgbevf_get_regs_len,
|
.get_regs_len = ixgbevf_get_regs_len,
|
||||||
|
|
Loading…
Reference in New Issue