qed*: Fix size of config attribute dump.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Wed, 11 Sep 2019 11:42:50 +0000 (04:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Sep 2019 14:15:23 +0000 (15:15 +0100)
commit9e54ba7c3752f27456ca691acc3f154e2597478c
tree9769c195b0eda62fd940ab9846d7fb3133f5069c
parent2f2fa16e23816bded4b97117faf6e97a95ba9056
qed*: Fix size of config attribute dump.

Driver currently returns max-buf-size as size of the config attribute.
This patch incorporates changes to read this value from MFW (if available)
and provide it to the user. Also did a trivial clean up in this path.

Fixes: d44a3ced7023 ("qede: Add support for reading the config id attributes.")
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
include/linux/qed/qed_if.h