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

From: Nikita Kiryushin
Date: Mon Jul 15 2024 - 10:28:40 EST


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.