From owner-freebsd-net@freebsd.org Mon Apr 24 23:55:43 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 CB273D4EB41 for ; Mon, 24 Apr 2017 23:55:43 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pg0-x22f.google.com (mail-pg0-x22f.google.com [IPv6:2607:f8b0:400e:c05::22f]) (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 95D1DA59 for ; Mon, 24 Apr 2017 23:55:43 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pg0-x22f.google.com with SMTP id v1so8067167pgv.1 for ; Mon, 24 Apr 2017 16:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OP4GSbEqEsBNn5831nbswDlfyEBt7NkPA0eTUFXktq4=; b=UN/I1u92lCHu40PEXkiyPGywRrJkRvwrvJa17J1xqm12Dp6HQMFASeVLUM9w7zf2Oh 2gTVjRuwy1NZKpZYpsRBDmRrloKLkW20uKNoSn/FfyzNV6NvI3Q2jYsof6Xt/s7ezk4B AWioey7eHS9jfHZDF5KaKV+2HC7D9yCWOw1VhPFwTgOnekiVGwfBpHrWmqj1Gf4jhMvD 4HF/kRRAk+QDdUibo2GsTX3wjt/hv/Wj0wP9hqFgkFOoXw2pr7cqoBm7RzGBc8GDCfKX n7OmzMzNGphySYo6gfJ3V3rpYml8ksIogycgQJMYOPR5mGOcOf/BGMzDxpvvLAE5H5MC hj/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OP4GSbEqEsBNn5831nbswDlfyEBt7NkPA0eTUFXktq4=; b=jI77mC6zOS/uzl+ued3Q0R9EbRy5clF7tsz29dE27QeTBooh34+u0EGpVCIu48fUc4 C/qXI/kARmjjzcxb4kFdvpq0A3QW7h0wowyySvFer87Hnj3Toelqt1UyFFWIDP1U11sn kRV5Zom3KDYYz1jXaCSMNkOdV3cDBo+V0AQ1gh/t4hzJtZGsAFKApYSQUmbw7PGIwgXq jOSYbnpnf5x4ttvl9k3caZbYeeqlmD4Z+C8l4ZyhJgtctsvMD6b7D5egzXgfvPvUg2Sy mntP/P7e89xjF/I313ELw2wMqlaG6BxcWuDV4g/u7DLWnHJz2Gk5HPltqNtQ0LEP71WN XIhA== X-Gm-Message-State: AN3rC/7LZo2+jfLbg1uDm6xnW4ZefuLMo5cuidZwo39FP2rw12ix/KJ1 ZSctwH1mvdFNvms2 X-Received: by 10.84.217.215 with SMTP id d23mr35382789plj.59.1493078143038; Mon, 24 Apr 2017 16:55:43 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [12.32.117.8]) by smtp.googlemail.com with ESMTPSA id z123sm32657614pfz.56.2017.04.24.16.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 16:55:42 -0700 (PDT) Sender: Navdeep Parhar Subject: Re: cxgbe netmap promiscuous mode? To: Joe Jones Cc: "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> <20170419001836.GA4461@ox> <58F72DE2.40503@stream-technologies.com> <20170419143745.GB4461@ox> <58F782DA.6060007@stream-technologies.com> From: Navdeep Parhar Message-ID: <2529e545-fdca-eb51-3290-d5ecbc81ffcb@FreeBSD.org> Date: Mon, 24 Apr 2017 16:55:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <58F782DA.6060007@stream-technologies.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Mon, 24 Apr 2017 23:55:43 -0000 On 04/19/2017 08:31, Joe Jones wrote: > Hi Navdeep, > > I already got rid of the hw.cxgbe.num_vis line in loader.conf when I > rebooted this morning. > > dev.t5nex.0.firmware_version: 1.15.37.0 I tried this exact firmware and was able to reproduce the problem. This appears to be a firmware bug that has already been fixed in the 1.16.x firmware available in 10-STABLE. Regards, Navdeep > > > On 19/04/17 15:37, Navdeep Parhar wrote: >> What is the firmware version? >> >> # sysctl dev.t5nex.0.firmware_version >> >> I'll try to repeat the experiment with a T520-SO with the firmware that >> you have on your card. Does the card behave this way if the extra VIs >> are not created? Can you please try without hw.cxgbe.num_vis in >> loader.conf? >> >> Regards, >> Navdeep >> >> On Wed, Apr 19, 2017 at 10:29:06AM +0100, Joe Jones wrote: >>> uname -a >>> FreeBSD goose2 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 >>> 08:48:40 UTC 2017 >>> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >>> >>> The card is a 'T520-SO Unified Wire Ethernet Controller' >>> >>> I ran the following with dtrace running in a separate window >>> >>> ifconfig cxl1 promisc up ( only see broadcast) >>> ifconfig cxl1 -promisc >>> ifconfig cxl1 promisc (now I see traffic) >>> >>> dtrace output was >>> >>> [root@goose2 /usr/home/joe]# dtrace -n 'fbt::t4_set_rxmode:entry >>> {trace(arg4)}' >>> dtrace: description 'fbt::t4_set_rxmode:entry ' matched 1 probe >>> CPU ID FUNCTION:NAME >>> 4 61078 t4_set_rxmode:entry 1 >>> 7 61078 t4_set_rxmode:entry 0 >>> 5 61078 t4_set_rxmode:entry 1 >>> >>> >>> On 19/04/17 01:18, Navdeep Parhar wrote: >>>> 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 >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >