Home
last modified time | relevance | path

Searched refs:ppid (Results 1 – 11 of 11) sorted by relevance

/net/bridge/
Dbr_switchdev.c26 struct netdev_phys_item_id ppid = { }; in nbp_switchdev_mark_set() local
31 err = dev_get_port_parent_id(p->dev, &ppid, true); in nbp_switchdev_mark_set()
/net/core/
Dnet-sysfs.c489 struct netdev_phys_item_id ppid; in phys_port_id_show() local
491 ret = dev_get_phys_port_id(netdev, &ppid); in phys_port_id_show()
493 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
548 struct netdev_phys_item_id ppid = { }; in phys_switch_id_show() local
550 ret = dev_get_port_parent_id(netdev, &ppid, false); in phys_switch_id_show()
552 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
Drtnetlink.c1117 struct netdev_phys_item_id ppid; in rtnl_phys_port_id_fill() local
1119 err = dev_get_phys_port_id(dev, &ppid); in rtnl_phys_port_id_fill()
1126 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1152 struct netdev_phys_item_id ppid = { }; in rtnl_phys_switch_id_fill() local
1155 err = dev_get_port_parent_id(dev, &ppid, false); in rtnl_phys_switch_id_fill()
1162 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, ppid.id_len, ppid.id)) in rtnl_phys_switch_id_fill()
Ddev.c8275 struct netdev_phys_item_id *ppid) in dev_get_phys_port_id() argument
8281 return ops->ndo_get_phys_port_id(dev, ppid); in dev_get_phys_port_id()
8317 struct netdev_phys_item_id *ppid, in dev_get_port_parent_id() argument
8327 err = ops->ndo_get_port_parent_id(dev, ppid); in dev_get_port_parent_id()
8332 err = devlink_compat_switch_id_get(dev, ppid); in dev_get_port_parent_id()
8340 err = dev_get_port_parent_id(lower_dev, ppid, recurse); in dev_get_port_parent_id()
8344 first = *ppid; in dev_get_port_parent_id()
8345 else if (memcmp(&first, ppid, sizeof(*ppid))) in dev_get_port_parent_id()
Ddevlink.c6437 struct netdev_phys_item_id ppid; in devlink_port_type_eth_set() local
6440 err = ops->ndo_get_port_parent_id(netdev, &ppid); in devlink_port_type_eth_set()
8121 struct netdev_phys_item_id *ppid) in devlink_compat_switch_id_get() argument
8133 memcpy(ppid, &devlink_port->attrs.switch_id, sizeof(*ppid)); in devlink_compat_switch_id_get()
/net/sctp/
Dulpevent.c940 sinfo.sinfo_ppid = event->ppid; in sctp_ulpevent_read_sndrcvinfo()
968 rinfo.rcv_ppid = event->ppid; in sctp_ulpevent_read_rcvinfo()
990 nxtinfo.nxt_ppid = event->ppid; in __sctp_ulpevent_read_nxtinfo()
Dulpqueue.c98 event->ppid = chunk->subh.data_hdr->ppid; in sctp_ulpq_tail_data()
Dstream_interleave.c70 hdr->ppid = lchunk->sinfo.sinfo_ppid; in sctp_chunk_assign_mid()
841 event->ppid = chunk->subh.idata_hdr->ppid; in sctp_ulpevent_idata()
Dsm_make_chunk.c733 dp.ppid = sinfo->sinfo_ppid; in sctp_make_datafrag_empty()
/net/dsa/
Dslave.c428 struct netdev_phys_item_id *ppid) in dsa_slave_get_port_parent_id() argument
441 ppid->id_len = sizeof(dst->index); in dsa_slave_get_port_parent_id()
442 memcpy(&ppid->id, &dst->index, ppid->id_len); in dsa_slave_get_port_parent_id()
/net/ipv4/
Dipmr.c836 struct netdev_phys_item_id ppid = { }; in vif_add() local
916 err = dev_get_port_parent_id(dev, &ppid, true); in vif_add()
918 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add()
919 v->dev_parent_id.id_len = ppid.id_len; in vif_add()