Home
last modified time | relevance | path

Searched refs:switch_id (Results 1 – 25 of 25) sorted by relevance

/linux/net/dsa/
H A Dtag_sja1105.c99 u64 switch_id; member
121 packing(buf + 7, &meta->switch_id, 7, 0, 1, UNPACK, 0); in sja1105_meta_unpack()
478 int source_port = -1, switch_id = -1, vbid = -1, vid = -1; in sja1105_rcv() local
494 switch_id = hdr->h_dest[4]; in sja1105_rcv()
498 switch_id = meta.switch_id; in sja1105_rcv()
505 dsa_8021q_rcv(skb, &source_port, &switch_id, &vbid, &vid); in sja1105_rcv()
506 } else if (source_port == -1 && switch_id == -1) { in sja1105_rcv()
514 skb->dev = dsa_tag_8021q_find_user(netdev, source_port, switch_id, in sja1105_rcv()
532 int switch_id = SJA1110_RX_HEADER_SWITCH_ID(rx_header); in sja1110_rcv_meta() local
541 ds = dsa_switch_find(cpu_dp->dst->index, switch_id); in sja1110_rcv_meta()
[all …]
H A Dtag_vsc73xx_8021q.c38 int src_port = -1, switch_id = -1, vbid = -1, vid = -1; in vsc73xx_rcv() local
40 dsa_8021q_rcv(skb, &src_port, &switch_id, &vbid, &vid); in vsc73xx_rcv()
42 skb->dev = dsa_tag_8021q_find_user(netdev, src_port, switch_id, in vsc73xx_rcv()
H A Dtag_8021q.h16 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
20 int source_port, int switch_id,
H A Dtag_ocelot_8021q.c86 int src_port = -1, switch_id = -1; in ocelot_rcv() local
88 dsa_8021q_rcv(skb, &src_port, &switch_id, NULL, NULL); in ocelot_rcv()
90 skb->dev = dsa_conduit_find_user(netdev, switch_id, src_port); in ocelot_rcv()
H A Dtag_8021q.c503 int source_port, int switch_id, in dsa_tag_8021q_find_user() argument
507 if (source_port != -1 && switch_id != -1) in dsa_tag_8021q_find_user()
508 return dsa_conduit_find_user(conduit, switch_id, source_port); in dsa_tag_8021q_find_user()
532 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id, in dsa_8021q_rcv() argument
579 if (tmp_vbid == 0 && *switch_id == -1) in dsa_8021q_rcv()
580 *switch_id = tmp_switch_id; in dsa_8021q_rcv()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c63 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
64 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
70 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
71 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
84 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
85 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
94 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
95 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
163 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set()
164 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq_cmd.h254 __le16 switch_id; /* 12bit id combined with flags below */ member
370 __le16 switch_id; member
/linux/drivers/net/netdevsim/
H A Ddev.c1406 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
1407 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1586 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe()
1587 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
H A Dnetdevsim.h341 struct netdev_phys_item_id switch_id; member
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c426 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register()
427 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
H A Dprestera_hw.c246 u8 switch_id; member
1078 sw->id = resp.switch_id; in prestera_hw_switch_init()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_devlink.c356 memcpy(attrs.switch_id.id, serial, serial_len); in nfp_devlink_port_register()
357 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h190 unsigned char switch_id[MAX_PHYS_ITEM_ID_LEN]; member
H A Dam65-cpsw-nuss.c3292 attrs.switch_id.id_len = sizeof(resource_size_t); in am65_cpsw_nuss_register_devlink()
3293 memcpy(attrs.switch_id.id, common->switch_id, attrs.switch_id.id_len); in am65_cpsw_nuss_register_devlink()
3562 memcpy(common->switch_id, &id_temp, sizeof(res->start)); in am65_cpsw_nuss_probe()
/linux/net/devlink/
H A Dport.c1348 if (attrs->switch_id.id_len) { in __devlink_port_attrs_set()
1350 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) in __devlink_port_attrs_set()
1351 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN; in __devlink_port_attrs_set()
1606 memcpy(ppid, &devlink_port->attrs.switch_id, sizeof(*ppid)); in devlink_compat_switch_id_get()
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Dport.c353 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_pf_port()
466 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_vf_port()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_debugfs.c333 vsi->info.valid_sections, vsi->info.switch_id); in i40e_dbg_dump_vsi_seid()
984 u16 switch_id; in i40e_dbg_command_write() local
993 switch_id = in i40e_dbg_command_write()
994 le16_to_cpu(vsi->info.switch_id) & in i40e_dbg_command_write()
998 switch_id, in i40e_dbg_command_write()
H A Di40e_adminq_cmd.h607 __le16 switch_id; /* 12bit id combined with flags below */ member
738 __le16 switch_id; member
H A Di40e_prototype.h148 u16 veb_seid, u16 *switch_id, bool *floating,
H A Di40e_common.c2145 u16 veb_seid, u16 *switch_id, in i40e_aq_get_veb_parameters() argument
2166 if (switch_id) in i40e_aq_get_veb_parameters()
2167 *switch_id = le16_to_cpu(cmd_resp->switch_id); in i40e_aq_get_veb_parameters()
H A Di40e_main.c6308 ctxt.info.switch_id = in i40e_add_channel()
10298 ctxt.info.switch_id |= cpu_to_le16(I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB); in i40e_enable_pf_switch_lb()
10332 ctxt.info.switch_id &= ~cpu_to_le16(I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB); in i40e_disable_pf_switch_lb()
13905 ctxt.info.switch_id = in i40e_add_vsi()
13969 ctxt.info.switch_id = in i40e_add_vsi()
13988 ctxt.info.switch_id = in i40e_add_vsi()
14009 ctxt.info.switch_id = in i40e_add_vsi()
/linux/drivers/net/ethernet/intel/ixgbe/devlink/
H A Ddevlink.c547 ixgbe_devlink_set_switch_id(adapter, &attrs.switch_id); in ixgbe_devlink_register_port()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Drep.c254 rvu_rep_devlink_set_switch_id(priv, &attrs.switch_id); in rvu_rep_devlink_port_register()
/linux/include/net/
H A Ddevlink.h97 struct netdev_phys_item_id switch_id; member
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth.c2442 sprintf(prueth->switch_id, "%s", dev_name(dev)); in prueth_probe()