summaryrefslogtreecommitdiff
path: root/drivers/net/octeontx2/otx2_ethdev_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/octeontx2/otx2_ethdev_ops.c')
-rw-r--r--drivers/net/octeontx2/otx2_ethdev_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/octeontx2/otx2_ethdev_ops.c b/drivers/net/octeontx2/otx2_ethdev_ops.c
index d715f40..8f1635d 100644
--- a/drivers/net/octeontx2/otx2_ethdev_ops.c
+++ b/drivers/net/octeontx2/otx2_ethdev_ops.c
@@ -17,6 +17,8 @@ otx2_nix_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
struct nix_frs_cfg *req;
int rc;
+ frame_size += NIX_TIMESYNC_RX_OFFSET * otx2_ethdev_is_ptp_en(dev);
+
/* Check if MTU is within the allowed range */
if (frame_size < NIX_MIN_FRS || frame_size > NIX_MAX_FRS)
return -EINVAL;