net/ena: refactor getting IO queues capabilities
authorMichal Krawczyk <mk@semihalf.com>
Wed, 8 Apr 2020 08:29:09 +0000 (10:29 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit5920d930837228649278ebe523503c94ac31d7f5
treeac8040cc3d1ff5d3b6c84085c65fcf28d5ee99c5
parentbadc3a6aa133a886a61b9e3ad666e5675f7ec3d3
net/ena: refactor getting IO queues capabilities

Reading values from the device is about the maximum capabilities of the
device. Because of that, the names of the fields storing those values,
functions and temporary variables, should be more descriptive in order
to improve self documentation of the code.

In connection with this, the way of getting maximum queue size could be
simplified - no hardcoded values are needed, as the device is going to
send it's capabilities anyway.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h