From owner-freebsd-net@freebsd.org Tue Jun 16 23:57:36 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 900FF33A18E for ; Tue, 16 Jun 2020 23:57:36 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49mlW31vG3z3yjv for ; Tue, 16 Jun 2020 23:57:35 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pj1-x1031.google.com with SMTP id s88so141702pjb.5 for ; Tue, 16 Jun 2020 16:57:35 -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; bh=sbkEZfCYp6jCxjrXl7SsgSogJFOAynqDEDUnt7UPJmU=; b=dH8GJsmgq107y/EKq2pbgDZ/1HSG3B1/LS7/Jv4GqMMQo16jMjPc5bAjJ12kjFDwrT t9mpbyPS/XZgmjcap8B2QjjpwFWtANYlg/zGi5X9t/FFdw7iY8HZeKEPzZRwJ2dhxvK7 wPGcVCvjTivI1jr3xV3A6rsrleJuzkMScFybN47hhIVmm60Q6SZ/do7wMkecIRG2Gphh OUEOhuclx9rycuZ9QI2ftSmm0F0/VK4AKfwPZLatKc4k5MCj3u/1O4Xbg+l3C1VyCTzD TMon3hC9RI9JwIb0bfNtBuCyI7IGjKz7w0a4uqCEL8RH4UG+d4itimytimK71aJjtIlF jmuA== 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; bh=sbkEZfCYp6jCxjrXl7SsgSogJFOAynqDEDUnt7UPJmU=; b=J5g0o1PH/T56YKuikaJCCdDZ864GtdFLHMmITlF96hdUPZi81dluQiQ+NfBVjW5S5m ivfcs6IWmbgqQuw68a/FGYgP8M+iW0LxH5zkAj8qtCLR6N/kPWXRDyqGJIwpTstWxvIg pOINCQJ+o2SMZKGiW1JLX1g3waA0Oy/RWJK37MzXJckm7QuPsZTctlR1i57mtZPkjdsV n588FlAAkK+J2G1fS/0I1XjLU+g0Q99mAwM5kSAIjqJgthAH/oey8YJmmpeBzYf+QYne bzLZu3qrqgHKkhugCBBGP00QKUwSS+/P1/H+QvNQ777NNiXpylw/RZT8HjLGofvk4YaC jneg== X-Gm-Message-State: AOAM531+UzU/2fmqe6UoCh7sjdadLLfFHn4aUPraLOxwFg2ElRFVavsP z4qctUeg0fEo5vmpUG2nho6S8oKD X-Google-Smtp-Source: ABdhPJzgPgoztmkGgdM7hIGAPft94YW0WvAwCESsM4Kt5Sgq/G3A+XQmZraYnOpwL0EOp6Mvb76qQQ== X-Received: by 2002:a17:90a:2ec6:: with SMTP id h6mr5505427pjs.82.1592351853980; Tue, 16 Jun 2020 16:57:33 -0700 (PDT) Received: from x270 ([2601:641:c000:b500::1353]) by smtp.gmail.com with ESMTPSA id n37sm6804229pgl.82.2020.06.16.16.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 16:57:33 -0700 (PDT) Sender: Navdeep Parhar Date: Tue, 16 Jun 2020 16:57:27 -0700 From: Navdeep Parhar To: "Foster, Greg" Cc: "freebsd-net@freebsd.org" Subject: Re: How to Increase TX Queue Priority for LACP Packets Message-ID: <20200616235727.GA80914@x270> Mail-Followup-To: "Foster, Greg" , "freebsd-net@freebsd.org" References: <20200613025031.GA34653@x270> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 49mlW31vG3z3yjv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dH8GJsmg; dmarc=none; spf=pass (mx1.freebsd.org: domain of nparhar@gmail.com designates 2607:f8b0:4864:20::1031 as permitted sender) smtp.mailfrom=nparhar@gmail.com X-Spamd-Result: default: False [-2.22 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.04)[-1.037]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1031:from]; NEURAL_HAM_SHORT(-0.54)[-0.545]; NEURAL_HAM_MEDIUM(-0.94)[-0.939]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[np@FreeBSD.org,nparhar@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[np@FreeBSD.org,nparhar@gmail.com]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 23:57:36 -0000 On Tue, Jun 16, 2020 at 07:56:19PM +0000, Foster, Greg wrote: > HI Navdeep, > > Thanks for the information! I've integrated the changes and will be > testing more today. > > We have seen the LACP port flapping under different scenarios, most we > believe are traffic/load based. > > I did see the flapping unexpectedly when I just enabled LACP debug > (e.g., sysctl net.link.lagg.lacp.debug=1). Is this a known > problem? No, I don't think so. The debug output goes to the console so it is relatively slow but it shouldn't cause any flaps directly. Regards, Navdeep > > Thanks > Greg > > -----Original Message----- > From: Navdeep Parhar On Behalf Of Navdeep Parhar > Sent: Friday, June 12, 2020 7:51 PM > To: Foster, Greg > Cc: freebsd-net@freebsd.org > Subject: Re: How to Increase TX Queue Priority for LACP Packets > > On Fri, Jun 12, 2020 at 11:47:41PM +0000, Foster, Greg wrote: > > FreeBSD Networkers, > > > > We are seeing LACP port flapping on our FreeBSD 10.4/12.1 systems > > under different conditions. > > > > Can someone explain or point me to the information on how to queue > > the LACP packets to a higher priority queue ? > > > > We are using the Chelsio T580-LP-CR adapter/cxgbe driver. The > > Cheslio NICs have 8 TX/RX queues each, but I don't know how to > > explicitly put the LACP packets in the higher priority TX queue. > > > > I've read about PF/ALTQ and think this may be overkill our needs, > > and was wondering if there was a simpler method. > > This is cxgbe specific but that's what you're using so it'll do. > > Add "hw.cxgbe.rsrv_noflowq=1" to your /boot/loader.conf. That > reserves one tx queue for non-RSS traffic (like ARP, LACP). You might > also want to increase the number of tx queues to compensate for the > one that's now reserved. Use "hw.cxgbe.ntxq=9" for that. The ntxq > knob might be different on 10.4 but the man page matching the driver > should have its exact name. > > Regards, > Navdeep >