aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ethtool.h53
-rw-r--r--include/linux/netdevice.h16
2 files changed, 0 insertions, 69 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index de33de1e2052..20db5b275c3f 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -724,9 +724,6 @@ enum ethtool_sfeatures_retval_bits {
724 724
725#include <linux/rculist.h> 725#include <linux/rculist.h>
726 726
727/* needed by dev_disable_lro() */
728extern int __ethtool_set_flags(struct net_device *dev, u32 flags);
729
730extern int __ethtool_get_settings(struct net_device *dev, 727extern int __ethtool_get_settings(struct net_device *dev,
731 struct ethtool_cmd *cmd); 728 struct ethtool_cmd *cmd);
732 729
@@ -750,19 +747,6 @@ struct net_device;
750 747
751/* Some generic methods drivers may use in their ethtool_ops */ 748/* Some generic methods drivers may use in their ethtool_ops */
752u32 ethtool_op_get_link(struct net_device *dev); 749u32 ethtool_op_get_link(struct net_device *dev);
753u32 ethtool_op_get_tx_csum(struct net_device *dev);
754int ethtool_op_set_tx_csum(struct net_device *dev, u32 data);
755int ethtool_op_set_tx_hw_csum(struct net_device *dev, u32 data);
756int ethtool_op_set_tx_ipv6_csum(struct net_device *dev, u32 data);
757u32 ethtool_op_get_sg(struct net_device *dev);
758int ethtool_op_set_sg(struct net_device *dev, u32 data);
759u32 ethtool_op_get_tso(struct net_device *dev);
760int ethtool_op_set_tso(struct net_device *dev, u32 data);
761u32 ethtool_op_get_ufo(struct net_device *dev);
762int ethtool_op_set_ufo(struct net_device *dev, u32 data);
763u32 ethtool_op_get_flags(struct net_device *dev);
764int ethtool_op_set_flags(struct net_device *dev, u32 data, u32 supported);
765bool ethtool_invalid_flags(struct net_device *dev, u32 data, u32 supported);
766 750
767/** 751/**
768 * struct ethtool_ops - optional netdev operations 752 * struct ethtool_ops - optional netdev operations
@@ -807,22 +791,6 @@ bool ethtool_invalid_flags(struct net_device *dev, u32 data, u32 supported);
807 * @get_pauseparam: Report pause parameters 791 * @get_pauseparam: Report pause parameters
808 * @set_pauseparam: Set pause parameters. Returns a negative error code 792 * @set_pauseparam: Set pause parameters. Returns a negative error code
809 * or zero. 793 * or zero.
810 * @get_rx_csum: Deprecated in favour of the netdev feature %NETIF_F_RXCSUM.
811 * Report whether receive checksums are turned on or off.
812 * @set_rx_csum: Deprecated in favour of generic netdev features. Turn
813 * receive checksum on or off. Returns a negative error code or zero.
814 * @get_tx_csum: Deprecated as redundant. Report whether transmit checksums
815 * are turned on or off.
816 * @set_tx_csum: Deprecated in favour of generic netdev features. Turn
817 * transmit checksums on or off. Returns a negative error code or zero.
818 * @get_sg: Deprecated as redundant. Report whether scatter-gather is
819 * enabled.
820 * @set_sg: Deprecated in favour of generic netdev features. Turn
821 * scatter-gather on or off. Returns a negative error code or zero.
822 * @get_tso: Deprecated as redundant. Report whether TCP segmentation
823 * offload is enabled.
824 * @set_tso: Deprecated in favour of generic netdev features. Turn TCP
825 * segmentation offload on or off. Returns a negative error code or zero.
826 * @self_test: Run specified self-tests 794 * @self_test: Run specified self-tests
827 * @get_strings: Return a set of strings that describe the requested objects 795 * @get_strings: Return a set of strings that describe the requested objects
828 * @set_phys_id: Identify the physical devices, e.g. by flashing an LED 796 * @set_phys_id: Identify the physical devices, e.g. by flashing an LED
@@ -844,15 +812,6 @@ bool ethtool_invalid_flags(struct net_device *dev, u32 data, u32 supported);
844 * negative error code or zero. 812 * negative error code or zero.
845 * @complete: Function to be called after any other operation except 813 * @complete: Function to be called after any other operation except
846 * @begin. Will be called even if the other operation failed. 814 * @begin. Will be called even if the other operation failed.
847 * @get_ufo: Deprecated as redundant. Report whether UDP fragmentation
848 * offload is enabled.
849 * @set_ufo: Deprecated in favour of generic netdev features. Turn UDP
850 * fragmentation offload on or off. Returns a negative error code or zero.
851 * @get_flags: Deprecated as redundant. Report features included in
852 * &enum ethtool_flags that are enabled.
853 * @set_flags: Deprecated in favour of generic netdev features. Turn
854 * features included in &enum ethtool_flags on or off. Returns a
855 * negative error code or zero.
856 * @get_priv_flags: Report driver-specific feature flags. 815 * @get_priv_flags: Report driver-specific feature flags.
857 * @set_priv_flags: Set driver-specific feature flags. Returns a negative 816 * @set_priv_flags: Set driver-specific feature flags. Returns a negative
858 * error code or zero. 817 * error code or zero.
@@ -917,14 +876,6 @@ struct ethtool_ops {
917 struct ethtool_pauseparam*); 876 struct ethtool_pauseparam*);
918 int (*set_pauseparam)(struct net_device *, 877 int (*set_pauseparam)(struct net_device *,
919 struct ethtool_pauseparam*); 878 struct ethtool_pauseparam*);
920 u32 (*get_rx_csum)(struct net_device *);
921 int (*set_rx_csum)(struct net_device *, u32);
922 u32 (*get_tx_csum)(struct net_device *);
923 int (*set_tx_csum)(struct net_device *, u32);
924 u32 (*get_sg)(struct net_device *);
925 int (*set_sg)(struct net_device *, u32);
926 u32 (*get_tso)(struct net_device *);
927 int (*set_tso)(struct net_device *, u32);
928 void (*self_test)(struct net_device *, struct ethtool_test *, u64 *); 879 void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
929 void (*get_strings)(struct net_device *, u32 stringset, u8 *); 880 void (*get_strings)(struct net_device *, u32 stringset, u8 *);
930 int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state); 881 int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
@@ -932,10 +883,6 @@ struct ethtool_ops {
932 struct ethtool_stats *, u64 *); 883 struct ethtool_stats *, u64 *);
933 int (*begin)(struct net_device *); 884 int (*begin)(struct net_device *);
934 void (*complete)(struct net_device *); 885 void (*complete)(struct net_device *);
935 u32 (*get_ufo)(struct net_device *);
936 int (*set_ufo)(struct net_device *, u32);
937 u32 (*get_flags)(struct net_device *);
938 int (*set_flags)(struct net_device *, u32);
939 u32 (*get_priv_flags)(struct net_device *); 886 u32 (*get_priv_flags)(struct net_device *);
940 int (*set_priv_flags)(struct net_device *, u32); 887 int (*set_priv_flags)(struct net_device *, u32);
941 int (*get_sset_count)(struct net_device *, int); 888 int (*get_sset_count)(struct net_device *, int);
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index cbeb5867cff7..e34717a792b4 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2592,22 +2592,6 @@ static inline int netif_is_bond_slave(struct net_device *dev)
2592 2592
2593extern struct pernet_operations __net_initdata loopback_net_ops; 2593extern struct pernet_operations __net_initdata loopback_net_ops;
2594 2594
2595static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev)
2596{
2597 if (dev->features & NETIF_F_RXCSUM)
2598 return 1;
2599 if (!dev->ethtool_ops || !dev->ethtool_ops->get_rx_csum)
2600 return 0;
2601 return dev->ethtool_ops->get_rx_csum(dev);
2602}
2603
2604static inline u32 dev_ethtool_get_flags(struct net_device *dev)
2605{
2606 if (!dev->ethtool_ops || !dev->ethtool_ops->get_flags)
2607 return 0;
2608 return dev->ethtool_ops->get_flags(dev);
2609}
2610
2611/* Logging, debugging and troubleshooting/diagnostic helpers. */ 2595/* Logging, debugging and troubleshooting/diagnostic helpers. */
2612 2596
2613/* netdev_printk helpers, similar to dev_printk */ 2597/* netdev_printk helpers, similar to dev_printk */