Home
last modified time | relevance | path

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

12

/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()
512 skb->dev = dsa_tag_8021q_find_user(netdev, source_port, switch_id, in sja1105_rcv()
529 int switch_id = SJA1110_RX_HEADER_SWITCH_ID(rx_header); in sja1110_rcv_meta() local
538 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_ocelot_8021q.c82 int src_port = -1, switch_id = -1; in ocelot_rcv() local
84 dsa_8021q_rcv(skb, &src_port, &switch_id, NULL, NULL); in ocelot_rcv()
86 skb->dev = dsa_conduit_find_user(netdev, switch_id, src_port); in ocelot_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_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.c38 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
39 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
46 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
57 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
58 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
124 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set()
125 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.c1481 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
1482 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1640 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe()
1641 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
H A Dnetdevsim.h328 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/dsa/qca/
H A Dqca8k-8xxx.c1118 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup_of_pws_reg()
1226 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_parse_port_config()
1384 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_phylink_mac_config()
1601 if (priv->switch_id == QCA8K_ID_QCA8327 || in qca8k_pcs_config()
1602 priv->switch_id == QCA8K_ID_QCA8337) in qca8k_pcs_config()
1972 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_setup()
1977 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup()
/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()
3554 memcpy(common->switch_id, &id_temp, sizeof(res->start)); in am65_cpsw_nuss_probe()
/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/mellanox/mlxsw/
H A Dcore.c3063 const unsigned char *switch_id, in __mlxsw_core_port_init() argument
3079 memcpy(attrs.switch_id.id, switch_id, switch_id_len); in __mlxsw_core_port_init()
3080 attrs.switch_id.id_len = switch_id_len; in __mlxsw_core_port_init()
3113 const unsigned char *switch_id, in mlxsw_core_port_init() argument
3122 switch_id, switch_id_len); in mlxsw_core_port_init()
3141 const unsigned char *switch_id, in mlxsw_core_cpu_port_init() argument
3151 switch_id, switch_id_len); in mlxsw_core_cpu_port_init()
/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()
/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/broadcom/bnxt/
H A Dbnxt_devlink.c1297 memcpy(attrs.switch_id.id, bp->dsn, sizeof(bp->dsn)); in bnxt_dl_register()
1298 attrs.switch_id.id_len = sizeof(bp->dsn); in bnxt_dl_register()
/linux/drivers/net/ethernet/mscc/
H A Docelot_net.c180 memcpy(attrs.switch_id.id, &ocelot->base_mac, id_len); in ocelot_port_devlink_init()
181 attrs.switch_id.id_len = id_len; in ocelot_port_devlink_init()
/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()

12