From patchwork Thu Nov 11 02:04:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Casey Leedom X-Patchwork-Id: 70757 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5A9EEB7114 for ; Thu, 11 Nov 2010 13:04:37 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932283Ab0KKCEY (ORCPT ); Wed, 10 Nov 2010 21:04:24 -0500 Received: from stargate.chelsio.com ([67.207.112.58]:22059 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278Ab0KKCEX (ORCPT ); Wed, 10 Nov 2010 21:04:23 -0500 Received: from okham.asicdesigners.com (okham.asicdesigners.com [10.192.164.4]) by stargate.chelsio.com (8.13.1/8.13.1) with ESMTP id oAB24MIE019390; Wed, 10 Nov 2010 18:04:22 -0800 Received: from leedom by okham.asicdesigners.com with local (Exim 4.71) (envelope-from ) id 1PGMWU-0001IR-16; Wed, 10 Nov 2010 18:04:22 -0800 From: Casey Leedom To: netdev@vger.kernel.org Cc: davem@davemloft.net, Casey Leedom Subject: [PATCH 09/10] cxgb4vf: Mark "UDP [RSS Hash] Enable" as a 1-bit field. Date: Wed, 10 Nov 2010 18:04:11 -0800 Message-Id: <1289441052-4925-9-git-send-email-leedom@chelsio.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <450C6E98-D0D9-42A6-9F15-4DB98647DB04@chelsio.com> References: <450C6E98-D0D9-42A6-9F15-4DB98647DB04@chelsio.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Mark the UDP RSS Hash Enable field as 1-bit in length. Also clean up formatting from previous changeset which changed the RSS 1-bit fields from "int" to "unsigned int". Signed-off-by: Casey Leedom --- drivers/net/cxgb4vf/t4vf_common.h | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/cxgb4vf/t4vf_common.h b/drivers/net/cxgb4vf/t4vf_common.h index 873cb7d..659616b 100644 --- a/drivers/net/cxgb4vf/t4vf_common.h +++ b/drivers/net/cxgb4vf/t4vf_common.h @@ -132,15 +132,15 @@ struct rss_params { unsigned int mode; /* RSS mode */ union { struct { - unsigned int synmapen:1; /* SYN Map Enable */ - unsigned int syn4tupenipv6:1; /* enable hashing 4-tuple IPv6 SYNs */ - unsigned int syn2tupenipv6:1; /* enable hashing 2-tuple IPv6 SYNs */ - unsigned int syn4tupenipv4:1; /* enable hashing 4-tuple IPv4 SYNs */ - unsigned int syn2tupenipv4:1; /* enable hashing 2-tuple IPv4 SYNs */ - unsigned int ofdmapen:1; /* Offload Map Enable */ - unsigned int tnlmapen:1; /* Tunnel Map Enable */ - unsigned int tnlalllookup:1; /* Tunnel All Lookup */ - unsigned int hashtoeplitz:1; /* use Toeplitz hash */ + uint synmapen:1; /* SYN Map Enable */ + uint syn4tupenipv6:1; /* enable hashing 4-tuple IPv6 SYNs */ + uint syn2tupenipv6:1; /* enable hashing 2-tuple IPv6 SYNs */ + uint syn4tupenipv4:1; /* enable hashing 4-tuple IPv4 SYNs */ + uint syn2tupenipv4:1; /* enable hashing 2-tuple IPv4 SYNs */ + uint ofdmapen:1; /* Offload Map Enable */ + uint tnlmapen:1; /* Tunnel Map Enable */ + uint tnlalllookup:1; /* Tunnel All Lookup */ + uint hashtoeplitz:1; /* use Toeplitz hash */ } basicvirtual; } u; }; @@ -151,11 +151,11 @@ struct rss_params { union rss_vi_config { struct { u16 defaultq; /* Ingress Queue ID for !tnlalllookup */ - unsigned int ip6fourtupen:1; /* hash 4-tuple IPv6 ingress packets */ - unsigned int ip6twotupen:1; /* hash 2-tuple IPv6 ingress packets */ - unsigned int ip4fourtupen:1; /* hash 4-tuple IPv4 ingress packets */ - unsigned int ip4twotupen:1; /* hash 2-tuple IPv4 ingress packets */ - int udpen; /* hash 4-tuple UDP ingress packets */ + uint ip6fourtupen:1; /* hash 4-tuple IPv6 ingress packets */ + uint ip6twotupen:1; /* hash 2-tuple IPv6 ingress packets */ + uint ip4fourtupen:1; /* hash 4-tuple IPv4 ingress packets */ + uint ip4twotupen:1; /* hash 2-tuple IPv4 ingress packets */ + uint udpen:1; /* hash 4-tuple UDP ingress packets */ } basicvirtual; };