summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Saxena <sachin.saxena@nxp.com>2019-11-11 21:38:57 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-11 17:25:31 +0100
commit0d20cda8a935d0df3c6e483422151705200907d0 (patch)
treeef1787cdbac537b184fd51e4f1ce6c6ac56daaae
parent436b3a6b6e6241348f1ec7b6f81af831ebb582eb (diff)
downloaddpdk-0d20cda8a935d0df3c6e483422151705200907d0.zip
dpdk-0d20cda8a935d0df3c6e483422151705200907d0.tar.gz
dpdk-0d20cda8a935d0df3c6e483422151705200907d0.tar.xz
net/dpaa2: fix Rx offload flags on jumbo MTU set
The JUMBO frame handling in dpaa2_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: Sachin Saxena <sachin.saxena@nxp.com> Reviewed-by: Gagandeep Singh <g.singh@nxp.com>
-rw-r--r--drivers/net/dpaa2/dpaa2_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index eea31f2..2cde55e 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -1289,7 +1289,7 @@ dpaa2_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
return -EINVAL;
if (frame_size > RTE_ETHER_MAX_LEN)
- dev->data->dev_conf.rxmode.offloads &=
+ dev->data->dev_conf.rxmode.offloads |=
DEV_RX_OFFLOAD_JUMBO_FRAME;
else
dev->data->dev_conf.rxmode.offloads &=