Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp319041yba; Sat, 20 Apr 2019 03:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQz25jyPs8a/cnaTES438ZPFARuXNlYYf4x1Qnn6GmauE1hgphRgvXuMYC6czRlVjf3FEm X-Received: by 2002:a17:902:2be8:: with SMTP id l95mr9077512plb.330.1555755512922; Sat, 20 Apr 2019 03:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555755512; cv=none; d=google.com; s=arc-20160816; b=BYpw5eIx9wd1o3aKznefYvopc1YTYsZLFDpYqzbhXUx6kp2gUo+GrYyhKa/OQKF8+c PNj9lSy6tIazCUDDFLGJE0FFo7RWq+1ca0CfADY+nYyhtsJPs72JfuL+k6FhvxkhknmJ BGKog3/E6joJNd+RzGo4qgtBUAV8r0BGiyHhgCPPrjI0peAumXSRSgukRZLbDWTIINPn AbCEZYrjzW9sWn9ZkxuBo7RIrJ2/HqbciKisGFNvxDg0rBjtbTFJ/C7kBw4df0z4VIPk l0mDTpMlOD2m5mFV9QI2R9nxxOMRtqaRPPWAaU0If/bqaOHxVGMTDiBTuJERf+WFcgDK hhkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=SNnKDG4MpDqnpdKif/qUTjATidHgX/8ATitkXXzGHJE=; b=Khu7VBn0CpVslNTHf/ksOARGnXukmOEhKuevNQDKyD0cPq7Nu7wVQi2uO2yhj4kxYD dPkzpch7bujqO5mswCOV83Ud9J3RN7QgdYuNMm1jdclgfI7vdPVHzrklo7NUJHsG7LT9 LdSWH0BExQcz0c0XC1zaVwLFNSsXQS/mRICkVfyOhXTNKQ/OaNT9tBkTIxEd3MY3h/dy iP3QnTL3I+0v6iow0f7Ks7pstV5RAVdu3O+dAVoMusDntPLrWuBB1O1Wc/3vWU/7kJ8P 9nhz2KfjPcBV5+9vv622BSDuY9B5LlWSFe5gczYH0Oxqe9ZUl7hPoSuUFdW3ehk5AcOa Adtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si7503713plq.149.2019.04.20.03.18.17; Sat, 20 Apr 2019 03:18:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727403AbfDTKRX (ORCPT + 99 others); Sat, 20 Apr 2019 06:17:23 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:60663 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfDTKRX (ORCPT ); Sat, 20 Apr 2019 06:17:23 -0400 Received: from bootlin.com (lfbn-tou-1-417-253.w86-206.abo.wanadoo.fr [86.206.242.253]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id ADD6A10000B; Sat, 20 Apr 2019 10:17:14 +0000 (UTC) Date: Sat, 20 Apr 2019 12:17:14 +0200 From: Maxime Chevallier To: David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, antoine.tenart@bootlin.com, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next] net: mvpp2: cls: Add Classification offload support Message-ID: <20190420121714.387f160b@bootlin.com> In-Reply-To: <20190419.150950.1875022930637674395.davem@davemloft.net> References: <20190419133027.8012-1-maxime.chevallier@bootlin.com> <20190419.150950.1875022930637674395.davem@davemloft.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Fri, 19 Apr 2019 15:09:50 -0700 (PDT) David Miller wrote: >From: Maxime Chevallier >Date: Fri, 19 Apr 2019 15:30:27 +0200 > >> +/* Internal represention of a Flow Steering rule */ >> +struct mvpp2_rfs_rule { >> + /* Rule location inside the flow*/ >> + int loc; >> + >> + /* Flow type, such as TCP_V4_FLOW, IP6_FLOW, etc. */ >> + int flow_type; >> + >> + /* The lookup type used by this flow. This allows the classification >> + * engines to differentiate between entries that match the same >> + * parameters >> + */ >> + int lu_type; >> + >> + /* Index of the entry handling this rule in the flow table */ >> + int flt_index; >> + >> + /* Index of the C2 TCAM entry handling this rule */ >> + int c2_index; > >On 64-bit there will be a 32-bit hole here. Why not put hek_fields >and engine here? You're right, I'll re-arrange that. Thanks, Maxime