From 3842c2bc78b34966ec2d8539453ca219f93d59cb Mon Sep 17 00:00:00 2001 From: Srinivas Ramachandran Date: Wed, 18 Aug 2021 13:17:27 -0700 Subject: [PATCH] nvethernet: Restrict > 9K jumbo only in eqos Issue: MGBE supports upto 16K jumbo size. There is enough MTL queue space also for 16K packet even with all 10 queues enabled in MGBE. So no need to restrict > 9k jumbo to single channel config only. FIx: For MGBE, unconditionally allow upto 16K jumbo size setting. Bug 200760072 Change-Id: I734ce3be13605e4db992a1679e2de0736bd2583f Signed-off-by: Srinivas Ramachandran Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2579108 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/net/ethernet/nvidia/nvethernet/ether_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c index 47c435a7..b90d32f9 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c @@ -3641,7 +3641,9 @@ static int ether_change_mtu(struct net_device *ndev, int new_mtu) return -EBUSY; } - if (new_mtu > OSI_MTU_SIZE_9000 && osi_dma->num_dma_chans != 1U) { + if ((new_mtu > OSI_MTU_SIZE_9000) && + (osi_dma->num_dma_chans != 1U) && + (osi_core->mac == OSI_MAC_HW_EQOS)) { netdev_err(pdata->ndev, "MTU greater than %d is valid only in single channel configuration\n" , OSI_MTU_SIZE_9000);