|
|
@@ -1788,7 +1788,7 @@ err:
|
|
|
|
|
|
/* Uses sycnhronous mcc */
|
|
|
int be_cmd_vlan_config(struct be_adapter *adapter, u32 if_id, u16 *vtag_array,
|
|
|
- u32 num, bool promiscuous)
|
|
|
+ u32 num)
|
|
|
{
|
|
|
struct be_mcc_wrb *wrb;
|
|
|
struct be_cmd_req_vlan_config *req;
|
|
|
@@ -1808,16 +1808,12 @@ int be_cmd_vlan_config(struct be_adapter *adapter, u32 if_id, u16 *vtag_array,
|
|
|
wrb, NULL);
|
|
|
|
|
|
req->interface_id = if_id;
|
|
|
- req->promiscuous = promiscuous;
|
|
|
req->untagged = BE_IF_FLAGS_UNTAGGED & be_if_cap_flags(adapter) ? 1 : 0;
|
|
|
req->num_vlan = num;
|
|
|
- if (!promiscuous) {
|
|
|
- memcpy(req->normal_vlan, vtag_array,
|
|
|
- req->num_vlan * sizeof(vtag_array[0]));
|
|
|
- }
|
|
|
+ memcpy(req->normal_vlan, vtag_array,
|
|
|
+ req->num_vlan * sizeof(vtag_array[0]));
|
|
|
|
|
|
status = be_mcc_notify_wait(adapter);
|
|
|
-
|
|
|
err:
|
|
|
spin_unlock_bh(&adapter->mcc_lock);
|
|
|
return status;
|