]> git.itanic.dy.fi Git - linux-stable/commit
selftests: forwarding: ethtool_mm: support devices with higher rx-min-frag-size
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 19 Dec 2023 10:57:56 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 01:01:19 +0000 (01:01 +0000)
commit2491d66ae66cdd761c38563e17940a707d1b5e91
treec1c089e14eb7054adaa875a12153f36bc532e6af
parent2437c0f5147b82b92075af6085b99051753f4a3c
selftests: forwarding: ethtool_mm: support devices with higher rx-min-frag-size

Some devices have errata due to which they cannot report ETH_ZLEN (60)
in the rx-min-frag-size. This was foreseen of course, and lldpad has
logic that when we request it to advertise addFragSize 0, it will round
it up to the lowest value that is _actually_ supported by the hardware.

The problem is that the selftest expects lldpad to report back to us the
same value as we requested.

Make the selftest smarter by figuring out on its own what is a
reasonable value to expect.

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/ethtool_mm.sh