From owner-freebsd-net@freebsd.org Wed Apr 19 00:18:49 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82721D43346 for ; Wed, 19 Apr 2017 00:18:49 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E116FB0 for ; Wed, 19 Apr 2017 00:18:49 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id a188so3957607pfa.0 for ; Tue, 18 Apr 2017 17:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QmiREUAEHQCqER1PkIOPSWQ7UoicVGXE4PF858PhJbc=; b=glfgsumRWA0JxIU61S4Gx3kxJHvL+s1fp13Rt+2oBOCeWdKoGAOHwix/ptliXYYMJv Xw5rH4HFoBLVAprGRcDLdhsQroAcOC9NujhaM57WaUYdXZxlqk9oEA3ST014jTrS2YsV zRi9SJHzHYk2R1sx2wR2F134wOlbKd05/UiAZj89tNHkaQumVYWU86RzVpv8Y0r1iSg9 XVkPmM2qiUizf4PL2OeeTJCEOiw+MEN0B4NJSq8FExtHLe31y5h598zgJMILNtUdJsDc opafo5CwwEmElg5pcqHXYfm2Iz7iP3NEheK+y5UB9c6HPlUMG+3ZkNj5WFoVp+XdvbOm zVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=QmiREUAEHQCqER1PkIOPSWQ7UoicVGXE4PF858PhJbc=; b=KsjPliQ+XEn4/F2BNYxHUhWNCMAfEMFZS7uFhBQasiRCk31CoKXp7QH0V4EsmWmCbV kwEYeFvGgeGts4x8KtazvmdT1dphy7MALxHOaLP0mGVn11ENrko4cArruwGENMrPDIUF 1eM7zdWAJrYokSkuwZI1k1Q8tly8Ihe+usxDwcnz7+IyshgyT+JJfvVlYkYdhHWVMP2L JLDMRyo74HW3OUZHQr39SdrGCGr9Kwi4N+VZ+8rvmPd9092KXry4Rtb4n4rWFBnbx0Tz xZ9UbysgdmcNgYK5uAI2XifK8bLeze0+Z5Ogwf2EQ2P8s+++g1TTOxWJO+tIuLDn+/al GRIA== X-Gm-Message-State: AN3rC/496Jny7lsjJnl3mUjsAIEWoOgAycYIJ0m3Y4n1/nRE8vmn+kYp if6sF5Tp2Zaut0lo X-Received: by 10.84.229.7 with SMTP id b7mr215921plk.72.1492561128659; Tue, 18 Apr 2017 17:18:48 -0700 (PDT) Received: from ox ([2601:641:c000:b800:d74:e025:bd80:1c2e]) by smtp.gmail.com with ESMTPSA id l7sm625180pgn.10.2017.04.18.17.18.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 17:18:47 -0700 (PDT) Date: Tue, 18 Apr 2017 17:18:36 -0700 From: Navdeep Parhar To: Joe Jones Cc: "freebsd-net@freebsd.org" Subject: Re: cxgbe netmap promiscuous mode? Message-ID: <20170419001836.GA4461@ox> Mail-Followup-To: Joe Jones , "freebsd-net@freebsd.org" References: <58D3C6F4.6010500@stream-technologies.com> <58D521C0.1000804@stream-technologies.com> <58F0E683.7050806@stream-technologies.com> <20170414163215.GA9358@ox> <58F49246.801@stream-technologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58F49246.801@stream-technologies.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 00:18:49 -0000 On Mon, Apr 17, 2017 at 11:00:38AM +0100, Joe Jones wrote: > Hi Navdeep > > running "ifconfig up" and then "ifconfig promisc" works. Running "ifconfig > promisc" and then "ifconfig up" does not work. Running "ifconfig up promisc" > together does work. Running "ifconfig promisc up" does not work. What version of FreeBSD is this? I couldn't reproduce this on head with a T6 card. Can you please run this in parallel with your ifconfig commands, note what dtrace logs in response to what command(s), and send the output to me? # dtrace -n 'fbt::t4_set_rxmode:entry {trace(arg4)}' > > The combination that does not work leaves the interface in a state where it > reports it's self as being in promiscuous mode. In my experiments the interface did function in promiscuous mode whether I did "ifconfig cc0 promisc up" or "ifconfig cc0 up promisc". Regards, Navdeep