lkml.org 
[lkml]   [2011]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net v2 2/8] forcedeth: new ethtool stat "tx_timeout" to account for tx_timeouts
    Date
    From: Sameer Nanda <snanda@google.com>

    This change publishes a new ethtool stats: tx_timeout that counts the
    number of times the tx_timeout callback was triggered.



    Signed-off-by: David Decotigny <david.decotigny@google.com>
    ---
    drivers/net/ethernet/nvidia/forcedeth.c | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c
    index 64b1c7c..c82a3c7 100644
    --- a/drivers/net/ethernet/nvidia/forcedeth.c
    +++ b/drivers/net/ethernet/nvidia/forcedeth.c
    @@ -633,6 +633,7 @@ static const struct nv_ethtool_str nv_estats_str[] = {
    { "rx_packets" },
    { "rx_errors_total" },
    { "tx_errors_total" },
    + { "tx_timeout" },

    /* version 2 stats */
    { "tx_deferral" },
    @@ -673,6 +674,7 @@ struct nv_ethtool_stats {
    u64 rx_packets;
    u64 rx_errors_total;
    u64 tx_errors_total;
    + u64 tx_timeout;

    /* version 2 stats */
    u64 tx_deferral;
    @@ -2534,6 +2536,8 @@ static void nv_tx_timeout(struct net_device *dev)

    spin_lock_irq(&np->lock);

    + np->estats.tx_timeout++;
    +
    /* 1) stop tx engine */
    nv_stop_tx(dev);

    --
    1.7.3.1


    \
     
     \ /
      Last update: 2011-11-04 02:47    [W:0.026 / U:34.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site