Commit fc433829 authored by Saeed Mahameed's avatar Saeed Mahameed

net/mlx5e: Ethtool steering, fix udp source port value

Copy and paste bug was introduced in the offending patch.
We need to write udp source port value into the headers value and not
headers criteria "mask".

Fixes: 142644f8 ("net/mlx5e: Ethtool steering flow parsing refactoring")
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 47bc94b8
...@@ -191,7 +191,7 @@ set_udp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, ...@@ -191,7 +191,7 @@ set_udp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v,
{ {
if (psrc_m) { if (psrc_m) {
MLX5E_FTE_SET(headers_c, udp_sport, 0xffff); MLX5E_FTE_SET(headers_c, udp_sport, 0xffff);
MLX5E_FTE_SET(headers_c, udp_sport, ntohs(psrc_v)); MLX5E_FTE_SET(headers_v, udp_sport, ntohs(psrc_v));
} }
if (pdst_m) { if (pdst_m) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment