aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-06-30 11:04:40 +0100
committerDavid S. Miller <davem@davemloft.net>2020-06-30 13:01:12 -0700
commitf2ca673d2cd5df9a76247b670e9ffd4d63682b3f (patch)
tree669b2c4dc492066c6eef5512844be5b211f0eb0f /include
parentMerge branch 'support-AF_PACKET-for-layer-3-devices' (diff)
downloadwireguard-linux-f2ca673d2cd5df9a76247b670e9ffd4d63682b3f.tar.xz
wireguard-linux-f2ca673d2cd5df9a76247b670e9ffd4d63682b3f.zip
net: mvneta: fix use of state->speed
When support for short preambles was added, it incorrectly keyed its decision off state->speed instead of state->interface. state->speed is not guaranteed to be correct for in-band modes, which can lead to short preambles being unexpectedly disabled. Fix this by keying off the interface mode, which is the only way that mvneta can operate at 2.5Gbps. Fixes: da58a931f248 ("net: mvneta: Add support for 2500Mbps SGMII") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions