aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h53
1 files changed, 0 insertions, 53 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);