Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2236992yba; Fri, 19 Apr 2019 15:12:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyliGvaIK6Y73HVPswZmskIHZq01+BhX6h0XOqZO/SggbDiMWmCE5q620IPwH/iECZc18CM X-Received: by 2002:a17:902:7081:: with SMTP id z1mr6034723plk.252.1555711935255; Fri, 19 Apr 2019 15:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555711935; cv=none; d=google.com; s=arc-20160816; b=PPfScWOFwDDXjfySZuBuN9D/oVspsn5MOY0eeJI5i/RritY0cAigL4SjMHOMl7ewQI aCDVyepNV7n1SJ8vgFFhGPbW8S979ckF3ZOvCvH8unwER4OVjYIpxMwtUovoDyyaGUfP tfm7KqPplwsPX6H0kwkr7qwEK97neEzNsod7UzLmgUmbUHyyduXyZi8DpzgrXKCGVhY5 5cT3fCZALlWzcijpTlUfi47hikHFGApaGVG5hudUTd1YXH4LJ63b/fQWzHof+hKBi7vm UV6nvtl7X00yf/gD8ID6v1Ol4A5n0VYbCsVBk1vElhng5tolJNeORjbrTu7ZGj9PGAOY e/tg== 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:from:subject:cc:to:message-id:date; bh=KDcI2uWjrK/81CdfQwh9DUc7HpIzd50iDuJqyDDC3yc=; b=q2W05Cy7cn4sDQXD3bpdlMLtWbfaWnycR9ZXZ5B5a9mClk2gshJMrJ6aUqz96LBO0c vXl2Fe72OZeE50u+xETnfXhwl0dSb99waya3eTZdGLMkdYl0dUlJpVk1KLuvaY2CHDE8 xwGj+dpBra891Portr57bL6W52M3xloN2iF4kcRIUfnuZYlNxhV5RD6k2lnc0be+Vt51 oZmHz9mE7Xt7rSiSG1HiiSsrzdmacZesXhxv5hYr4mwKENlPzr5d5D2HgO4PQpUQFHeC Y/IVuuW07hcY42Vx0eLSjJucKIrE/EgXZxEfGrseYBZCtq1YHSa7Y0aGXnGTmteE5XbR DYbA== 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 31si6486640plk.42.2019.04.19.15.12.00; Fri, 19 Apr 2019 15:12:15 -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 S1726275AbfDSWJw (ORCPT + 99 others); Fri, 19 Apr 2019 18:09:52 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:36114 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfDSWJw (ORCPT ); Fri, 19 Apr 2019 18:09:52 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 785BB14D9DAB9; Fri, 19 Apr 2019 15:09:51 -0700 (PDT) Date: Fri, 19 Apr 2019 15:09:50 -0700 (PDT) Message-Id: <20190419.150950.1875022930637674395.davem@davemloft.net> To: maxime.chevallier@bootlin.com 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 From: David Miller In-Reply-To: <20190419133027.8012-1-maxime.chevallier@bootlin.com> References: <20190419133027.8012-1-maxime.chevallier@bootlin.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 19 Apr 2019 15:09:51 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?