[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <82793a62-054b-75e1-d302-74375f61ae03@gmail.com>
Date: Tue, 16 Nov 2021 21:47:21 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Set __LINK_STATE_NOCARRIER in register_netdevice() ?
Quite some network drivers call netif_carrier_off() in their probe() function.
So I'm wondering whether we can/should add a
set_bit(__LINK_STATE_NOCARRIER, &dev->state)
to register_netdevice() and remove all these netif_carrier_off() calls.
Question is whether there's any scenario where a driver would depend on bit
__LINK_STATE_NOCARRIER being cleared after registering the netdevice
or where we want to preserve the state of this bit.
Powered by blists - more mailing lists