From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15B46262A1; Mon, 16 Oct 2023 15:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nwE77uyM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2663CC433C9; Mon, 16 Oct 2023 15:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697468523; bh=J5b7wIkmNDZePcl6689bb1lqUj0fI6CrDKw3d6N9cNQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nwE77uyMYSNbphoXAWn6ygCBN9Q7OQRXv+tz+SPnRISF379jWyUQyfomoc1+mxW+P NIZnRfAqC7tevyg0mOTjTv782qCPLA07+i1UgcSqJvOt9JSMVDjEwOCv2uPKAtxvmY vJRzQTj1EvdV5oQGdwUkT8mhnpJyD3Rl0m935hTPR6wFmLES/JXnhJs7MscEZtAaY9 0bf7k93jUqoAJ/4bVq0BMXTEeIzsc46z1jqTcU7Ymq752JZSgaQ6nsayyXx0/2P7fB 0qNmHFNfzp6Vtb6D7TS/cXVLLYFRvR0M0fDeIgPzfPK3YyK862ibFTE6AgjLW3C3Bc 34jwcmi6xdGYw== Date: Mon, 16 Oct 2023 08:02:02 -0700 From: Jakub Kicinski To: Ahmed Zaki Cc: , , , , , , , , , , , , , Wojciech Drewek , Willem de Bruijn Subject: Re: [PATCH net-next v3 1/6] net: ethtool: allow symmetric-xor RSS hash for any flow type Message-ID: <20231016080202.0d755ef3@kernel.org> In-Reply-To: References: <20231010200437.9794-1-ahmed.zaki@intel.com> <20231010200437.9794-2-ahmed.zaki@intel.com> <8d205051-d04c-42ff-a2c5-98fcd8545ecb@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 14 Oct 2023 06:19:54 -0600 Ahmed Zaki wrote: > >> +#define RXH_SYMMETRIC_XOR (1 << 30) > >> +#define RXH_DISCARD (1 << 31) > >> > >> Are these indentation changes intentional? > >> > >> > >> Yes, for alignment ("RXH_SYMMETRIC_XOR" is too long). > > > > I think it's preferable to not touch other lines. Among others, that > > messes up git blame. But it's subjective. Follow your preference if no > > one else chimes in. > > Jakub, > > Sorry for late reply, I was off for few days. > > I'd like to keep this version, I don't see any other comments that needs > to be addressed. Can you accept this or need a v4/rebase ? I think you should add a comment above the define explaining what "symmetric-xor" is. Is this correct? /* XOR corresponding source and destination fields, both copies * of the XOR'ed fields are fed into the RSS and RXHASH calculation. */