Home
last modified time | relevance | path

Searched refs:esw_cfg (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c484 struct qlcnic_esw_func_cfg *esw_cfg, int count) in validate_esw_config() argument
497 pci_func = esw_cfg[i].pci_func; in validate_esw_config()
505 switch (esw_cfg[i].op_mode) { in validate_esw_config()
512 esw_cfg[i].offload_flags = 0; in validate_esw_config()
516 if (esw_cfg[i].mac_anti_spoof != 0) in validate_esw_config()
518 if (esw_cfg[i].mac_override != 1) in validate_esw_config()
520 if (esw_cfg[i].promisc_mode != 1) in validate_esw_config()
525 if (!IS_VALID_VLAN(esw_cfg[i].vlan_id)) in validate_esw_config()
527 if (!esw_cfg[i].op_type) in validate_esw_config()
531 if (!esw_cfg[i].op_type) in validate_esw_config()
[all …]
Dqlcnic_ctx.c1318 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_config_switch_port() argument
1332 pci_func = esw_cfg->pci_func; in qlcnic_config_switch_port()
1344 switch (esw_cfg->op_mode) { in qlcnic_config_switch_port()
1350 if (!(esw_cfg->discard_tagged)) in qlcnic_config_switch_port()
1352 if (!(esw_cfg->promisc_mode)) in qlcnic_config_switch_port()
1354 if (!(esw_cfg->mac_override)) in qlcnic_config_switch_port()
1356 if (!(esw_cfg->mac_anti_spoof)) in qlcnic_config_switch_port()
1358 if (!(esw_cfg->offload_flags & BIT_0)) in qlcnic_config_switch_port()
1360 if (!(esw_cfg->offload_flags & BIT_1)) in qlcnic_config_switch_port()
1362 if (!(esw_cfg->offload_flags & BIT_2)) in qlcnic_config_switch_port()
[all …]
Dqlcnic_main.c1354 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_set_vlan_config() argument
1356 if (esw_cfg->discard_tagged) in qlcnic_set_vlan_config()
1361 if (esw_cfg->vlan_id) { in qlcnic_set_vlan_config()
1362 adapter->rx_pvid = esw_cfg->vlan_id; in qlcnic_set_vlan_config()
1363 adapter->tx_pvid = esw_cfg->vlan_id; in qlcnic_set_vlan_config()
1412 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_set_eswitch_port_features() argument
1417 if (esw_cfg->mac_anti_spoof) in qlcnic_set_eswitch_port_features()
1420 if (!esw_cfg->mac_override) in qlcnic_set_eswitch_port_features()
1423 if (!esw_cfg->promisc_mode) in qlcnic_set_eswitch_port_features()
1429 struct qlcnic_esw_func_cfg esw_cfg; in qlcnic_set_eswitch_port_config() local
[all …]