diff options
author | Michael Sit Wei Hong <[email protected]> | 2023-10-20 11:25:35 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-10-21 11:53:32 +0100 |
commit | 95201f36f395df34321fcddbce12103e8bbe4970 (patch) | |
tree | ac1348a166afe560a73c325d48b365172ec5fa8b /net/ipv4/tcp_input.c | |
parent | d2ca43f30611ac41bccfa8352c53f5432f0ecbb0 (diff) |
net: stmmac: update MAC capabilities when tx queues are updated
Upon boot up, the driver will configure the MAC capabilities based on
the maximum number of tx and rx queues. When the user changes the
tx queues to single queue, the MAC should be capable of supporting Half
Duplex, but the driver does not update the MAC capabilities when it is
configured so.
Using the stmmac_reinit_queues() to check the number of tx queues
and set the MAC capabilities accordingly.
Fixes: 0366f7e06a6b ("net: stmmac: add ethtool support for get/set channels")
Cc: <[email protected]> # 5.17+
Signed-off-by: Michael Sit Wei Hong <[email protected]>
Signed-off-by: Gan, Yi Fang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions