Re: [RFC PATCH net-next v2 6/6] devlink: add overwrite mode to flash update

From
Jakub Kicinski <kuba@kernel.org>
Date
2020-07-22 16:52:33
Reply to
Keller, Jacob E, 2020-07-22
On Wed, 22 Jul 2020 15:30:05 +0000 Keller, Jacob E wrote:
quoted
quoted
quoted
quoted
one by one and then omit the one(s) which is config (guessing which
one that is based on the name).

Wouldn't this be quite inconvenient?  
I see it as an extra knob that is actually somehow provides degradation
of components.  
Hm. We have the exact opposite view on the matter. To me components
currently correspond to separate fw/hw entities, that's a very clear
meaning. PHY firmware, management FW, UNDI. Now we would add a
completely orthogonal meaning to the same API.  
I understand. My concern is, we would have a component with some
"subparts". Now it is some fuzzy vagely defined "config part",
in the future it might be something else. That is what I'm concerned
about. Components have clear api.

So perhaps we can introduce something like "component mask", which would
allow to flash only part of the component. That is basically what Jacob
has, I would just like to have it well defined.
So, we could make this selection a series of masked bits instead of a
single enumeration value.
I'd still argue that components (as defined in devlink info) and config
are pretty orthogonal. In my experience config is stored in its own
section of the flash, and some of the knobs are in no obvious way
associated with components (used by components).

That said, if we rename the "component mask" to "update mask" that's
fine with me.

Then we'd have

bit 0 - don't overwrite config
bit 1 - don't overwrite identifiers

? 

Let's define a bit for "don't update program" when we actually need it.
Thread (35 messages) 35 messages, 4 authors, last reply 2020-07-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help