Maxime Leroy 0ac6484625 net/mlx5: fix packet type and offload flags on Rx
In mlx5 rx function, the packet_type and ol_flags mbuf fields are not
properly initialized when no rx offload feature is enabled (checksum, l2
tun checksum, vlan_strip, crc). Thus, these fields can have a value
different of 0 depending on their value when the mbuf was freed.

This can result in an incorrect application behavior if invalid
ol_flags/ptype are set, or memory corruptions if IND_ATTACHED_MBUF is
set in ol_flags.

Fixes: 081f7eae242e ("mlx5: process offload flags only when requested")

Signed-off-by: Maxime Leroy <maxime.leroy@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2016-07-08 22:51:03 +02:00
..
2016-06-27 16:17:52 +02:00
2016-06-27 16:17:52 +02:00
2016-06-27 16:17:52 +02:00
2016-03-25 19:01:37 +01:00
2016-06-28 11:49:09 +02:00
2016-06-28 11:49:09 +02:00
2016-06-27 16:17:52 +02:00
2016-06-27 16:17:52 +02:00
2016-07-10 14:51:09 +02:00
2016-06-27 16:17:52 +02:00