From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] liquidio: store the L4 hash of rx packets in skb Date: Sun, 08 Jan 2017 17:09:41 -0500 (EST) Message-ID: <20170108.170941.1437038681712014840.davem@davemloft.net> References: <20170107005542.GA16278@felix.cavium.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, raghu.vatsavayi@cavium.com, derek.chickles@cavium.com, satananda.burla@cavium.com To: felix.manlunas@cavium.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:42746 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968703AbdAHWJn (ORCPT ); Sun, 8 Jan 2017 17:09:43 -0500 In-Reply-To: <20170107005542.GA16278@felix.cavium.com> Sender: netdev-owner@vger.kernel.org List-ID: 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?