From: Dekel Peled Date: Wed, 10 Jun 2020 13:25:19 +0000 (+0300) Subject: net/mlx5: fix GTP mask definition location X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=7842dfeacda1d7e65378cd9fb467f7a955d21574 net/mlx5: fix GTP mask definition location Recent patch 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. Fixes: 563ac307a46b ("net/mlx5: support match on GTP flags") Cc: stable@dpdk.org Signed-off-by: Dekel Peled Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 81f5bd4282..d645d2d2bf 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -1639,18 +1639,6 @@ flow_dv_validate_item_port_id(struct rte_eth_dev *dev, 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 @@ flow_dv_validate_item_vlan(const struct rte_flow_item *item, 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. *