net/octeontx2: fix multi segment mode for jumbo packets
authorHarman Kalra <hkalra@marvell.com>
Mon, 10 Aug 2020 10:55:45 +0000 (16:25 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:11 +0000 (19:19 +0200)
commit27e27ec62999fa91b2a4865d6909ccbb5118eb26
tree75dc8bf5650a64dbda650e31d194d27eb4a99b32
parentb805cd8187b927b7c691beec7c58d2c83a1589f3
net/octeontx2: fix multi segment mode for jumbo packets

Scatter gather mode should get enabled:
 - If mbuf size is less than max received packet length.
 - MTU is reconfigured greater than mbuf size.

Fixes: 0e2efd02db58 ("net/octeontx2: add MTU set operation")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_ethdev_ops.c