From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Manlunas Subject: Re: [PATCH net-next] liquidio: store the L4 hash of rx packets in skb Date: Mon, 9 Jan 2017 10:59:34 -0800 Message-ID: <20170109185934.GA8823@felix.cavium.com> References: <20170107005542.GA16278@felix.cavium.com> <20170108.170941.1437038681712014840.davem@davemloft.net> <20170109184505.GA8756@felix.cavium.com> <20170109.135621.1633543054179916746.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , , , , To: David Miller Return-path: Received: from mail-bl2nam02on0067.outbound.protection.outlook.com ([104.47.38.67]:2625 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753590AbdAITAh (ORCPT ); Mon, 9 Jan 2017 14:00:37 -0500 Content-Disposition: inline In-Reply-To: <20170109.135621.1633543054179916746.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: David Miller wrote on Mon [2017-Jan-09 13:56:21 -0500]: > From: Felix Manlunas > Date: Mon, 9 Jan 2017 10:45:05 -0800 > > > David Miller wrote on Sun [2017-Jan-08 17:09:41 -0500]: > >> From: Felix Manlunas > >> Date: Fri, 6 Jan 2017 16:55:42 -0800 > >> > >> > > >> > + if (rh->r_dh.has_hash) { > >> > + u32 hash = be32_to_cpu(*(u32 *)(skb->data + r_dh_off)); > >> > >> Is the checksum defined to be in the first 4-bytes of the 8-byte DHLEN unit, > >> or the second 4-bytes? Is the answer to this question endian-dependent? > > > > The hash is always in the first 4-bytes. The location of the hash is endian > > independent. The hash itself (in its original form) is big endian. > > Thanks for explaining. > > Please fix the SPARSE issue Eric Dumazet mentioned. Will do. Thanks.