commit | cedca4180127e097e4823018e748b1635c0667f0 | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Wed Jul 11 21:32:41 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 12 17:39:15 2018 -0700 |
tree | f950dc26ac8359898de1c6f545c4713576f01abb | |
parent | 750c721ee04fc18e8b66a6a8711c09a33cd76c58 [diff] |
net: gemini: Look up L3 maxlen from table 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 <mirq-linux@rere.qmqm.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>