diff options
-rw-r--r-- | drivers/net/qlcnic/qlcnic_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index 08d4b37f246c..4e8466b326af 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c | |||
@@ -3537,9 +3537,12 @@ validate_esw_config(struct qlcnic_adapter *adapter, | |||
3537 | case QLCNIC_PORT_DEFAULTS: | 3537 | case QLCNIC_PORT_DEFAULTS: |
3538 | if (QLC_DEV_GET_DRV(op_mode, pci_func) != | 3538 | if (QLC_DEV_GET_DRV(op_mode, pci_func) != |
3539 | QLCNIC_NON_PRIV_FUNC) { | 3539 | QLCNIC_NON_PRIV_FUNC) { |
3540 | esw_cfg[i].mac_anti_spoof = 0; | 3540 | if (esw_cfg[i].mac_anti_spoof != 0) |
3541 | esw_cfg[i].mac_override = 1; | 3541 | return QL_STATUS_INVALID_PARAM; |
3542 | esw_cfg[i].promisc_mode = 1; | 3542 | if (esw_cfg[i].mac_override != 1) |
3543 | return QL_STATUS_INVALID_PARAM; | ||
3544 | if (esw_cfg[i].promisc_mode != 1) | ||
3545 | return QL_STATUS_INVALID_PARAM; | ||
3543 | } | 3546 | } |
3544 | break; | 3547 | break; |
3545 | case QLCNIC_ADD_VLAN: | 3548 | case QLCNIC_ADD_VLAN: |