qed*: Conditions for changing link
There's some inconsistency in current logic determining whether the link settings of a given interface can be changed; I.e., in all modes other than the so-called `deault' mode the interfaces are forbidden from changing the configuration - but even this rule is not applied to all user APIs that may change the configuration. Instead, let the core-module [qed] decide whether an interface can change the configuration by supporting a new API function. We also revise the current rule, allowing all interfaces to change their configurations while laying the infrastructure for future modes where an interface would be blocked from making such a configuration. Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f3e72109f0
commit
fe7cd2bfda
@@ -211,6 +211,16 @@ struct qed_common_ops {
|
||||
|
||||
void (*simd_handler_clean)(struct qed_dev *cdev,
|
||||
int index);
|
||||
|
||||
/**
|
||||
* @brief can_link_change - can the instance change the link or not
|
||||
*
|
||||
* @param cdev
|
||||
*
|
||||
* @return true if link-change is allowed, false otherwise.
|
||||
*/
|
||||
bool (*can_link_change)(struct qed_dev *cdev);
|
||||
|
||||
/**
|
||||
* @brief set_link - set links according to params
|
||||
*
|
||||
|
Reference in New Issue
Block a user