net/ionic: improve link state handling
authorAndrew Boyer <aboyer@pensando.io>
Wed, 16 Dec 2020 21:12:55 +0000 (13:12 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:58 +0000 (18:51 +0100)
commitbe63459e0bdd00fcb679999dc171e50a1486b91f
treecd37eb4bc199c983dbfb74b0b14dc9c1368a26ee
parent175e4e7ed760459d86fc928f1d9000a631e30b18
net/ionic: improve link state handling

Add UP and FW_RESET state flags.
Update the stack info when the link state changes.
Convert set_link_up/set_link_down to lif_start/lif_stop.
Condition reported link state on UP flag.

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
drivers/net/ionic/ionic_ethdev.c
drivers/net/ionic/ionic_ethdev.h
drivers/net/ionic/ionic_lif.c
drivers/net/ionic/ionic_lif.h