|
@@ -4939,8 +4939,9 @@ static int
|
|
|
__be_cmd_set_logical_link_config(struct be_adapter *adapter,
|
|
|
int link_state, int version, u8 domain)
|
|
|
{
|
|
|
- struct be_mcc_wrb *wrb;
|
|
|
struct be_cmd_req_set_ll_link *req;
|
|
|
+ struct be_mcc_wrb *wrb;
|
|
|
+ u32 link_config = 0;
|
|
|
int status;
|
|
|
|
|
|
mutex_lock(&adapter->mcc_lock);
|
|
@@ -4962,10 +4963,12 @@ __be_cmd_set_logical_link_config(struct be_adapter *adapter,
|
|
|
|
|
|
if (link_state == IFLA_VF_LINK_STATE_ENABLE ||
|
|
|
link_state == IFLA_VF_LINK_STATE_AUTO)
|
|
|
- req->link_config |= PLINK_ENABLE;
|
|
|
+ link_config |= PLINK_ENABLE;
|
|
|
|
|
|
if (link_state == IFLA_VF_LINK_STATE_AUTO)
|
|
|
- req->link_config |= PLINK_TRACK;
|
|
|
+ link_config |= PLINK_TRACK;
|
|
|
+
|
|
|
+ req->link_config = cpu_to_le32(link_config);
|
|
|
|
|
|
status = be_mcc_notify_wait(adapter);
|
|
|
err:
|