fjes: Enhance ethtool -S for fjes driver
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Fri, 14 Oct 2016 11:27:32 +0000 (20:27 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Oct 2016 16:04:57 +0000 (12:04 -0400)
commit21b7efbc5e910487c86f93ac88194dadbacac6e8
tree8eab344d8d3023a03cc9972bfece55807bd02dc0
parent462d807474783dfc7d0c412f320749aebcc5f8fc
fjes: Enhance ethtool -S for fjes driver

This patch enhances ethtool -S for fjes driver so that
EP related statistics can be retrieved.

The following statistics can be displayed via ethtool -S:

     ep%d_com_regist_buf_exec
     ep%d_com_unregist_buf_exec
     ep%d_send_intr_rx
     ep%d_send_intr_unshare
     ep%d_send_intr_zoneupdate
     ep%d_recv_intr_rx
     ep%d_recv_intr_unshare
     ep%d_recv_intr_stop
     ep%d_recv_intr_zoneupdate
     ep%d_tx_buffer_full
     ep%d_tx_dropped_not_shared
     ep%d_tx_dropped_ver_mismatch
     ep%d_tx_dropped_buf_size_mismatch
     ep%d_tx_dropped_vlanid_mismatch

Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_ethtool.c
drivers/net/fjes/fjes_hw.c
drivers/net/fjes/fjes_hw.h
drivers/net/fjes/fjes_main.c