OSDN Git Service

qed: Add driver API for flashing the config attributes.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Wed, 14 Aug 2019 08:11:53 +0000 (01:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 19:54:45 +0000 (12:54 -0700)
commit0dabbe1bb3a4cf47d0cf52828355293f18acdae9
tree223e01bc78d1927031728e7bac8c1e11a1ab2bad
parent38eabdf0248e4b4f280dbda5e4e089aa5aaf806d
qed: Add driver API for flashing the config attributes.

The patch adds driver interface for reading the config attributes from user
provided buffer, and updates these values on nvm config flash partition.

This is basically an expansion of our existing ethtool -f implementation.
The management FW has exposed an additional method of configuring some of
the nvram options, and this makes use of that. This implementation will
come into use when newer FW files which contain configuration directives
employing this API will be provided to ethtool -f.

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
include/linux/qed/qed_if.h