Skip to content

Commit d515d63

Browse files
GavinLi-NVSaeed Mahameed
authored andcommitted
net/mlx5e: Don't support encap rules with gbp option
Previously, encap rules with gbp option would be offloaded by mistake but driver does not support gbp option offload. To fix this issue, check if the encap rule has gbp option and don't offload the rule Fixes: d8f9dfa ("net: sched: allow flower to match vxlan options") Signed-off-by: Gavin Li <[email protected]> Reviewed-by: Maor Dickman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent fe91d57 commit d515d63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ static int mlx5e_gen_ip_tunnel_header_vxlan(char buf[],
8888
struct udphdr *udp = (struct udphdr *)(buf);
8989
struct vxlanhdr *vxh;
9090

91+
if (tun_key->tun_flags & TUNNEL_VXLAN_OPT)
92+
return -EOPNOTSUPP;
9193
vxh = (struct vxlanhdr *)((char *)udp + sizeof(struct udphdr));
9294
*ip_proto = IPPROTO_UDP;
9395

0 commit comments

Comments
 (0)