From owner-freebsd-net@freebsd.org Sun Jan 24 06:07:12 2016 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 9884AA8FBFD for ; Sun, 24 Jan 2016 06:07:12 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (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 62D071B10; Sun, 24 Jan 2016 06:07:12 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pf0-x235.google.com with SMTP id e65so64788000pfe.0; Sat, 23 Jan 2016 22:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=u/9HJ4K2Q0KzYBBODGgSyyU36QrBiTgTYaD9XpyCV7U=; b=TSad/gUPVFyh6hPnnLTG+TxhnvdXCldDnVz3diQDiZBq992fFtQdE+qe15pWKblwZb uYbo/b/j3eu8KeXCg085k9432Plykw2cp4Duc4j+WsYlIILq7VxFjpiIaFauUhvDyTLl 9wBxtuIslCV1ClJpzolsBaiLRQYSL1z5MWidxqFp+hmZVzhOevT3IGNGhlT0eSti4Vag zJQOB3tV1HLDWl+4xhRnEqDFS/+bWi3upBJVS4YOKzZilOyIch0J9VIBJAVq/6nPy6n/ SFdV6jKar763F+3dik5KUvYVCUHZ6LoK5Q3CZyRznSi/1QMeVxwixlRcRStZsTwz5IuP gLKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=u/9HJ4K2Q0KzYBBODGgSyyU36QrBiTgTYaD9XpyCV7U=; b=JcOQ0rNW/yAlapajP48dWzm3ONW6Tykf9o4pA1sz3mYPMrv2bXa8KtwyyqHN/fWPbJ jQqhaDorpSnmhp0o5hoYpAfS9jW20SB6EZsKuLp2CUd6tgum3l/aXQIoLY7YgpV5TI7s Rhzr5uM0ptZl2h4WZugUob0ArV3rYo6UfMBB0XxphZ99QcBr3BLPdoUT/LQt2qB/yyOW B5rQK268URxr5ankfBZDk4IQGyHWCcOgJu/2OPigSwvwBSZ1hhee6S0AEZ9GusocyggP XJQ7LWujYT1Rg/P/S0U+HuKM8U+dW2fBcW13vzqbqFhteIH/nunhFdExXEg2dRxLsmzm v1fA== X-Gm-Message-State: AG10YOQ+aCkzQOuWuX24H8kZby2D35kSPQpL+1RRDuz4iq9rtg8epDfIEo8US/9zKzGn1Q== X-Received: by 10.98.42.213 with SMTP id q204mr16559013pfq.141.1453615632081; Sat, 23 Jan 2016 22:07:12 -0800 (PST) Received: from ox ([2601:641:c001:8a00:591d:d471:ff4a:b8bf]) by smtp.gmail.com with ESMTPSA id 75sm19828282pfj.20.2016.01.23.22.07.10 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 23 Jan 2016 22:07:10 -0800 (PST) Date: Sat, 23 Jan 2016 22:07:06 -0800 From: Navdeep Parhar To: Adrian Chadd Cc: Marcus Cenzatti , Luigi Rizzo , FreeBSD Net Subject: Re: solved: Re: Chelsio T520-SO-CR low performance (netmap tested) for RX Message-ID: <20160124060706.GA7567@ox> Mail-Followup-To: Adrian Chadd , Marcus Cenzatti , Luigi Rizzo , FreeBSD Net References: <20160124035300.3E533A0126@smtp.hushmail.com> <20160124043050.A4936A0126@smtp.hushmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 06:07:12 -0000 On Sat, Jan 23, 2016 at 08:38:24PM -0800, Adrian Chadd wrote: > ok, that's a discussion to have with navdeep. That /should/ work. > Someone may have changed it lately. Yes this used to work. > > Things should behave very well and predictable once you can disable > cxl0 but not ncxl0. :-P The plan is to clean all this up by moving the netmap specific parts to a driver module of its own. So when you load if_cxgbe you'll get only the cxl interfaces. If you want netmap access to the ports you'll be able to kldload cxgbe_netmap (or something like that) which will create the ncxl ports. These ncxl ports _will_ operate like normal ifnets hooked to the kernel stack if netmap isn't enabled on them. And the cxgbe_netmap driver will attach to PCIe PFs 0-3 so it won't take up resources (interrupt vectors, etc.) from PF4, which is what the main if_cxgbe attaches to. You'll certainly be able to up/down/whatever all the interfaces independent of each other. All this will get done in time for FreeBSD 11. Regards, Navdeep