mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
qed*: esl priv flag support through ethtool
ESL(Enhanced System Lockdown) was designed to lock PCI adapter firmware images and prevent changes to critical non-volatile configuration data so that uncontrolled, malicious or unintentional modification to the adapters are avoided, ensuring it's operational state. Once this feature is enabled, the device is locked, rejecting any modification to non-volatile images. Once unlocked, the protection is off such that firmware and non-volatile configurations may be altered. Driver just reflects the capability and status of this through the ethtool private flag. Signed-off-by: Manish Chopra <manishc@marvell.com> Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com> Signed-off-by: Alok Prasad <palok@marvell.com> Signed-off-by: Ariel Elior <aelior@marvell.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
0cc3a80179
commit
823163ba6e
@@ -652,6 +652,7 @@ struct qed_dev_info {
|
||||
|
||||
bool wol_support;
|
||||
bool smart_an;
|
||||
bool esl;
|
||||
|
||||
/* MBI version */
|
||||
u32 mbi_version;
|
||||
@@ -1205,6 +1206,8 @@ struct qed_common_ops {
|
||||
|
||||
int (*get_sb_info)(struct qed_dev *cdev, struct qed_sb_info *sb,
|
||||
u16 qid, struct qed_sb_info_dbg *sb_dbg);
|
||||
|
||||
int (*get_esl_status)(struct qed_dev *cdev, bool *esl_active);
|
||||
};
|
||||
|
||||
#define MASK_FIELD(_name, _value) \
|
||||
|
||||
Reference in New Issue
Block a user