[ipxe-devel] [PATCH 1/2] Prevent a netdevice (VLAN) to open/close twice.

Wissam Shoukair wissams at mellanox.com
Wed Mar 5 13:33:46 GMT 2014


The reason for this fix is, when opening a VLAN, the current code checks if the trunk interface in also open. If it's not opened, then it will open the trunk and notify all other drivers, which the VLAN driver is one of them, and when the VLAN driver is notified it will try to sync with the opened trunk, so it will be opened again. (same for the close flow)

Thanks,
Wissam

-----Original Message-----
From: Michael Brown [mailto:mcb30 at ipxe.org] 
Sent: יום ד 05 מרץ 2014 15:20
To: Wissam Shoukair; ipxe-devel at ipxe.org
Subject: Re: [PATCH 1/2] Prevent a netdevice (VLAN) to open/close twice.

On 05/03/14 12:44, Wissam Shoukair wrote:
> [netdevice.h] Added 2 netdevice states.
> [netdevice.c] When opening/closing a netdevice, check if its not 
> already in the initialization/closing process. This will prevent from 
> a VLAN to open/close itself while its already in the opening/closing process.

What is the motivation for doing this?

Michael


More information about the ipxe-devel mailing list