Re: [PATCH net-next 1/5 v2] net: gemini: Look up L3 maxlen from table

2018-07-07 Thread Michał Mirosław
On Wed, Jul 04, 2018 at 08:33:20PM +0200, Linus Walleij wrote: > The code to calculate the hardware register enumerator > for the maximum L3 length isn't entirely simple to read. > Use the existing defines and rewrite the function into a > table look-up. A matter of habit. ;-) I think that if you

[PATCH net-next 1/5 v2] net: gemini: Look up L3 maxlen from table

2018-07-04 Thread Linus Walleij
The code to calculate the hardware register enumerator for the maximum L3 length isn't entirely simple to read. Use the existing defines and rewrite the function into a table look-up. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - No changes, just resending with the rest. ---