vmxnet3" make ethtool ops const
All tables of function pointers should be const to make hacks more difficult. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Shreyas N Bhatewara <sbhatewara@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
813abbbaa3
commit
c8b88efc30
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ vmxnet3_set_rss_indir(struct net_device *netdev, const u32 *p)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct ethtool_ops vmxnet3_ethtool_ops = {
|
static const struct ethtool_ops vmxnet3_ethtool_ops = {
|
||||||
.get_settings = vmxnet3_get_settings,
|
.get_settings = vmxnet3_get_settings,
|
||||||
.get_drvinfo = vmxnet3_get_drvinfo,
|
.get_drvinfo = vmxnet3_get_drvinfo,
|
||||||
.get_regs_len = vmxnet3_get_regs_len,
|
.get_regs_len = vmxnet3_get_regs_len,
|
||||||
|
|
Loading…
Add table
Reference in a new issue