Re: [PATCH net-next] bnx2x: turn off FCoE if storage MAC-address setup failed

From: Andrew Lunn
Date: Sat Jul 13 2024 - 10:42:04 EST


On Fri, Jul 12, 2024 at 04:29:15PM +0300, Nikita Kiryushin wrote:
> As of now, initial storage MAC setup (in bnx2x_init_one) is not checked.
>
> This can lead to unexpected FCoE behavior (as address will be in unexpected
> state) without notice.
>
> Check dev_addr_add for storage MAC and if it failes produce error message
> and turn off FCoE feature.

How broken is it when this happens? This is called from .probe. So
returning the error code will fail the probe and the device will not
be created. Is that a better solution?

Andrew