ethtool Display or Set information about device

ethtool version 2.6.38
        [ gso on|off ] [ gro on|off ] [ lro on|off ] [ rxvlan on|off ] [ txvlan on|off ] [ ntuple on|off ] [ rxhash on|off ]


 ethtool eth0

Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half  10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half  10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	Advertised auto-negotiation: Yes
	Speed: 100Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000001 (1)
	Link detected: yes

set generic options
  -s
 --change DEVNAME	
		[ speed 10|100|1000|2500|10000 ]        [ xcvr internal|external ]
		[ duplex half|full ]                    [ sopass %%x:%%x:%%x:%%x:%%x:%%x ]
		[ port tp|aui|bnc|mii|fibre ]           [ phyad %%d ]
		[ autoneg on|off ]
		[ advertise %%x ]                       [ msglvl %%d ] 
		[ wol p|u|m|b|a|g|s|d... ] Wake-on-LAN. p  phy activity, u  unicast messages, m  multicast messages, b  broadcast messages, a  ARP
                                                g  MagicPacket(tm), s  Enable SecureOn(tm) password for MagicPacket(tm), 
                                                d  Disable 
Show visible port identification (e.g. blinking) --identify DEVNAME	[ TIME-IN-SECONDS ] -p

Execute adapter self test --test DEVNAME	[ online | offline ] -t

Statistics --statistics DEVNAME	-S

     Show Rx network flow classification options   -n|--show-nfc   DEVNAME [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ]
Configure Rx network flow classification options   -N|--config-nfc DEVNAME [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 m|v|t|s|d|f|n|r... ]

Pause --show-pause DEVNAME	-a --pause DEVNAME	    [ autoneg on|off ] [ rx|tx on|off ] -A

 --show-coalesce DEVNAME	-c

 --coalesce DEVNAME	    
  -C    [adaptive-rx on|off]
		[rx-usecs N]      [rx-frames N]          [tx-usecs N]      [tx-frames N]
		[rx-usecs-irq N]  [rx-frames-irq N]      [tx-usecs-irq N]  [tx-frames-irq N]
		[rx-usecs-low N]  [rx-frames-low N]      [tx-usecs-low N]  [tx-frames-low N]
		[rx-usecs-high N] [rx-frames-high N]     [tx-usecs-high N] [tx-frames-high N]
		[adaptive-tx on|off] 
		[pkt-rate-low N] [pkt-rate-high N]
		[stats-block-usecs N]
		[sample-interval N]

X ring parameters: --show-ring DEVNAME	-g 
                   --set-ring  DEVNAME  -G [ rx N |rx-mini |rx-jumbo N ] [ tx N ]

protocol offload information --show-offload DEVNAME	                                -k 
                             --offload DEVNAME	    [ rx|tx|sg|tso|ufo|gso on|off ] -K

Show driver information --driver DEVNAME	        -i

 --register-dump DEVNAME	[ raw on|off ] [ file FILENAME ] -d 
 --eeprom-dump DEVNAME	    [ raw on|off ] [ offset N ] [ length N ]                            -e

 --change-eeprom DEVNAME	[ magic N ] [ offset N ] [ value N ] Caution -E
Flash firmware image            -f|--flash DEVNAME  FILENAME [ REGION-NUMBER-TO-FLASH ]
from the specified file to a region on the             

Restart N-WAY negotation --negotiate DEVNAME	-r

Rx flow hash indirection        -x|--show-rxfh-indir DEVNAME 
                                -X|--set-rxfh-indir DEVNAME  N | weight W0 W1 ...  
        -U|--config-ntuple DEVNAME  Configure Rx ntuple filters and actions
        { flow-type tcp4|udp4|sctp4 [ src-ip ADDR [src-ip-mask MASK] ]        [ dst-ip ADDR [dst-ip-mask MASK] ]
                                    [ src-port PORT [src-port-mask MASK] ]    [dst-port PORT [dst-port-mask MASK] ]
        | flow-type ether [ src MAC-ADDR [src-mask MASK] ] [ dst MAC-ADDR [dst-mask MASK] ]
          [ proto N [proto-mask MASK] ] }
        [ vlan VLAN-TAG [vlan-mask MASK] ]
        [ user-def DATA [user-def-mask MASK] ]
        action N

Get Rx ntuple filters and actions      -u|--show-ntuple DEVNAME    
Show permanent hardware address        -P|--show-permaddr DEVNAME  

help            -h|--help DEVNAME	
version number        --version       

Example -S reformatted a little NIC statistics:
rx_packets: 4738 
rx_bytes: 5493514 
rx_broadcast: 126 
rx_multicast: 0 
rx_errors: 0
multicast: 0
collisions: 0
rx_length_errors: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_no_buffer_count: 0
rx_missed_errors: 0

rx_long_length_errors: 0
rx_short_length_errors: 0
rx_align_errors: 0


rx_flow_control_xon: 0
rx_flow_control_xoff: 0
rx_long_byte_count: 5493514
rx_csum_offload_good: 4548
rx_csum_offload_errors: 0
rx_header_split: 0

rx_dma_failed: 0
rx_smbus: 0
tx_packets: 3419
tx_bytes: 405958
tx_broadcast: 2
tx_multicast: 6
tx_errors: 0
tx_dropped: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
tx_window_errors: 0
tx_abort_late_coll: 0
tx_deferred_ok: 0
tx_single_coll_ok: 0         tx_multi_coll_ok: 0
tx_timeout_count: 0
tx_restart_queue: 0
tx_tcp_seg_good: 1           tx_tcp_seg_failed: 0
tx_flow_control_xon: 0       tx_flow_control_xoff: 0
alloc_rx_buff_failed: 0
dropped_smbus: 0





tx_dma_failed: 0
tx_smbus: 0