lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <48DAF44C.40701@garzik.org>
Date:	Wed, 24 Sep 2008 22:15:40 -0400
From:	Jeff Garzik <jeff@...zik.org>
To:	Jay Cliburn <jacliburn@...lsouth.net>
CC:	Chris Snook <csnook@...hat.com>, jie.yang@...eros.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH] atl2: add tx bytes statistic

Jay Cliburn wrote:
> From: Jay Cliburn <jacliburn@...lsouth.net>
> Date: Sat, 20 Sep 2008 17:37:05 -0500
> Subject: [PATCH] atl2: add tx bytes statistic
> 
> Let's see how many bytes have been transmitted.
> 
> Signed-off-by: Jay Cliburn <jacliburn@...lsouth.net>
> ---
>  drivers/net/atlx/atl2.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
> index b2995ac..4f82f66 100644
> --- a/drivers/net/atlx/atl2.c
> +++ b/drivers/net/atlx/atl2.c
> @@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)
>  		atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
>  
>  		/* tx statistics: */
> -		if (txs->ok)
> +		if (txs->ok) {
> +			adapter->net_stats.tx_bytes += txs->pkt_size;
>  			adapter->net_stats.tx_packets++;

applied


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ