net: ixp4xx_eth: Specify min/max MTU
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 23 Sep 2023 18:38:22 +0000 (20:38 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Oct 2023 09:31:40 +0000 (11:31 +0200)
commit13efc44ca644257dd35c1b380294086505e69e7e
tree2991599439fd77aeb137bfcc9b6f87089c8944b8
parentf01821b7634895feab1a47235387d122e0dd4faa
net: ixp4xx_eth: Specify min/max MTU

As we don't specify the MTU in the driver, the framework
will fall back to 1500 bytes and this doesn't work very
well when we try to attach a DSA switch:

  eth1: mtu greater than device maximum
  ixp4xx_eth c800a000.ethernet eth1: error -22 setting
  MTU to 1504 to include DSA overhead

I checked the developer docs and the hardware can actually
do really big frames, so update the driver accordingly.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230923-ixp4xx-eth-mtu-v1-1-9e88b908e1b2@linaro.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/xscale/ixp4xx_eth.c