/openbmc/linux/net/openvswitch/ |
H A D | vport-netdev.c | 31 struct vport *vport; in netdev_port_receive() local 76 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument 102 vport); in ovs_netdev_link() 118 netdev_put(vport->dev, &vport->dev_tracker); in ovs_netdev_link() 127 struct vport *vport; in netdev_create() local 138 struct vport *vport = container_of(rcu, struct vport, rcu); in vport_netdev_free() local 140 netdev_put(vport->dev, &vport->dev_tracker); in vport_netdev_free() 144 void ovs_netdev_detach_dev(struct vport *vport) in ovs_netdev_detach_dev() argument 154 static void netdev_destroy(struct vport *vport) in netdev_destroy() argument 164 void ovs_netdev_tunnel_destroy(struct vport *vport) in ovs_netdev_tunnel_destroy() argument [all …]
|
H A D | vport.c | 98 struct vport *vport; in ovs_vport_locate() local 125 struct vport *vport; in ovs_vport_alloc() local 136 if (!vport) in ovs_vport_alloc() 155 return vport; in ovs_vport_alloc() 160 kfree(vport); in ovs_vport_alloc() 175 void ovs_vport_free(struct vport *vport) in ovs_vport_free() argument 208 struct vport *vport; in ovs_vport_add() local 256 return vport->ops->set_options(vport, options); in ovs_vport_set_options() 267 void ovs_vport_del(struct vport *vport) in ovs_vport_del() argument 271 vport->ops->destroy(vport); in ovs_vport_del() [all …]
|
H A D | vport.h | 20 struct vport; 29 void ovs_vport_del(struct vport *); 35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb); 74 struct vport { struct 134 void (*destroy)(struct vport *); 171 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument 173 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv() 188 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv() 194 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument 196 return vport->dev->name; in ovs_vport_name() [all …]
|
H A D | vport-internal_dev.c | 22 struct vport *vport; member 78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local 80 ovs_vport_free(vport); in internal_dev_destructor() 125 struct vport *vport; in internal_dev_create() local 131 if (IS_ERR(vport)) { in internal_dev_create() 138 vport->dev = dev; in internal_dev_create() 139 if (!vport->dev) { in internal_dev_create() 149 dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); in internal_dev_create() 152 internal_dev->vport = vport; in internal_dev_create() 168 return vport; in internal_dev_create() [all …]
|
H A D | vport-geneve.c | 36 static inline struct geneve_port *geneve_vport(const struct vport *vport) in geneve_vport() argument 38 return vport_priv(vport); in geneve_vport() 41 static int geneve_get_options(const struct vport *vport, in geneve_get_options() argument 57 struct vport *vport; in geneve_tnl_create() local 78 if (IS_ERR(vport)) in geneve_tnl_create() 79 return vport; in geneve_tnl_create() 88 ovs_vport_free(vport); in geneve_tnl_create() 101 return vport; in geneve_tnl_create() 108 struct vport *vport; in geneve_create() local 111 if (IS_ERR(vport)) in geneve_create() [all …]
|
H A D | vport-vxlan.c | 22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument 51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument 76 struct vport *vport; in vxlan_tnl_create() local 101 if (IS_ERR(vport)) in vxlan_tnl_create() 102 return vport; in vxlan_tnl_create() 117 ovs_vport_free(vport); in vxlan_tnl_create() 125 ovs_vport_free(vport); in vxlan_tnl_create() 130 return vport; in vxlan_tnl_create() 137 struct vport *vport; in vxlan_create() local 140 if (IS_ERR(vport)) in vxlan_create() [all …]
|
H A D | vport-gre.c | 43 struct vport *vport; in gre_tnl_create() local 47 if (IS_ERR(vport)) in gre_tnl_create() 48 return vport; in gre_tnl_create() 54 ovs_vport_free(vport); in gre_tnl_create() 62 ovs_vport_free(vport); in gre_tnl_create() 67 return vport; in gre_tnl_create() 72 struct vport *vport; in gre_create() local 74 vport = gre_tnl_create(parms); in gre_create() 75 if (IS_ERR(vport)) in gre_create() 76 return vport; in gre_create() [all …]
|
H A D | dp_notify.c | 14 static void dp_detach_port_notify(struct vport *vport) in dp_detach_port_notify() argument 19 dp = vport->dp; in dp_detach_port_notify() 22 ovs_dp_detach_port(vport); in dp_detach_port_notify() 44 struct vport *vport; in ovs_dp_notify_wq() local 48 if (vport->ops->type == OVS_VPORT_TYPE_INTERNAL) in ovs_dp_notify_wq() 51 if (!(netif_is_ovs_port(vport->dev))) in ovs_dp_notify_wq() 52 dp_detach_port_notify(vport); in ovs_dp_notify_wq() 64 struct vport *vport = NULL; in dp_device_event() local 67 vport = ovs_netdev_get_vport(dev); in dp_device_event() 69 if (!vport) in dp_device_event() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ingress_ofld.c | 17 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled() 57 vport->vport, err); in esw_acl_ingress_prio_tag_create() 92 vport->vport, err); in esw_acl_ingress_mod_metadata_create() 106 vport->vport, err); in esw_acl_ingress_mod_metadata_create() 177 vport->vport, err); in esw_acl_ingress_ofld_rules_create() 187 vport->vport, err); in esw_acl_ingress_ofld_rules_create() 221 if (vport->vport == MLX5_VPORT_UPLINK) { in esw_acl_ingress_ofld_groups_create() 232 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() 256 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() 276 vport->vport, ret); in esw_acl_ingress_ofld_groups_create() [all …]
|
H A D | egress_ofld.c | 42 struct mlx5_vport *vport, in esw_acl_egress_ofld_fwd2vport_create() argument 49 vport->vport, fwd_dest->vport.num); in esw_acl_egress_ofld_fwd2vport_create() 63 vport->vport, err); in esw_acl_egress_ofld_fwd2vport_create() 83 "vport[%d] configure prio tag egress rules\n", vport->vport); in esw_acl_egress_ofld_rules_create() 152 vport->vport, ret); in esw_acl_egress_ofld_groups_create() 195 if (!esw_acl_egress_needed(esw, vport->vport)) in esw_acl_egress_ofld_setup() 204 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_ofld_setup() 208 vport->egress.acl = NULL; in esw_acl_egress_ofld_setup() 217 esw_debug(esw->dev, "vport[%d] configure egress rules\n", vport->vport); in esw_acl_egress_ofld_setup() 269 if (IS_ERR(vport)) in mlx5_esw_acl_egress_vport_unbond() [all …]
|
H A D | ingress_lgcy.c | 46 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 62 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 79 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 92 vport->vport, err); in esw_acl_ingress_lgcy_groups_create() 173 vport->vport); in esw_acl_ingress_lgcy_setup() 179 if (!vport->info.vlan && !vport->info.qos && !vport->info.spoofchk) { in esw_acl_ingress_lgcy_setup() 185 vport->ingress.acl = esw_acl_table_create(esw, vport, in esw_acl_ingress_lgcy_setup() 201 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_ingress_lgcy_setup() 209 if ((vport->info.vlan || vport->info.qos)) { in esw_acl_ingress_lgcy_setup() 249 vport->vport, err); in esw_acl_ingress_lgcy_setup() [all …]
|
H A D | egress_lgcy.c | 11 esw_acl_egress_vlan_destroy(vport); in esw_acl_egress_lgcy_rules_destroy() 43 vport->vport, err); in esw_acl_egress_lgcy_groups_create() 91 vport->vport, PTR_ERR(drop_counter)); in esw_acl_egress_lgcy_setup() 99 if (!vport->info.vlan && !vport->info.qos) { in esw_acl_egress_lgcy_setup() 104 if (!vport->egress.acl) { in esw_acl_egress_lgcy_setup() 105 vport->egress.acl = esw_acl_table_create(esw, vport, in esw_acl_egress_lgcy_setup() 110 vport->egress.acl = NULL; in esw_acl_egress_lgcy_setup() 121 vport->vport, vport->info.vlan, vport->info.qos); in esw_acl_egress_lgcy_setup() 127 err = esw_egress_acl_vlan_create(esw, vport, NULL, vport->info.vlan, in esw_acl_egress_lgcy_setup() 149 vport->vport, err); in esw_acl_egress_lgcy_setup() [all …]
|
H A D | helper.c | 26 vport_num = vport->vport; in esw_acl_table_create() 50 struct mlx5_vport *vport, in esw_egress_acl_vlan_create() argument 58 if (vport->egress.allowed_vlan) in esw_egress_acl_vlan_create() 72 vport->egress.allowed_vlan = in esw_egress_acl_vlan_create() 79 vport->vport, err); in esw_egress_acl_vlan_create() 121 vport->vport, ret); in esw_acl_egress_vlan_grp_create() 135 vport->egress.vlan_grp = NULL; in esw_acl_egress_vlan_grp_destroy() 145 vport->egress.acl = NULL; in esw_acl_egress_table_destroy() 150 if (!vport->ingress.acl) in esw_acl_ingress_table_destroy() 154 vport->ingress.acl = NULL; in esw_acl_ingress_table_destroy() [all …]
|
/openbmc/linux/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 146 pmb->vport = vport; in lpfc_vport_sparm() 171 memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName, in lpfc_vport_sparm() 173 memcpy(&vport->fc_portname, &vport->fc_sparam.portName, in lpfc_vport_sparm() 266 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 276 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 287 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 343 if (!vport) { in lpfc_vport_create() 351 vport->vpi = vpi; in lpfc_vport_create() 373 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create() 374 memcpy(&vport->fc_sparam.nodeName, vport->fc_nodename.u.wwn, 8); in lpfc_vport_create() [all …]
|
H A D | lpfc_vmid.c | 178 read_lock(&vport->vmid_lock); in lpfc_vmid_get_appid() 183 read_unlock(&vport->vmid_lock); in lpfc_vmid_get_appid() 198 write_lock(&vport->vmid_lock); in lpfc_vmid_get_appid() 213 if (vport->cur_vmid_cnt < vport->max_vmid) { in lpfc_vmid_get_appid() 215 vmp = vport->vmid + i; in lpfc_vmid_get_appid() 219 if (i == vport->max_vmid) in lpfc_vmid_get_appid() 265 vport->cur_vmid_cnt++; in lpfc_vmid_get_appid() 305 write_lock(&vport->vmid_lock); in lpfc_reinit_vmid() 306 vport->cur_vmid_cnt = 0; in lpfc_reinit_vmid() 309 vmp = &vport->vmid[i]; in lpfc_reinit_vmid() [all …]
|
H A D | lpfc_ct.c | 157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event() local 241 cmdiocbq->vport = vport; in lpfc_ct_reject_event() 286 struct lpfc_vport *vport = ctiocbq->vport; in lpfc_ct_handle_mibreq() local 635 geniocb->vport = vport; in lpfc_gen_req() 916 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_ft() local 967 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_ft() 1138 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gid_pt() local 1190 vport->port_state, vport->gidft_inp); in lpfc_cmpl_ct_cmd_gid_pt() 1357 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gff_id() local 1506 struct lpfc_vport *vport = cmdiocb->vport; in lpfc_cmpl_ct_cmd_gft_id() local [all …]
|
H A D | lpfc_hbadisc.c | 138 vport = ndlp->vport; in lpfc_terminate_rport_io() 163 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk() 440 vport = ndlp->vport; in lpfc_dev_loss_tmo_handler() 1305 mb->vport = vport; in lpfc_linkdown() 1320 mb->vport = vport; in lpfc_linkdown() 3291 mboxq->vport = vport; in lpfc_issue_init_vpi() 3977 mbox->vport = vport; in lpfc_mbx_unreg_vpi() 4959 ndlp->vport = vport; in lpfc_initialize_node() 5467 mbox->vport = vport; in lpfc_unreg_all_rpis() 5497 mbox->vport = vport; in lpfc_unreg_default_rpis() [all …]
|
H A D | lpfc_nportdisc.c | 388 vport->fc_flag); in lpfc_rcv_plogi() 515 link_mbox->vport = vport; in lpfc_rcv_plogi() 529 lpfc_can_disctmo(vport); in lpfc_rcv_plogi() 570 login_mbox->vport = vport; in lpfc_rcv_plogi() 687 vport = mboxq->vport; in lpfc_mbx_cmpl_resume_rpi() 1052 if (vport->cfg_use_adisc && ((vport->fc_flag & FC_RSCN_MODE) || in lpfc_disc_set_adisc() 1108 pmb->vport = vport; in lpfc_release_rpi() 1140 phba = vport->phba; in lpfc_disc_illegal() 1463 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue() 1506 mbox->vport = vport; in lpfc_cmpl_plogi_plogi_issue() [all …]
|
H A D | lpfc_els.c | 285 elsiocb->vport = vport; in lpfc_prep_els_iocb() 369 mbox->vport = vport; in lpfc_issue_fabric_reglogin() 390 mbox->vport = vport; in lpfc_issue_fabric_reglogin() 482 mboxq->vport = vport; in lpfc_issue_reg_vfi() 527 mboxq->vport = vport; in lpfc_issue_unreg_vfi() 896 mbox->vport = vport; in lpfc_cmpl_els_flogi_nport() 3324 mbox->vport = vport; in lpfc_reg_fab_ctrl_node() 4569 mbox->vport = vport; in lpfc_link_reset() 5400 mbox->vport = vport; in lpfc_cmpl_els_rsp() 8763 mbox->vport = vport; in lpfc_els_rcv_rls() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mbx.c | 36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 132 dest_vfid = (u8)vport->vport_id; in hclge_inform_vf_reset() 183 struct hclge_vport *vport) in hclge_get_ring_chain_from_mbx() argument 277 req->vfid = vport->vport_id; in hclge_query_ring_vector_map() 485 hclge_vport_stop(vport); in hclge_set_vf_alive() 676 vport->need_notify = 0; in hclge_notify_vf_config() 684 vport->vport_id, in hclge_notify_vf_config() 708 hclge_notify_vf_config(vport); in hclge_vf_keep_alive() 1009 param->vport->mps = 0; in hclge_mbx_vf_uninit_handler() 1078 hdev = param->vport->back; in hclge_mbx_request_handling() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 248 dest.vport.num = vport; in __esw_fdb_set_vport_rule() 309 u16 vport = vaddr->vport; in esw_add_uc_addr() local 342 u16 vport = vaddr->vport; in esw_del_uc_addr() local 381 vport_num = vport->vport; in update_allmulti_vports() 420 u16 vport = vaddr->vport; in esw_add_mc_addr() local 460 u16 vport = vaddr->vport; in esw_del_mc_addr() local 609 addr->vport = vport->vport; in esw_update_vport_addr_list() 644 mac, vport->vport); in esw_update_vport_mc_promisc() 647 addr->vport = vport->vport; in esw_update_vport_mc_promisc() 706 vport->vport, in esw_update_vport_rx_mode() [all …]
|
/openbmc/linux/sound/isa/ |
H A D | sc6000.c | 200 if (sc6000_wait_data(vport)) in sc6000_read() 240 int val = sc6000_read(vport); in sc6000_dsp_get_answer() 320 if (sc6000_read(vport) < 0) { in sc6000_setup_board() 385 err = sc6000_dsp_reset(vport); in sc6000_init_board() 413 if (sc6000_read(vport) < 0) in sc6000_init_board() 431 sc6000_dsp_reset(vport); in sc6000_init_board() 435 sc6000_write(vport, 0x02); in sc6000_init_board() 436 sc6000_dsp_reset(vport); in sc6000_init_board() 536 if (vport) in snd_sc6000_free() 550 char __iomem *vport; in __snd_sc6000_probe() local [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | devlink_port.c | 61 u16 vport_num = vport->vport; in mlx5_esw_offloads_pf_vf_devlink_port_init() 73 vport->dl_port = dl_port; in mlx5_esw_offloads_pf_vf_devlink_port_init() 81 if (!vport->dl_port) in mlx5_esw_offloads_pf_vf_devlink_port_cleanup() 84 kfree(vport->dl_port); in mlx5_esw_offloads_pf_vf_devlink_port_cleanup() 85 vport->dl_port = NULL; in mlx5_esw_offloads_pf_vf_devlink_port_cleanup() 124 vport->dl_port = dl_port; in mlx5_esw_offloads_sf_devlink_port_init() 131 vport->dl_port = NULL; in mlx5_esw_offloads_sf_devlink_port_cleanup() 153 u16 vport_num = vport->vport; in mlx5_esw_offloads_devlink_port_register() 158 dl_port = vport->dl_port; in mlx5_esw_offloads_devlink_port_register() 190 if (!vport->dl_port) in mlx5_esw_offloads_devlink_port_unregister() [all …]
|
H A D | qos.c | 79 vport->vport, err); in esw_qos_vport_config() 301 if (!vport->enabled || !vport->qos.enabled || in esw_qos_set_group_max_rate() 302 vport->qos.group != group || vport->qos.max_rate) in esw_qos_set_group_max_rate() 329 MLX5_SET(vport_element, vport_elem, vport_number, vport->vport); in esw_qos_vport_create_sched_element() 340 vport->vport, err); in esw_qos_vport_create_sched_element() 384 vport->vport); in esw_qos_update_group_scheduling_element() 397 if (!vport->enabled) in esw_qos_vport_update_group() 671 WARN(vport->qos.group && vport->qos.group != esw->qos.group0, in mlx5_esw_qos_vport_disable() 679 vport->vport, err); in mlx5_esw_qos_vport_disable() 681 memset(&vport->qos, 0, sizeof(vport->qos)); in mlx5_esw_qos_vport_disable() [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | ovs_vport.yaml | 20 name: vport-type 22 enum-name: ovs-vport-type 26 name: vport-stats 28 enum-name: ovs-vport-stats 57 name: vport-options 80 name: vport 94 enum: vport-type 130 attribute-set: vport 144 attribute-set: vport 158 do: &vport-get-op [all …]
|