Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 00:07:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-virtualization@FreeBSD.org
Subject:   [Bug 213814] AWS/EC2: no egress traffic stats on ixv(4)
Message-ID:  <bug-213814-27103-Ybbi2wCTRv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213814-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213814-27103@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213814

--- Comment #8 from pete@nomadlogic.org ---
a couple of observations as i've had a few cycles to take a look at
ixgbe/if_ix.c and ixgbe/if_ixv.c source.

1) It looks like both drivers are only populating rx_bytes SYSCTL statistic,
but rx and tx packets counters are defined (and are updating as per testing on
my dev machines).

- I've found that other drivers such as ixl do populate rx and tx byte
counters.

2) the if_ixv code does *not* have any code to populate the OS statistics
structure as per previous comment.  There *is* code in the if_ix.c though, so
perhaps it is easy to port that to the if_ixv device?  My suspicion is that
adding this functionality will fix userland tools.

Since I'm pretty green when it comes to hacking device drivers I'm going to
play with adding tx_bytes to SYSCTl and seeing how that goes.  If anyone with
more experience hacking on drivers wants to take a stab at getting stats in
there I'd be more than happy to test :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213814-27103-Ybbi2wCTRv>