]> 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)
commit91e13291af8a0ea77355d2032d6e06edef2565e9
tree9769c195b0eda62fd940ab9846d7fb3133f5069c
parent979b2be3b51af41468198bc7703e604794783ebc
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: a3408ffd12de ("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