[dpdk-dev] [dpdk-stable] [PATCH] net/mlx: fix IPv4 and IPv6 packet type

Ferruh Yigit ferruh.yigit at intel.com
Mon Jan 16 21:03:46 CET 2017


On 1/16/2017 2:03 PM, Adrien Mazarguil wrote:
> On Wed, Jan 11, 2017 at 05:44:33PM +0100, Olivier Matz wrote:
>> From: Matthieu Ternisien d'Ouville <matthieu.tdo at 6wind.com>
>>
>> Mellanox PMDs do not differentiate IP header with or without options, so
>> the advertised packet type for an IPv4 should not be RTE_PTYPE_L3_IPV4,
>> which explicitly means "does not contain any header option".
>>
>> Change the driver to set
>> RTE_PTYPE(_INNER)_L3_IPV4_EXT_UNKNOWN or
>> RTE_PTYPE(_INNER)_L3_IPV6_EXT_UNKNOWN flags for all IPv4/IPv6 packets
>> received.
>>
>> Fixes: 429df3803a16 ("mlx4: replace some offload flags with packet type")
>> Fixes: 67fa62bc672d ("mlx5: support checksum offload")
>>
>> CC: stable at dpdk.org
>> Signed-off-by: Samuel Gauthier <samuel.gauthier at 6wind.com>
>> Signed-off-by: Matthieu Ternisien d'Ouville <matthieu.tdo at 6wind.com>
>> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
>> ---
>>  drivers/net/mlx4/mlx4.c      | 18 ++++++++++++------
>>  drivers/net/mlx5/mlx5_rxtx.c | 12 ++++++------
>>  2 files changed, 18 insertions(+), 12 deletions(-)
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

Applied to dpdk-next-net/master, thanks.



More information about the dev mailing list