Skip to contentSkip to conversation

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

PATCH In review Yaniv Rosner 2 participants 2 messages Mar 3, 2025 – May 12, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/mlx5/mlx5_flow_hw.c +3 -0
index e72b87d70f..27ee9d6cd3 100644
@@ -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;
 		}
Signature · 1 line
2.48.1
#1 lore raw

Hi,

Quoted 11 lines · Yaniv Rosner
---
  drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/net/mlx5/mlx5_flow_hw.c +0 -0
index e72b87d70f..27ee9d6cd3 100644

drivers/net/mlx5/mlx5_flow_hw.c flow_hw_calc_encap_hash(struct rte_eth_dev *dev, · line 14883

Quoted 9 lines
drivers/net/mlx5/mlx5_flow_hw.c +3 -0
@@ -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,

Signature · 2 lines
Kindest regards
Raslan Darawsheh