From owner-freebsd-net@freebsd.org Fri Jul 6 07:17:52 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69994102677E for ; Fri, 6 Jul 2018 07:17:52 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pl0-x22c.google.com (mail-pl0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) (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 D7CF48FF79 for ; Fri, 6 Jul 2018 07:17:51 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pl0-x22c.google.com with SMTP id 31-v6so2456162plc.4 for ; Fri, 06 Jul 2018 00:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=9GZvsuQVzw9D/Meaa6DqXfQFWFrV4NRpQCfNK1TOlaI=; b=UNvy1ZokB8t5BI48Bdzvrmw7iDmXgMnh4tcba5UEmte0w9lhNKfoUf8Ud8NCrC+CCE 8sFR3rWfGW/nm4OjPT+wwJTFqnCc7aYdB99nSIHAquPmk4mgdfipKdTOW+IO2kaVsKuB +iODM5sxjBX+ZQNEqUSKf0cw6akMbSkkSAFbrrvjNnfoXwdVCzJFJ5ko00RtXrIgkIdj DCIcVOrqjz/JuCb7Od8Jajs8ii3JecsbEHxTFWKHO+igbjGmHgcogbXeHVsIN1kYNCWf SjuC30H54kQnTsJ1j5fTwLi8bffEXYu2A8ilzze1aPoKrZDHoShGi2BJVKnSNc9/OH/Z BZUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=9GZvsuQVzw9D/Meaa6DqXfQFWFrV4NRpQCfNK1TOlaI=; b=fws9DzhLhtMAtpBFHwuY+F/9wlSTZcOh61zwz3JppIb8XlJkF6iC7yXrZpK9K8DQYQ j/KvSMzhNrwewZd7fXf9EYmJFhOyqjGFsVOAOlHNg/p4TID62Oq2v240G2uKQTXT9IJn n2pfQUSHvmUX1i/fgCksshTRnItCzxfm1OAZh98mSZJjWBawt3TNWS+wufsx4FScv0qu 2FX3zzeJp1mymBtJzTZK8bojhDTjSEVaHPylXURkzFXvRXk654SssophLTtsigPCQCex ryK8IshH26j3qtOeVY7lwp8geddCahlfhTlvrw7qbpjpdaQBY5tbMNFVz9MmeLteDwyw 9TMg== X-Gm-Message-State: APt69E2RvcT3GRogGBpa87oiNHjr6UOrskbPOIxb1TaOUmU813n2wDj2 oBJNjnxSX6C9VLHAv37kNj8= X-Google-Smtp-Source: AAOMgpcdcBukJjfV6CCWsEzsMJE1sw2PYKOfTJLmYxPAAvF9sDbK7Ubuse9BoLR+xxSEAQwS28n5fw== X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr9105208plb.297.1530861470624; Fri, 06 Jul 2018 00:17:50 -0700 (PDT) Received: from ox ([2601:641:c000:b800:d5c1:4c21:1e88:ba92]) by smtp.gmail.com with ESMTPSA id t3-v6sm14791588pfk.161.2018.07.06.00.17.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 00:17:49 -0700 (PDT) Sender: Navdeep Parhar Date: Fri, 6 Jul 2018 00:17:39 -0700 From: "np@FreeBSD.org" To: "Eggert, Lars" Cc: "freebsd-net@freebsd.org" , Giuseppe Lettieri Subject: Re: netmap & chelsio Message-ID: <20180706071739.GA13401@ox> Mail-Followup-To: "Eggert, Lars" , "freebsd-net@freebsd.org" , Giuseppe Lettieri References: <94019926-B14F-47AB-8AD9-C01B4A0E199F@netapp.com> <20180705154710.GA3353@ox> <0199F257-F9D2-41D0-B4F9-26FBA1607F61@netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0199F257-F9D2-41D0-B4F9-26FBA1607F61@netapp.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2018 07:17:52 -0000 On Fri, Jul 06, 2018 at 06:41:53AM +0000, Eggert, Lars wrote: > Hi, > > On 2018-7-5, at 17:47, np@FreeBSD.org wrote: > > Set hw.cxgbe.fl_pktshift=0 in loader.conf to stop the chip from doing > > this. See cxgbe(4) for details on the knob. It's a historic > > optimization that doesn't seem to matter on modern CPUs, so the driver > > default should probably be 0 instead of 2. > > thanks, I must have missed this in the man page. > > Looking at this in detail now, I wonder if there are other loader > settings that should be set for netmap use, such as > hw.cxgbe.buffer_packing=0 and/or hw.cxgbe.allow_mbufs_in_cluster=0? The driver uses dedicated tx/rx queues for netmap and those queues use netmap provided buffers instead of driver allocated mbuf+cluster used by normal rx queues. buffer_packing and allow_mbufs_in_cluster are not applicable to netmap queues. Regards, Navdeep