The fcoemon IEEE state machine runs even when DCBX is not in IEEE mode.
This patch prevents by checking the current DCBX mode before moving ahead
with the IEEE state machine.

Tested-by: Jack Morgan <[email protected]>
Signed-off-by: Neerav Parikh <[email protected]>
---
 fcoemon.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/fcoemon.c b/fcoemon.c
index 3b5210c..7fcc05e 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -3046,6 +3046,9 @@ static void fcm_netif_ieee_advance(struct fcm_netif *ff)
        if (ff->ieee_resp_pending)
                return;
 
+       if (!(ff->dcbx_cap & DCB_CAP_DCBX_VER_IEEE))
+               return;
+
        switch (ff->ieee_state) {
        case IEEE_INIT:
                break;

_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to