From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4308A051F; Wed, 10 Jun 2020 15:26:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C70F71BEA7; Wed, 10 Jun 2020 15:26:25 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 6B5E04C7B for ; Wed, 10 Jun 2020 15:26:24 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from dekelp@mellanox.com) with SMTP; 10 Jun 2020 16:26:22 +0300 Received: from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx [10.228.134.250]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 05ADQMBu026946; Wed, 10 Jun 2020 16:26:22 +0300 From: Dekel Peled To: matan@mellanox.com, viacheslavo@mellanox.com, rasland@mellanox.com Cc: dev@dpdk.org Date: Wed, 10 Jun 2020 16:25:19 +0300 Message-Id: <6dd4f7a13e375c743e77555a6360e7bfa9b9aba5.1591795480.git.dekelp@mellanox.com> X-Mailer: git-send-email 1.7.1 Subject: [dpdk-dev] [PATCH] net/mlx5: move GTP mask define to correct location X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Recent patch [1] added definition of mask MLX5_GTP_FLAGS_MASK, just above function flow_dv_validate_item_gtp(), where it is used. Patch was applied together with other patches which modified the same file, so the mask was located further away from the function it is used in. This patch moves the mask definition to the proper location. Signed-off-by: Dekel Peled Acked-by: Matan Azrad [1] Commit 563ac307a46b ("net/mlx5: support match on GTP flags") --- drivers/net/mlx5/mlx5_flow_dv.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 81f5bd4..d645d2d 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -1639,18 +1639,6 @@ struct field_modify_info modify_tcp[] = { return 0; } -/* - * GTP flags are contained in 1 byte of the format: - * ------------------------------------------- - * | bit | 0 - 2 | 3 | 4 | 5 | 6 | 7 | - * |-----------------------------------------| - * | value | Version | PT | Res | E | S | PN | - * ------------------------------------------- - * - * Matching is supported only for GTP flags E, S, PN. - */ -#define MLX5_GTP_FLAGS_MASK 0x07 - /** * Validate VLAN item. * @@ -1724,6 +1712,18 @@ struct field_modify_info modify_tcp[] = { return 0; } +/* + * GTP flags are contained in 1 byte of the format: + * ------------------------------------------- + * | bit | 0 - 2 | 3 | 4 | 5 | 6 | 7 | + * |-----------------------------------------| + * | value | Version | PT | Res | E | S | PN | + * ------------------------------------------- + * + * Matching is supported only for GTP flags E, S, PN. + */ +#define MLX5_GTP_FLAGS_MASK 0x07 + /** * Validate GTP item. * -- 1.8.3.1