diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2018-03-20 10:58:16 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-03-26 15:11:19 -0400 |
commit | fcea6f3da546b93050f3534aadea7bd96c1d7349 (patch) | |
tree | c201c1019763532f243ad090a189faeb71efbb02 /drivers/net/ethernet/intel/ice/ice_common.h | |
parent | d76a60ba7afb89523c88cf2ed3a044ce4180289e (diff) |
ice: Add stats and ethtool support
This patch implements a watchdog task to get packet statistics from
the device.
This patch also adds support for the following ethtool operations:
ethtool devname
ethtool -s devname [msglvl N] [msglevel type on|off]
ethtool -g|--show-ring devname
ethtool -G|--set-ring devname [rx N] [tx N]
ethtool -i|--driver devname
ethtool -d|--register-dump devname [raw on|off] [hex on|off] [file name]
ethtool -k|--show-features|--show-offload devname
ethtool -K|--features|--offload devname feature on|off
ethtool -P|--show-permaddr devname
ethtool -S|--statistics devname
ethtool -a|--show-pause devname
ethtool -A|--pause devname [autoneg on|off] [rx on|off] [tx on|off]
ethtool -r|--negotiate devname
CC: Andrew Lunn <andrew@lunn.ch>
CC: Jakub Kicinski <kubakici@wp.pl>
CC: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h index 38719ba01d9b..c4213fbf9579 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.h +++ b/drivers/net/ethernet/intel/ice/ice_common.h | |||
@@ -58,6 +58,11 @@ ice_aq_send_cmd(struct ice_hw *hw, struct ice_aq_desc *desc, | |||
58 | enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd); | 58 | enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd); |
59 | enum ice_status ice_clear_pf_cfg(struct ice_hw *hw); | 59 | enum ice_status ice_clear_pf_cfg(struct ice_hw *hw); |
60 | enum ice_status | 60 | enum ice_status |
61 | ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, bool atomic_restart); | ||
62 | enum ice_status | ||
63 | ice_aq_set_link_restart_an(struct ice_port_info *pi, bool ena_link, | ||
64 | struct ice_sq_cd *cd); | ||
65 | enum ice_status | ||
61 | ice_aq_get_link_info(struct ice_port_info *pi, bool ena_lse, | 66 | ice_aq_get_link_info(struct ice_port_info *pi, bool ena_lse, |
62 | struct ice_link_status *link, struct ice_sq_cd *cd); | 67 | struct ice_link_status *link, struct ice_sq_cd *cd); |
63 | enum ice_status | 68 | enum ice_status |