| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
| H A D | ingress_ofld.c | 10 acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport); 14 const struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_enabled() argument 17 mlx5_eswitch_is_vf_vport(esw, vport->vport)); in esw_acl_ingress_prio_tag_enabled() 21 struct mlx5_vport *vport) in esw_acl_ingress_prio_tag_create() argument 46 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create() 48 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create() 51 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create() 53 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create() 54 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create() 56 "vport[%d] configure ingress untagged allow rule, err(%d)\n", in esw_acl_ingress_prio_tag_create() [all …]
|
| H A D | egress_ofld.c | 9 static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_fwd2vport_destroy() argument 11 if (!vport->egress.offloads.fwd_rule) in esw_acl_egress_ofld_fwd2vport_destroy() 14 mlx5_del_flow_rules(vport->egress.offloads.fwd_rule); in esw_acl_egress_ofld_fwd2vport_destroy() 15 vport->egress.offloads.fwd_rule = NULL; in esw_acl_egress_ofld_fwd2vport_destroy() 18 void esw_acl_egress_ofld_bounce_rule_destroy(struct mlx5_vport *vport, int rule_index) in esw_acl_egress_ofld_bounce_rule_destroy() argument 21 xa_load(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy() 27 xa_erase(&vport->egress.offloads.bounce_rules, rule_index); in esw_acl_egress_ofld_bounce_rule_destroy() 30 static void esw_acl_egress_ofld_bounce_rules_destroy(struct mlx5_vport *vport) in esw_acl_egress_ofld_bounce_rules_destroy() argument 35 xa_for_each(&vport->egress.offloads.bounce_rules, i, bounce_rule) { in esw_acl_egress_ofld_bounce_rules_destroy() 37 xa_erase(&vport->egress.offloads.bounce_rules, i); in esw_acl_egress_ofld_bounce_rules_destroy() [all …]
|
| H A D | helper.c | 9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) in esw_acl_table_create() argument 26 vport_num = vport->vport; in esw_acl_table_create() 27 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create() 30 root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index); in esw_acl_table_create() 32 esw_warn(dev, "Failed to get E-Switch root namespace for vport (%d)\n", in esw_acl_table_create() 43 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, 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() 73 mlx5_add_flow_rules(vport->egress.acl, spec, in esw_egress_acl_vlan_create() [all …]
|
| /linux/net/openvswitch/ |
| H A D | vport-netdev.c | 22 #include "vport.h" 23 #include "vport-internal_dev.h" 24 #include "vport-netdev.h" 31 struct vport *vport; in netdev_port_receive() local 33 vport = ovs_netdev_get_vport(skb->dev); in netdev_port_receive() 34 if (unlikely(!vport)) in netdev_port_receive() 50 ovs_vport_receive(vport, skb, skb_tunnel_info(skb)); in netdev_port_receive() 70 struct vport *local; in get_dpdev() 76 struct vport *ovs_netdev_link(struct vport *vport, const char *name) in ovs_netdev_link() argument 80 vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), name); in ovs_netdev_link() [all …]
|
| H A D | vport.c | 21 #include "vport.h" 22 #include "vport-internal_dev.h" 31 * ovs_vport_init - initialize vport subsystem 33 * Called at module load time to initialize the vport subsystem. 46 * ovs_vport_exit - shutdown vport subsystem 48 * Called at module exit time to shutdown the vport subsystem. 95 struct vport *ovs_vport_locate(const struct net *net, const char *name) in ovs_vport_locate() 98 struct vport *vport; in ovs_vport_locate() local 100 hlist_for_each_entry_rcu(vport, bucket, hash_node, in ovs_vport_locate() 102 if (!strcmp(name, ovs_vport_name(vport)) && in ovs_vport_locate() [all …]
|
| H A D | vport.h | 20 struct vport; 23 /* The following definitions are for users of the vport subsystem: */ 28 struct vport *ovs_vport_add(const struct vport_parms *); 29 void ovs_vport_del(struct vport *); 31 struct vport *ovs_vport_locate(const struct net *net, const char *name); 33 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *); 35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb); 37 int ovs_vport_set_options(struct vport *, struct nlattr *options); 38 int ovs_vport_get_options(const struct vport *, struct sk_buff *); 40 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids); [all …]
|
| H A D | vport-internal_dev.c | 18 #include "vport-internal_dev.h" 19 #include "vport-netdev.h" 22 struct vport *vport; member 42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 78 struct vport *vport = ovs_internal_dev_get_vport(dev); in internal_dev_destructor() local 80 ovs_vport_free(vport); in internal_dev_destructor() 123 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create() 125 struct vport *vport; in internal_dev_create() local 130 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create() 131 if (IS_ERR(vport)) { in internal_dev_create() [all …]
|
| H A D | vport-geneve.c | 24 #include "vport.h" 25 #include "vport-netdev.h" 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 44 struct geneve_port *geneve_port = geneve_vport(vport); in geneve_get_options() 51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create() 57 struct vport *vport; in geneve_tnl_create() local 76 vport = ovs_vport_alloc(sizeof(struct geneve_port), in geneve_tnl_create() 78 if (IS_ERR(vport)) in geneve_tnl_create() [all …]
|
| H A D | vport-vxlan.c | 17 #include "vport.h" 18 #include "vport-netdev.h" 22 static int vxlan_get_options(const struct vport *vport, struct sk_buff *skb) in vxlan_get_options() argument 24 struct vxlan_dev *vxlan = netdev_priv(vport->dev); in vxlan_get_options() 51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() argument 71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create() 76 struct vport *vport; in vxlan_tnl_create() local 100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create() 101 if (IS_ERR(vport)) in vxlan_tnl_create() 102 return vport; in vxlan_tnl_create() [all …]
|
| H A D | dp_notify.c | 11 #include "vport-internal_dev.h" 12 #include "vport-netdev.h" 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() 20 notify = ovs_vport_cmd_build_info(vport, ovs_dp_get_net(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 47 hlist_for_each_entry_safe(vport, in ovs_dp_notify_wq() 64 struct vport *vport = NULL; dp_device_event() local [all...] |
| H A D | vport-gre.c | 34 #include "vport.h" 35 #include "vport-netdev.h" 39 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create() 43 struct vport *vport; in gre_tnl_create() local 46 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create() 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() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_vport.c | 53 inline void lpfc_vport_set_state(struct lpfc_vport *vport, in lpfc_vport_set_state() argument 56 struct fc_vport *fc_vport = vport->fc_vport; in lpfc_vport_set_state() 76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state() 79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state() 118 lpfc_vport_sparm(struct lpfc_hba *phba, struct lpfc_vport *vport) in lpfc_vport_sparm() argument 131 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm() 139 * this per vport to start the FDISC. If the mailbox fails, in lpfc_vport_sparm() 146 pmb->vport = vport; in lpfc_vport_sparm() 150 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm() 158 lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, in lpfc_vport_sparm() [all …]
|
| H A D | lpfc_ct.c | 157 struct lpfc_vport *vport = ndlp->vport; in lpfc_ct_reject_event() local 158 struct lpfc_hba *phba = vport->phba; in lpfc_ct_reject_event() 241 cmdiocbq->vport = vport; in lpfc_ct_reject_event() 267 lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS, in lpfc_ct_reject_event() 269 rc, vport->fc_flag); in lpfc_ct_reject_event() 286 struct lpfc_vport *vport = ctiocbq->vport; in lpfc_ct_handle_mibreq() local 294 lpfc_vlog_msg(vport, KERN_WARNING, LOG_ELS, in lpfc_ct_handle_mibreq() 300 /* Ignore traffic received during vport shutdown */ in lpfc_ct_handle_mibreq() 301 if (test_bit(FC_UNLOADING, &vport->load_flag)) in lpfc_ct_handle_mibreq() 304 ndlp = lpfc_findnode_did(vport, did); in lpfc_ct_handle_mibreq() [all …]
|
| H A D | lpfc_hbadisc.c | 71 static void lpfc_disc_flush_list(struct lpfc_vport *vport); 123 if (!ndlp->vport) { in lpfc_rport_invalid() 124 pr_err("**** %s: Null vport on ndlp x%px, DID x%x rport x%px " in lpfc_rport_invalid() 137 struct lpfc_vport *vport; in lpfc_terminate_rport_io() local 144 vport = ndlp->vport; in lpfc_terminate_rport_io() 145 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_RPORT, in lpfc_terminate_rport_io() 150 lpfc_sli_abort_iocb(vport, ndlp->nlp_sid, 0, LPFC_CTX_TGT); in lpfc_terminate_rport_io() 160 struct lpfc_vport *vport; in lpfc_dev_loss_tmo_callbk() local 170 vport = ndlp->vport; in lpfc_dev_loss_tmo_callbk() 171 phba = vport->phba; in lpfc_dev_loss_tmo_callbk() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_lib.c | 273 /* As IDPF_MIN_Q_VEC per default vport is put aside in the in idpf_req_rel_vector_indexes() 407 * vport in idpf_intr_req() 447 * @vconfig: Vport config structure 471 * @vport_config: Vport config structure 494 * @vport: Main vport structure 502 static int idpf_del_mac_filter(struct idpf_vport *vport, in idpf_del_mac_filter() argument 525 err = idpf_add_del_mac_filters(vport, np, false, async); in idpf_del_mac_filter() 535 * @vport_config: Vport config structure 573 * @vport: Main vport structure 581 static int idpf_add_mac_filter(struct idpf_vport *vport, in idpf_add_mac_filter() argument [all …]
|
| H A D | idpf_txrx.c | 149 * @vport: virtual port structure 153 static void idpf_tx_desc_rel_all(struct idpf_vport *vport) in idpf_tx_desc_rel_all() argument 157 if (!vport->txq_grps) in idpf_tx_desc_rel_all() 160 for (i = 0; i < vport->num_txq_grp; i++) { in idpf_tx_desc_rel_all() 161 struct idpf_txq_group *txq_grp = &vport->txq_grps[i]; in idpf_tx_desc_rel_all() 166 if (idpf_is_queue_model_split(vport->txq_model)) in idpf_tx_desc_rel_all() 196 * @vport: vport to allocate resources for 201 static int idpf_tx_desc_alloc(const struct idpf_vport *vport, in idpf_tx_desc_alloc() argument 229 idpf_xsk_setup_queue(vport, tx_q, VIRTCHNL2_QUEUE_TYPE_TX); in idpf_tx_desc_alloc() 266 * @vport: vport to allocate resources for [all …]
|
| H A D | idpf_virtchnl.c | 26 * idpf_vid_to_vport - Translate vport id to vport pointer 28 * @v_id: vport id to translate 30 * Returns vport matching v_id, NULL if not found. 54 struct idpf_vport *vport; in idpf_handle_event_link() local 56 vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id)); in idpf_handle_event_link() 57 if (!vport) { in idpf_handle_event_link() 62 np = netdev_priv(vport->netdev); in idpf_handle_event_link() 66 if (vport->link_up == v2e->link_status) in idpf_handle_event_link() 69 vport->link_up = v2e->link_status; in idpf_handle_event_link() 74 if (vport->link_up) { in idpf_handle_event_link() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_mbx.c | 26 * @vport: pointer to struct hclge_vport 31 static int hclge_gen_resp_to_vf(struct hclge_vport *vport, in hclge_gen_resp_to_vf() argument 36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 91 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument 95 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg() 127 int hclge_inform_vf_reset(struct hclge_vport *vport, u16 reset_type) in hclge_inform_vf_reset() argument 132 dest_vfid = (u8)vport->vport_id; in hclge_inform_vf_reset() 136 return hclge_send_mbx_msg(vport, (u8 *)&msg_data, sizeof(msg_data), in hclge_inform_vf_reset() 140 int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport) in hclge_inform_reset_assert_to_vf() argument 142 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf() [all …]
|
| H A D | hclge_main.c | 620 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all() 640 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_update_stats() local 641 struct hclge_dev *hdev = vport->back; in hclge_update_stats() 670 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_sset_count() local 671 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count() 719 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_strings() local 720 struct hclge_dev *hdev = vport->back; in hclge_get_strings() 755 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_stats() local 756 struct hclge_dev *hdev = vport->back; in hclge_get_stats() 767 struct hclge_vport *vport = hclge_get_vport(handle); in hclge_get_mac_stat() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | qos.c | 75 [SCHED_NODE_TYPE_VPORT] = "vport", 78 [SCHED_NODE_TYPE_VPORT_TC] = "vport TC", 99 /* Valid only if this node is associated with a vport. */ 100 struct mlx5_vport *vport; member 105 /* Valid only for a TC arbiter node or vport TC arbiter. */ 150 struct mlx5_vport *vport = child->vport; in esw_qos_nodes_set_parent() local 152 if (vport) in esw_qos_nodes_set_parent() 153 vport->qos.sched_node->parent = parent; in esw_qos_nodes_set_parent() 159 void mlx5_esw_qos_vport_qos_free(struct mlx5_vport *vport) in mlx5_esw_qos_vport_qos_free() argument 161 if (vport->qos.sched_nodes) { in mlx5_esw_qos_vport_qos_free() [all …]
|
| H A D | ipsec.c | 5 #include <linux/mlx5/vport.h> 43 int mlx5_esw_ipsec_vf_offload_get(struct mlx5_core_dev *dev, struct mlx5_vport *vport) in mlx5_esw_ipsec_vf_offload_get() argument 53 err = esw_ipsec_vf_query_generic(dev, vport->vport, &ipsec_enabled); in mlx5_esw_ipsec_vf_offload_get() 58 vport->info.ipsec_crypto_enabled = false; in mlx5_esw_ipsec_vf_offload_get() 59 vport->info.ipsec_packet_enabled = false; in mlx5_esw_ipsec_vf_offload_get() 67 err = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in mlx5_esw_ipsec_vf_offload_get() 72 vport->info.ipsec_crypto_enabled = in mlx5_esw_ipsec_vf_offload_get() 74 vport->info.ipsec_packet_enabled = in mlx5_esw_ipsec_vf_offload_get() 120 static int esw_ipsec_vf_set_bytype(struct mlx5_core_dev *dev, struct mlx5_vport *vport, in esw_ipsec_vf_set_bytype() argument 138 ret = mlx5_vport_get_other_func_cap(dev, vport->vport, query_cap, MLX5_CAP_IPSEC); in esw_ipsec_vf_set_bytype() [all …]
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_nport.c | 18 * - a vport populates associated nport 24 * - the vport is removed 226 * If this is a vport, logout of the fabric in efc_nport_shutdown() 227 * controller so that it deletes the vport in efc_nport_shutdown() 236 efc_log_debug(efc, "[%s] nport shutdown vport, send logo\n", in efc_nport_shutdown() 258 struct efc_vport *vport; in efc_vport_link_down() local 260 /* Clear the nport reference in the vport specification */ in efc_vport_link_down() 261 list_for_each_entry(vport, &efc->vport_list, list_entry) { in efc_vport_link_down() 262 if (vport->nport == nport) { in efc_vport_link_down() 264 vport->nport = NULL; in efc_vport_link_down() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch.h | 43 #include <linux/mlx5/vport.h> 170 /* Vport context events */ 181 struct mlx5_vport *vport; member 185 struct mlx5_vport *vport) in mlx5_devlink_port_init() argument 187 dl_port->vport = vport; in mlx5_devlink_port_init() 197 return mlx5_devlink_port_get(dl_port)->vport; in mlx5_devlink_port_vport_get() 202 #define MLX5_VPORT_INVAL_VHCA_ID(vport) \ argument 203 ((vport)->vhca_id == MLX5_VHCA_ID_INVALID) 222 u16 function_id; /* Function ID of the delegated VPort */ 227 /* Protected with the E-Switch qos domain lock. The Vport QoS can [all …]
|
| H A D | eswitch_offloads.c | 37 #include <linux/mlx5/vport.h> 96 spec->flow_context.flow_source = (attr->in_rep->vport == MLX5_VPORT_UPLINK) ? in mlx5_eswitch_set_rule_flow_source() 126 u16 vport) in mlx5_eswitch_set_rule_source_port() argument 133 /* Use metadata matching because vport is not represented by single in mlx5_eswitch_set_rule_source_port() 134 * VHCA in dual-port RoCE mode, and matching on source vport may fail. in mlx5_eswitch_set_rule_source_port() 138 vport = mlx5_esw_indir_table_decap_vport(attr); in mlx5_eswitch_set_rule_source_port() 145 mlx5_eswitch_get_vport_metadata_for_match(src_esw, vport); in mlx5_eswitch_set_rule_source_port() 157 MLX5_SET(fte_match_set_misc, misc, source_port, vport); in mlx5_eswitch_set_rule_source_port() 291 else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_put_dest_tables_loop() 293 mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, false); in esw_put_dest_tables_loop() [all …]
|
| /linux/sound/isa/ |
| H A D | sc6000.c | 183 static int sc6000_wait_data(char __iomem *vport) in sc6000_wait_data() argument 189 val = ioread8(vport + DSP_DATAVAIL); in sc6000_wait_data() 198 static int sc6000_read(char __iomem *vport) in sc6000_read() argument 200 if (sc6000_wait_data(vport)) in sc6000_read() 203 return ioread8(vport + DSP_READ); in sc6000_read() 207 static int sc6000_write(struct device *devptr, char __iomem *vport, int cmd) in sc6000_write() argument 213 val = ioread8(vport + DSP_STATUS); in sc6000_write() 218 iowrite8(cmd, vport + DSP_COMMAND); in sc6000_write() 230 char __iomem *vport, int command, in sc6000_dsp_get_answer() argument 235 if (sc6000_write(devptr, vport, command)) { in sc6000_dsp_get_answer() [all …]
|