From owner-freebsd-net@FreeBSD.ORG Mon Sep 30 19:25:44 2013 Return-Path: Delivered-To: freebsd-net@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 52F0F874 for ; Mon, 30 Sep 2013 19:25:44 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x22a.google.com (mail-ea0-x22a.google.com [IPv6:2a00:1450:4013:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE66A2ECF for ; Mon, 30 Sep 2013 19:25:43 +0000 (UTC) Received: by mail-ea0-f170.google.com with SMTP id h14so2920366eak.29 for ; Mon, 30 Sep 2013 12:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VI5H3GaPVyEYCnPp5u2+5fFRP4xGuPUM9DHj0HR60HE=; b=aGd9xl4mgjrBjANjRxcOZ8lZJTS0AdoYuLZvAIblkHgRTkDqDLikIkCavjKXkSFIJz VHOW+CJvbbm942LyF9R3RZb/fzICh1EkQjvWhqtjG5YmJY0YUbp+KvDdZFezF3wfSIgn 8u7XNNtANrs+sB5UPu+uuC0cbumBR/CRMQfnMuq3oleOaEjNpKpt6a7qyzZQU59KktCL aT8ODVgnNJRCG+MIjioK41Cqbg9Tcd4I6my5sQcSAnQS/74AYPr/XhUf+WK/07/FI9v+ XXdXcELQZoEpwFVbJGkwhSDAB3dB5eY6MMPVaq+t4PkPllzT7ZOZUQyP4783wz9jjKNp Zf8g== MIME-Version: 1.0 X-Received: by 10.15.35.196 with SMTP id g44mr39896689eev.18.1380569141911; Mon, 30 Sep 2013 12:25:41 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Mon, 30 Sep 2013 12:25:41 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Sep 2013 12:25:41 -0700 Message-ID: Subject: Re: Flow Director statistics for ixgbe(4) From: hiren panchasara To: Takuya ASADA Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 19:25:44 -0000 On Mon, Sep 30, 2013 at 12:02 PM, Takuya ASADA wrote: > Hi, > > This is originally part of "ixgbetool" patch, but I think it can be discuss > separately: > > http://freebsd.1045724.n5.nabble.com/Adding-Flow-Director-sysctls-to-ixgbe-4-was-netmap-traffic-distribution-tp5847066p5847789.html > > I implemented sysctls to expose Flow Director statistics. > It works like this: > $ sysctl dev.ix.0.mac_stats|grep fdir > dev.ix.0.mac_stats.fdirfree_free: 8192 > dev.ix.0.mac_stats.fdirfree_coll: 0 > dev.ix.0.mac_stats.fdirustat_add: 0 > dev.ix.0.mac_stats.fdirustat_remove: 0 > dev.ix.0.mac_stats.fdirfstat_fadd: 0 > dev.ix.0.mac_stats.fdirfstat_fremove: 0 > dev.ix.0.mac_stats.fdirmatch: 0 > dev.ix.0.mac_stats.fdirmiss: 23 > I am running this with the ixgbetool patch you have and only 1 issue I've seen so far: fdirustat_add increments on adding a filter but fdirustat_remove does not on deleting one (if thats how its supposed to work) Can you please populate "description" for all the sysctls you are adding? :-) Cheers, Hiren