net/mvpp2: fix build with gcc 10
authorThomas Monjalon <thomas@monjalon.net>
Wed, 20 May 2020 09:56:02 +0000 (11:56 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 21 May 2020 13:41:48 +0000 (15:41 +0200)
commit7f55a2053b908ff08a8a2d1cc8d4d927923d52f7
treed91b9faa7c96f2fe0c0544416e6eb71ea112ede7
parent0ff708ed6f615cf3272c76f74987834fa6485fd0
net/mvpp2: fix build with gcc 10

GCC 10 is detecting the enum mismatch when assigning UDP variables
with MUSDK constants for TCP.

drivers/net/mvpp2/mrvl_flow.c:2521:47: error: implicit conversion
from 'enum mv_net_tcp_fields' to 'enum mv_net_udp_fields'
[-Werror=enum-conversion]

An assigned field is also fixed from "tcp" to "udp".

Fixes: 7235341d7517 ("net/mrvl: support classifier")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Liron Himi <lironh@marvell.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
drivers/net/mvpp2/mrvl_flow.c