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

From: Nikita Kiryushin
Date: Fri Oct 25 2024 - 14:28:38 EST


On 7/15/24 17:10, Nikita Kiryushin wrote:
How broken is it when this happens?
I can not say what would happen exactly, if the address is not assigned
the way it should. But there would be at least an attempt to free unallocated
address (in __bnx2x_remove).

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?
To me, it does not seem fatal, that is why I am not returning error,
just print it and disable FCoE. The "rc" set will not be returned (unless
jumped to error handlers, which we are not doing). Would it be better, if
I used some other result variable other than "rc"? The check could be the call,
but than handling would be inside a lock, which I think is a bad idea.

The patch is marked as "Changes Requested" at the Patchwork,
but I am not sure, what has to be done with it.