Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c482 struct qlcnic_esw_func_cfg *esw_cfg, int count) in validate_esw_config() argument
495 pci_func = esw_cfg[i].pci_func; in validate_esw_config()
503 switch (esw_cfg[i].op_mode) { in validate_esw_config()
510 esw_cfg[i].offload_flags = 0; in validate_esw_config()
514 if (esw_cfg[i].mac_anti_spoof != 0) in validate_esw_config()
516 if (esw_cfg[i].mac_override != 1) in validate_esw_config()
518 if (esw_cfg[i].promisc_mode != 1) in validate_esw_config()
523 if (!IS_VALID_VLAN(esw_cfg[i].vlan_id)) in validate_esw_config()
525 if (!esw_cfg[i].op_type) in validate_esw_config()
529 if (!esw_cfg[i].op_type) in validate_esw_config()
[all …]
Dqlcnic_ctx.c1323 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_config_switch_port() argument
1337 pci_func = esw_cfg->pci_func; in qlcnic_config_switch_port()
1349 switch (esw_cfg->op_mode) { in qlcnic_config_switch_port()
1355 if (!(esw_cfg->discard_tagged)) in qlcnic_config_switch_port()
1357 if (!(esw_cfg->promisc_mode)) in qlcnic_config_switch_port()
1359 if (!(esw_cfg->mac_override)) in qlcnic_config_switch_port()
1361 if (!(esw_cfg->mac_anti_spoof)) in qlcnic_config_switch_port()
1363 if (!(esw_cfg->offload_flags & BIT_0)) in qlcnic_config_switch_port()
1365 if (!(esw_cfg->offload_flags & BIT_1)) in qlcnic_config_switch_port()
1367 if (!(esw_cfg->offload_flags & BIT_2)) in qlcnic_config_switch_port()
[all …]
Dqlcnic_main.c1330 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_set_vlan_config() argument
1332 if (esw_cfg->discard_tagged) in qlcnic_set_vlan_config()
1337 if (esw_cfg->vlan_id) { in qlcnic_set_vlan_config()
1338 adapter->rx_pvid = esw_cfg->vlan_id; in qlcnic_set_vlan_config()
1339 adapter->tx_pvid = esw_cfg->vlan_id; in qlcnic_set_vlan_config()
1388 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_set_eswitch_port_features() argument
1393 if (esw_cfg->mac_anti_spoof) in qlcnic_set_eswitch_port_features()
1396 if (!esw_cfg->mac_override) in qlcnic_set_eswitch_port_features()
1399 if (!esw_cfg->promisc_mode) in qlcnic_set_eswitch_port_features()
1405 struct qlcnic_esw_func_cfg esw_cfg; in qlcnic_set_eswitch_port_config() local
[all …]