devices/ccat/netdev.c
branchstable-1.5
changeset 2573 ad9a35065387
parent 2572 0bc1ec2711b1
child 2574 99ef4dcaba0f
equal deleted inserted replaced
2572:0bc1ec2711b1 2573:ad9a35065387
   430 	storage->rx_packets = mac.rx_frames;	/* total packets received       */
   430 	storage->rx_packets = mac.rx_frames;	/* total packets received       */
   431 	storage->tx_packets = mac.tx_frames;	/* total packets transmitted    */
   431 	storage->tx_packets = mac.tx_frames;	/* total packets transmitted    */
   432 	storage->rx_bytes = atomic64_read(&priv->rx_bytes);	/* total bytes received         */
   432 	storage->rx_bytes = atomic64_read(&priv->rx_bytes);	/* total bytes received         */
   433 	storage->tx_bytes = atomic64_read(&priv->tx_bytes);	/* total bytes transmitted      */
   433 	storage->tx_bytes = atomic64_read(&priv->tx_bytes);	/* total bytes transmitted      */
   434 	storage->rx_errors = mac.frame_len_err + mac.rx_mem_full + mac.crc_err + mac.rx_err;	/* bad packets received         */
   434 	storage->rx_errors = mac.frame_len_err + mac.rx_mem_full + mac.crc_err + mac.rx_err;	/* bad packets received         */
   435 	storage->tx_errors = mac.tx_mem_full; /* packet transmit problems     */
   435 	storage->tx_errors = mac.tx_mem_full;	/* packet transmit problems     */
   436 	storage->rx_dropped = atomic64_read(&priv->rx_dropped);	/* no space in linux buffers    */
   436 	storage->rx_dropped = atomic64_read(&priv->rx_dropped);	/* no space in linux buffers    */
   437 	storage->tx_dropped = atomic64_read(&priv->tx_dropped);	/* no space available in linux  */
   437 	storage->tx_dropped = atomic64_read(&priv->tx_dropped);	/* no space available in linux  */
   438 	//TODO __u64    multicast;              /* multicast packets received   */
   438 	//TODO __u64    multicast;              /* multicast packets received   */
   439 	//TODO __u64    collisions;
   439 	//TODO __u64    collisions;
   440 
   440