net/mlx5: add GRE as L4 layer for entropy calculation

Message ID 20250226095155.55582-1-yrosner@nvidia.com (mailing list archive)
State Awaiting Upstream
Delegated to: Raslan Darawsheh
Headers
Series net/mlx5: add GRE as L4 layer for entropy calculation |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS

Commit Message

Yaniv Rosner Feb. 26, 2025, 9:51 a.m. UTC
Signed-off-by: Yaniv Rosner <yrosner@nvidia.com>
Acked-by: Bing Zhao <bingz@nvidia.com>
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Raslan Darawsheh May 12, 2025, 6:21 a.m. UTC | #1
Hi,


On 26/02/2025 11:51 AM, Yaniv Rosner wrote:
> Signed-off-by: Yaniv Rosner <yrosner@nvidia.com>
> Acked-by: Bing Zhao <bingz@nvidia.com>
> ---
>   drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
> index e72b87d70f..27ee9d6cd3 100644
> --- a/drivers/net/mlx5/mlx5_flow_hw.c
> +++ b/drivers/net/mlx5/mlx5_flow_hw.c
> @@ -14875,6 +14875,9 @@ flow_hw_calc_encap_hash(struct rte_eth_dev *dev,
>   		case RTE_FLOW_ITEM_TYPE_ICMP6:
>   			data.next_protocol = IPPROTO_ICMPV6;
>   			break;
> +		case RTE_FLOW_ITEM_TYPE_GRE:
> +			data.next_protocol = IPPROTO_GRE;
> +			break;
>   		default:
>   			break;
>   		}

Patch applied to next-net-mlx,
  

Patch

diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index e72b87d70f..27ee9d6cd3 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -14875,6 +14875,9 @@  flow_hw_calc_encap_hash(struct rte_eth_dev *dev,
 		case RTE_FLOW_ITEM_TYPE_ICMP6:
 			data.next_protocol = IPPROTO_ICMPV6;
 			break;
+		case RTE_FLOW_ITEM_TYPE_GRE:
+			data.next_protocol = IPPROTO_GRE;
+			break;
 		default:
 			break;
 		}