Lines Matching refs:esw_cfg

1330 			    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
1410 esw_cfg.pci_func = adapter->ahw->pci_func; in qlcnic_set_eswitch_port_config()
1411 if (qlcnic_get_eswitch_port_config(adapter, &esw_cfg)) in qlcnic_set_eswitch_port_config()
1413 qlcnic_set_vlan_config(adapter, &esw_cfg); in qlcnic_set_eswitch_port_config()
1414 qlcnic_set_eswitch_port_features(adapter, &esw_cfg); in qlcnic_set_eswitch_port_config()
1415 qlcnic_set_netdev_features(adapter, &esw_cfg); in qlcnic_set_eswitch_port_config()
1421 struct qlcnic_esw_func_cfg *esw_cfg) in qlcnic_set_netdev_features() argument
1428 adapter->offload_flags = esw_cfg->offload_flags; in qlcnic_set_netdev_features()
1483 struct qlcnic_esw_func_cfg esw_cfg; in qlcnic_set_default_offload_settings() local
1494 memset(&esw_cfg, 0, sizeof(struct qlcnic_esw_func_cfg)); in qlcnic_set_default_offload_settings()
1495 esw_cfg.pci_func = adapter->npars[i].pci_func; in qlcnic_set_default_offload_settings()
1496 esw_cfg.mac_override = BIT_0; in qlcnic_set_default_offload_settings()
1497 esw_cfg.promisc_mode = BIT_0; in qlcnic_set_default_offload_settings()
1499 esw_cfg.offload_flags = BIT_0; in qlcnic_set_default_offload_settings()
1501 esw_cfg.offload_flags |= (BIT_1 | BIT_2); in qlcnic_set_default_offload_settings()
1503 if (qlcnic_config_switch_port(adapter, &esw_cfg)) in qlcnic_set_default_offload_settings()
1506 npar->pvid = esw_cfg.vlan_id; in qlcnic_set_default_offload_settings()
1507 npar->mac_override = esw_cfg.mac_override; in qlcnic_set_default_offload_settings()
1508 npar->mac_anti_spoof = esw_cfg.mac_anti_spoof; in qlcnic_set_default_offload_settings()
1509 npar->discard_tagged = esw_cfg.discard_tagged; in qlcnic_set_default_offload_settings()
1510 npar->promisc_mode = esw_cfg.promisc_mode; in qlcnic_set_default_offload_settings()
1511 npar->offload_flags = esw_cfg.offload_flags; in qlcnic_set_default_offload_settings()
1522 struct qlcnic_esw_func_cfg esw_cfg; in qlcnic_reset_eswitch_config() local
1523 esw_cfg.op_mode = QLCNIC_PORT_DEFAULTS; in qlcnic_reset_eswitch_config()
1524 esw_cfg.pci_func = pci_func; in qlcnic_reset_eswitch_config()
1525 esw_cfg.vlan_id = npar->pvid; in qlcnic_reset_eswitch_config()
1526 esw_cfg.mac_override = npar->mac_override; in qlcnic_reset_eswitch_config()
1527 esw_cfg.discard_tagged = npar->discard_tagged; in qlcnic_reset_eswitch_config()
1528 esw_cfg.mac_anti_spoof = npar->mac_anti_spoof; in qlcnic_reset_eswitch_config()
1529 esw_cfg.offload_flags = npar->offload_flags; in qlcnic_reset_eswitch_config()
1530 esw_cfg.promisc_mode = npar->promisc_mode; in qlcnic_reset_eswitch_config()
1531 if (qlcnic_config_switch_port(adapter, &esw_cfg)) in qlcnic_reset_eswitch_config()
1534 esw_cfg.op_mode = QLCNIC_ADD_VLAN; in qlcnic_reset_eswitch_config()
1535 if (qlcnic_config_switch_port(adapter, &esw_cfg)) in qlcnic_reset_eswitch_config()