]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mana: Support HW link state events
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 29 Oct 2025 20:43:10 +0000 (13:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Oct 2025 22:56:53 +0000 (15:56 -0700)
commit54133f9b4b53ffa2204eb27cfc9d50072c9a52d2
treef7b36bd249ab8ebb0eef8dcd1f26e393a11d188b
parent1a2352ad82b515035efe563f997ef8f5ca4f8080
net: mana: Support HW link state events

Handle the NIC hardware link state events received from the HW
channel, then set the proper link state accordingly.

And, add a feature bit, GDMA_DRV_CAP_FLAG_1_HW_VPORT_LINK_AWARE,
to inform the NIC hardware this handler exists.

Our MANA NIC only sends out the link state down/up messages
when we need to let the VM rerun DHCP client and change IP
address. So, add netif_carrier_on() in the probe(), let the NIC
show the right initial state in /sys/class/net/ethX/operstate.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/1761770601-16920-1-git-send-email-haiyangz@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/gdma_main.c
drivers/net/ethernet/microsoft/mana/hw_channel.c
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/gdma.h
include/net/mana/hw_channel.h
include/net/mana/mana.h