Commit cbf2d604 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

vmxnet3: Remove incorrect implementation of ethtool_ops::get_flags()

Only some netdev feature flags correspond directly to ethtool feature
flags.  ethtool_op_get_flags() does the right thing.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarBhavesh Davda <bhavesh@vmware.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 97d1935a
...@@ -275,12 +275,6 @@ vmxnet3_get_strings(struct net_device *netdev, u32 stringset, u8 *buf) ...@@ -275,12 +275,6 @@ vmxnet3_get_strings(struct net_device *netdev, u32 stringset, u8 *buf)
} }
} }
static u32
vmxnet3_get_flags(struct net_device *netdev)
{
return netdev->features;
}
static int static int
vmxnet3_set_flags(struct net_device *netdev, u32 data) vmxnet3_set_flags(struct net_device *netdev, u32 data)
{ {
...@@ -559,7 +553,7 @@ static struct ethtool_ops vmxnet3_ethtool_ops = { ...@@ -559,7 +553,7 @@ static struct ethtool_ops vmxnet3_ethtool_ops = {
.get_tso = ethtool_op_get_tso, .get_tso = ethtool_op_get_tso,
.set_tso = ethtool_op_set_tso, .set_tso = ethtool_op_set_tso,
.get_strings = vmxnet3_get_strings, .get_strings = vmxnet3_get_strings,
.get_flags = vmxnet3_get_flags, .get_flags = ethtool_op_get_flags,
.set_flags = vmxnet3_set_flags, .set_flags = vmxnet3_set_flags,
.get_sset_count = vmxnet3_get_sset_count, .get_sset_count = vmxnet3_get_sset_count,
.get_ethtool_stats = vmxnet3_get_ethtool_stats, .get_ethtool_stats = vmxnet3_get_ethtool_stats,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment