net/mlx5: fix UDP checksum zeroing
authorDekel Peled <dekelp@mellanox.com>
Mon, 5 Aug 2019 11:51:19 +0000 (14:51 +0300)
committerRaslan Darawsheh <rasland@mellanox.com>
Tue, 6 Aug 2019 15:42:12 +0000 (17:42 +0200)
commit1f1eb0949c1889ec5cd62e0619c3336fa0619af9
treed23d22fc941cd9c8bf9332c4ced20bcc5f4d80cf
parent6fd05da9efbd387d0f1fdd7824bc5298dff368fe
net/mlx5: fix UDP checksum zeroing

Function flow_dv_zero_encap_udp_csum() uses a while loop to iterate
over vlan items in flow rule.
Pointer next_hdr is incremented to the next item before it is used,
so the first item is skipped.

This patch moves the incrementing of next_hdr to the correct place.

Fixes: bf1d7d9a033a ("net/mlx5: zero out UDP checksum in encapsulation")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c