mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
0d2e794b74
This solution is based on the assumption that, if there are multiple (mqnic-)ports per (mqnic-)interface, the single netdev, which is currently associated with one (mqnic-)interface, is assumed to be up, when all ports' TX and RX status bits are asserted. As soon as one of these bits is deasserted for any of the involved ports the netdev is assumed to be down. Module parameter "link_status_poll" specifies the polling interval in milliseconds. Setting it to 0, disables any form of monitoring. By default we check once per second, which is a totally arbitrary choice - no special reasoning. Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>