• Martin Willi's avatar
    net: dsa: mv88e6xxx: Limit chip-wide frame size config to CPU ports · 66b6095c
    Martin Willi authored
    Marvell chips not supporting per-port jumbo frame size configurations use
    a chip-wide frame size configuration. In the commit referenced with the
    Fixes tag, the setting is applied just for the last port changing its MTU.
    
    While configuring CPU ports accounts for tagger overhead, user ports do
    not. When setting the MTU for a user port, the chip-wide setting is
    reduced to not include the tagger overhead, resulting in an potentially
    insufficient maximum frame size for the CPU port. Specifically, sending
    full-size frames from the CPU port on a MV88E6097 having a user port MTU
    of 1500 bytes results in dropped frames.
    
    As, by design, the CPU port MTU is adjusted for any user port change,
    apply the chip-wide setting only for CPU ports.
    
    Fixes: 1baf0fac ("net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU")
    Suggested-by: default avatarVladimir Oltean <olteanv@gmail.com>
    Signed-off-by: default avatarMartin Willi <martin@strongswan.org>
    Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    66b6095c
chip.c 211 KB