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

2018-07-12 Thread David Miller
From: Linus Walleij Date: Wed, 11 Jul 2018 21:32:41 +0200 > 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. > > Acked-by: Michał Mirosław >

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

2018-07-11 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. Acked-by: Michał Mirosław Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Collected Michał's ACK.