Hello,
I have a question related to MTU of an Ethernet driver. As far as I remember in TX1 we could set any desired value to MTU.
Inside drivers/net/ethernet/nvidia/eqos/drv.c at function eqos_change_mtu():
if ((new_mtu != 1500) && (new_mtu != 4074) && (new_mtu != 9000)) {
dev_err(&pdev->dev, "valid mtus are 1500, 4074, or 9000\n");
return -EINVAL;
}
Can I have some explanation regarding this limitation?
Why it’s restricted to only 3 values?
Is it a HW or SW limitation?
For example:
#ifconfig eth0 mtu 2000
SIOCSIFMTU: Invalid argument
#dmesg
eqos 2490000.ether_qos: valid mtus are 1500, 4074, or 9000
Thanks