mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvethernet: limit MTU size as per dma channel
Issue: for MGBE with 10 channel enabled TCP tx is failing with 16k MTU because payload checksum errors getting incremented due to lesser MTL buffer available for each dma channel Fix: Allow MTU more than 9000 for single channel configuration only Bug 3536247 Change-Id: I675342cb401723aaa58171f00721786b4d69f57d Signed-off-by: Om Prakash Singh <omp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2672802 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
6479c24ff8
commit
5f6dd1210b
@@ -3906,8 +3906,7 @@ static int ether_change_mtu(struct net_device *ndev, int new_mtu)
|
||||
}
|
||||
|
||||
if ((new_mtu > OSI_MTU_SIZE_9000) &&
|
||||
(osi_dma->num_dma_chans != 1U) &&
|
||||
(osi_core->mac == OSI_MAC_HW_EQOS)) {
|
||||
(osi_dma->num_dma_chans != 1U)) {
|
||||
netdev_err(pdata->ndev,
|
||||
"MTU greater than %d is valid only in single channel configuration\n"
|
||||
, OSI_MTU_SIZE_9000);
|
||||
|
||||
Reference in New Issue
Block a user