net/octeontx2: fix MTU when PTP is enabled
authorHanumanth Reddy Pothula <hpothula@marvell.com>
Tue, 10 Aug 2021 07:21:00 +0000 (12:51 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 16 Sep 2021 14:29:51 +0000 (16:29 +0200)
commit07d15d4d84e89a2f7a56bec24225c8ff326a9cf8
treea9c1fadbb0ec86d10a229ce5cefa72530d718997
parent2c809af8a83a4be0fb2af626a6178b9cd8069c3e
net/octeontx2: fix MTU when PTP is enabled

Update MTU value based on PTP enable status and reserve eight
bytes in TX path to accommodate VLAN tags.

If PTP is enabled maximum allowed MTU is 9200 otherwise it's 9208.

Fixes: b5dc3140448e ("net/octeontx2: support base PTP")
Cc: stable@dpdk.org
Signed-off-by: Hanumanth Reddy Pothula <hpothula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev_ops.c