master/device.h
changeset 1863 8ea4a79dfe84
parent 1857 ed8b490b5bc3
child 2158 69f2b2702336
child 2589 2b9c78543663
equal deleted inserted replaced
1862:05d224a66270 1863:8ea4a79dfe84
    96     struct timeval timeval_poll;
    96     struct timeval timeval_poll;
    97 #endif
    97 #endif
    98     unsigned long jiffies_poll; /**< jiffies of last poll */
    98     unsigned long jiffies_poll; /**< jiffies of last poll */
    99 
    99 
   100     // Frame statistics
   100     // Frame statistics
   101     unsigned int tx_count; /**< Number of frames sent. */
   101     u64 tx_count; /**< Number of frames sent. */
   102     unsigned int rx_count; /**< Number of frames received. */
   102     u64 last_tx_count; /**< Number of frames sent of last statistics cycle. */
   103     unsigned int tx_bytes; /**< Number of frames sent. */
   103     u64 rx_count; /**< Number of frames received. */
   104     unsigned int tx_errors; /**< Number of transmit errors. */
   104     u64 tx_bytes; /**< Number of frames sent. */
       
   105     u64 last_tx_bytes; /**< Number of bytes sent of last statistics cycle. */
       
   106     u64 tx_errors; /**< Number of transmit errors. */
       
   107     u64 last_loss; /**< Tx/Rx difference of last statistics cycle. */
   105     unsigned int tx_frame_rates[EC_RATE_COUNT]; /**< Transmit rates in
   108     unsigned int tx_frame_rates[EC_RATE_COUNT]; /**< Transmit rates in
   106                                                   frames/s for different
   109                                                   frames/s for different
   107                                                   statistics cycle periods. */
   110                                                   statistics cycle periods. */
   108     unsigned int tx_byte_rates[EC_RATE_COUNT]; /**< Transmit rates in byte/s
   111     unsigned int tx_byte_rates[EC_RATE_COUNT]; /**< Transmit rates in byte/s
   109                                                  for different statistics
   112                                                  for different statistics
   110                                                  cycle periods. */
   113                                                  cycle periods. */
   111     unsigned int last_tx_count; /**< Number of frames sent of last statistics
       
   112                                   cycle. */
       
   113     unsigned int last_tx_bytes; /**< Number of bytes sent of last statistics
       
   114                                   cycle. */
       
   115     int last_loss; /**< Tx/Rx difference of last statistics cycle. */
       
   116     int loss_rates[EC_RATE_COUNT]; /**< Frame loss rates for different
   114     int loss_rates[EC_RATE_COUNT]; /**< Frame loss rates for different
   117                                      statistics cycle periods. */
   115                                      statistics cycle periods. */
   118     unsigned long stats_jiffies; /**< Jiffies of last statistic cycle. */
   116     unsigned long stats_jiffies; /**< Jiffies of last statistic cycle. */
   119 
   117 
   120 #ifdef EC_DEBUG_IF
   118 #ifdef EC_DEBUG_IF