net/dpaa: fix Rx offload flags on jumbo MTU set
authorApeksha Gupta <apeksha.gupta@nxp.com>
Thu, 16 Jan 2020 07:56:38 +0000 (13:26 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:59:19 +0000 (19:59 +0100)
commit40c79ea091e37efc836597cac2fa98be08feb72a
tree7e0fdcbd0cb413953f4725ee41de75fa87348afb
parentb57b66a97ebfbeb6cd98077db499ecc20ee6fb9d
net/dpaa: fix Rx offload flags on jumbo MTU set

The JUMBO frame handling in dpaa_dev_mtu_set api was not correct.
When frame_size is greater than RTE_ETHER_MAX_LEN, the
intention is to add JUMBO flag in rx offload while it was resetting
all other flags other than JUMBO as AND operator was used instead of OR.

Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs")
Cc: stable@dpdk.org
Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/dpaa/dpaa_ethdev.c