summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/adi
diff options
context:
space:
mode:
authorMichael Sit Wei Hong <michael.wei.hong.sit@intel.com>2023-10-20 06:25:35 +0300
committerDavid S. Miller <davem@davemloft.net>2023-10-21 13:53:32 +0300
commit95201f36f395df34321fcddbce12103e8bbe4970 (patch)
treeac1348a166afe560a73c325d48b365172ec5fa8b /drivers/net/ethernet/adi
parentd2ca43f30611ac41bccfa8352c53f5432f0ecbb0 (diff)
downloadlinux-95201f36f395df34321fcddbce12103e8bbe4970.tar.xz
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: <stable@vger.kernel.org> # 5.17+ Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com> Signed-off-by: Gan, Yi Fang <yi.fang.gan@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adi')
0 files changed, 0 insertions, 0 deletions