aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r--drivers/net/benet/be_ethtool.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index 1565c81ff96c..96f5502e0ef7 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -261,25 +261,6 @@ be_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce)
261 return 0; 261 return 0;
262} 262}
263 263
264static u32 be_get_rx_csum(struct net_device *netdev)
265{
266 struct be_adapter *adapter = netdev_priv(netdev);
267
268 return adapter->rx_csum;
269}
270
271static int be_set_rx_csum(struct net_device *netdev, uint32_t data)
272{
273 struct be_adapter *adapter = netdev_priv(netdev);
274
275 if (data)
276 adapter->rx_csum = true;
277 else
278 adapter->rx_csum = false;
279
280 return 0;
281}
282
283static void 264static void
284be_get_ethtool_stats(struct net_device *netdev, 265be_get_ethtool_stats(struct net_device *netdev,
285 struct ethtool_stats *stats, uint64_t *data) 266 struct ethtool_stats *stats, uint64_t *data)
@@ -760,14 +741,6 @@ const struct ethtool_ops be_ethtool_ops = {
760 .get_ringparam = be_get_ringparam, 741 .get_ringparam = be_get_ringparam,
761 .get_pauseparam = be_get_pauseparam, 742 .get_pauseparam = be_get_pauseparam,
762 .set_pauseparam = be_set_pauseparam, 743 .set_pauseparam = be_set_pauseparam,
763 .get_rx_csum = be_get_rx_csum,
764 .set_rx_csum = be_set_rx_csum,
765 .get_tx_csum = ethtool_op_get_tx_csum,
766 .set_tx_csum = ethtool_op_set_tx_hw_csum,
767 .get_sg = ethtool_op_get_sg,
768 .set_sg = ethtool_op_set_sg,
769 .get_tso = ethtool_op_get_tso,
770 .set_tso = ethtool_op_set_tso,
771 .get_strings = be_get_stat_strings, 744 .get_strings = be_get_stat_strings,
772 .set_phys_id = be_set_phys_id, 745 .set_phys_id = be_set_phys_id,
773 .get_sset_count = be_get_sset_count, 746 .get_sset_count = be_get_sset_count,