From nobody@FreeBSD.org  Thu Oct 24 11:03:24 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 49AE933D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:03:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 37ECC23B5
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:03:24 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9OB3OIq046806
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Oct 2013 11:03:24 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9OB3OwV046802;
	Thu, 24 Oct 2013 11:03:24 GMT
	(envelope-from nobody)
Message-Id: <201310241103.r9OB3OwV046802@oldred.freebsd.org>
Date: Thu, 24 Oct 2013 11:03:24 GMT
From: Aleksey Fedorov <aleksey.v.fedorov@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: statistic not updated on em in netmap mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183271
>Category:       kern
>Synopsis:       [em] statistic not updated on em in netmap mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 11:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun May 04 05:26:15 UTC 2014
>Originator:     Aleksey Fedorov
>Release:        9.2
>Organization:
>Environment:
FreeBSD test-bsd.joxnet.ru 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Thu Oct 24 14:39:02 MSK 2013     root@test-bsd.joxnet.ru:/usr/src/sys/amd64/compile/DEVEL  amd64

>Description:
em0 in netmap mode.
netstat show that no packets is received and transmitted while traffic is present.

# netstat -I em0 1
            input          (em0)           output
   packets  errs idrops      bytes    packets  errs      bytes colls
         0     0     0          0          0     0          0     0
         0     0     0          0          0     0          0     0
         0     0     0          0          0     0          0     0
         0     0     0          0          0     0          0     0
         0     0     0          0          0     0          0     0
         0     0     0          0          0     0          0     0

>How-To-Repeat:
Start any demo from  /usr/src/tools/tools/netmap on em interface and see counters using netstat.
>Fix:
not known

>Release-Note:
>Audit-Trail:

From: hiren panchasara <hiren@FreeBSD.org>
To: bug-followup@FreeBSD.org, aleksey.v.fedorov@gmail.com
Cc:  
Subject: Re: kern/183271: statistic not updated on em in netmap mode
Date: Fri, 25 Oct 2013 13:37:54 -0700

 Interesting. I see it working fine on -CURRENT.
 
 I did send pkts out of ix0 by putting it in netmap mode:
 
 -bash-4.2$ sudo ./pkt-gen -i ix0 -f tx -n 100000000 -c 8 -p 8 -d
 10.73.149.69 -s 10.73.149.81
 
 And at the same time, I could see it in netstat:
 
 -bash-4.2$ netstat -I ix0 1
             input          (ix0)           output
    packets  errs idrops      bytes    packets  errs      bytes colls
          0     0     0          0          0     0          0     0
          0     0     0          0          0     0          0     0
          0     0     0          0          0     0          0     0
          0     0     0          0          0     0          0     0
          0     0     0          0          0     0          0     0
          0     0     0          0   12603624     0  806624256     0
          0     0     0          0   13450685     0  860844928     0
          0     0     0          0   13752809     0  880179648     0
          0     0     0          0   13923070     0  891076544     0
             input          (ix0)           output
    packets  errs idrops      bytes    packets  errs      bytes colls
          0     0     0          0   13658263     0  874127680     0
          0     0     0          0   13529053     0  865859776     0
          0     0     0          0   13452062     0  860931712     0
          0     0     0          0    5630434     0  360355456     0
          0     0     0          0          0     0          0     0
          0     0     0          0          0     0          0     0
 
 I will try to findout whats difference between current and 9.2 in this regard.
 
 cheers,
 Hiren

From: Aleksey Fedorov <aleksey.v.fedorov@gmail.com>
To: hiren panchasara <hiren@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/183271: statistic not updated on em in netmap mode
Date: Sat, 26 Oct 2013 00:53:19 +0400

 Hi!
 
 I have several ixgbe and all work fine on them in 9.1 and 9.2.
 
 # netstat -I ix0 1
             input          (ix0)           output
    packets  errs idrops      bytes    packets  errs      bytes colls
     174164     0     0  219554276      93908     0  128263302     0
     174179     0     0  219555882      93418     0  127624014     0
     174573     0     0  220132392      94717     0  129380690     0
     173747     0     0  219101644      93755     0  128059768     0
 
 
 Problem is exactly with em network card.
 
From: hiren panchasara <hiren@FreeBSD.org>
To: Aleksey Fedorov <aleksey.v.fedorov@gmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: kern/183271: statistic not updated on em in netmap mode
Date: Fri, 25 Oct 2013 13:54:45 -0700

 On Fri, Oct 25, 2013 at 1:53 PM, Aleksey Fedorov
 <aleksey.v.fedorov@gmail.com> wrote:
 > Problem is exactly with em network card.
 
 ah, my bad :-)
 
 Thanks for clarifying.
 
 Cheers,
 Hiren
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 4 05:25:38 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183271 
>Unformatted:
