]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecf5378ae48b874955deee112660f97ccf0d8d59
tree9769c195b0eda62fd940ab9846d7fb3133f5069c
parent54f19d72a7ee9d767066ad49fd37db9e26657e35
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: 12faee8ce533 ("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