net/ena/base: do not use hardcoded RSS key buffer size
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:25 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit720854c99a1122f31f120858cc50e3394f1eab7c
tree832e13827ee979c71ff60aeee975293317486988
parent3e55684ee7556c4301f915c5fb2999e9a59a787e
net/ena/base: do not use hardcoded RSS key buffer size

It's well defined how the RSS key buffer looks from the device
perspective, so the constant value should be used instead of magic
number. Also it doesn't has to be calculated dynamically.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ena/base/ena_com.c
drivers/net/ena/base/ena_defs/ena_admin_defs.h