net: qed: attention clearing properties
On different hardware events we have to respond differently, on some of hardware indications hw attention (error condition) should be cleared by the driver to continue normal functioning. Here we introduce attention clear flags, and put them on some important events (in aeu_descs). Signed-off-by: Ariel Elior <ariel.elior@marvell.com> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ca352f0075
commit
936c7ba4dd
@@ -1046,6 +1046,15 @@ struct qed_common_ops {
|
||||
*/
|
||||
int (*set_led)(struct qed_dev *cdev,
|
||||
enum qed_led_mode mode);
|
||||
|
||||
/**
|
||||
* @brief attn_clr_enable - Prevent attentions from being reasserted
|
||||
*
|
||||
* @param cdev
|
||||
* @param clr_enable
|
||||
*/
|
||||
void (*attn_clr_enable)(struct qed_dev *cdev, bool clr_enable);
|
||||
|
||||
/**
|
||||
* @brief db_recovery_add - add doorbell information to the doorbell
|
||||
* recovery mechanism.
|
||||
|
Reference in New Issue
Block a user