From owner-freebsd-net@FreeBSD.ORG Mon Mar 30 22:59:45 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB9E1D7E; Mon, 30 Mar 2015 22:59:45 +0000 (UTC) Received: from mail.strugglingcoder.info (strugglingcoder.info [65.19.130.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1004766; Mon, 30 Mar 2015 22:59:45 +0000 (UTC) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPSA id 22BC310446C; Mon, 30 Mar 2015 15:59:45 -0700 (PDT) Date: Mon, 30 Mar 2015 15:59:45 -0700 From: hiren panchasara To: Adrian Chadd Subject: Re: Full 32bit flowid from igb(4) Message-ID: <20150330225945.GI10892@strugglingcoder.info> References: <20150323233908.GT53237@strugglingcoder.info> <20150323234214.GU53237@strugglingcoder.info> <20150324154931.GC53237@strugglingcoder.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+PbGPm1eXpwOoWkI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Jack F Vogel , FreeBSD Net , erj@freebsd.org, Jack Vogel , Jason Wolfe X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 30 Mar 2015 22:59:46 -0000 --+PbGPm1eXpwOoWkI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 03/24/15 at 01:51P, Adrian Chadd wrote: > Hi, >=20 > The main reason I didn't add it outside of RSS is that I didn't want > to impact the behaviour that was there before. Before, it wasn't using > the flowid - only the msix/queue id. It'd break things if not all igb chips behave the same way in this regard. In which case, we'd have to fix them on per-case basis by pointing broken ones to the old behavior. >=20 > I read the intel datasheets about that particular field - I'm pretty > sure that by default we'll only see RSS hashed packets for IPv4/IPv6, > however non v4/v6 packets won't have a flowid. I guess that'd be okay for tiny traffic going through non-hashed. > There are also cases of > the flow director or some hardware checksum config using the same > field as the flowid. I don't understand your point here. Which field do you refer to as "the same field"? Can you please explain a bit more? >=20 > The /full/ solution would very carefully check the return status and > ensure what's in the flowid field is a flowid. Yes, I am waiting for Eric or Jack to comment on it. >=20 > The "sometimes it may have a flowid, sometimes it won't" problem isn't > so bad with kernel RSS enabled - it'll just software hash it. True. Cheers, Hiren --+PbGPm1eXpwOoWkI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQF8BAEBCgBmBQJVGdVgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/l5EMH/31tknnYUFrwNRKdm5+mIrnR fg0sgMfFed113f4/qVYLp1JwaY8oRCl+uSnQUgGdYAAyr7/8D6z/qLC71VhrWLjU 9V+mzK6Eqq5Q+uIDvZVAsTULYvR83PxiyjxjACWTDT3FR0RSf0uzf3PMABGAMVk9 BXl7qN/3Dz84yQ8zOb6PuqeYMXW93z/qWL28giAvytdcfG+1eZkPSgH2HCR1frWB UUtwecCcDELYbUpTSob9N8Z5hnTw/D/GmkwKnFvC/YozX4nwmOkHT7lwTT+GpVve NBRbmrN0uBv38KkGfApWwtoZ+jKhoxRyvwAyoLT/OarEntcqxgsa1nQblADrYdI= =7y9Z -----END PGP SIGNATURE----- --+PbGPm1eXpwOoWkI--