/titanic_50/usr/src/uts/sun4v/io/ |
H A D | vnet_common.c | 69 struct ether_vlan_header *evhp; in vnet_vlan_insert_tag() local 85 evhp = (struct ether_vlan_header *)mp->b_rptr; in vnet_vlan_insert_tag() 86 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in vnet_vlan_insert_tag() 87 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in vnet_vlan_insert_tag() 108 evhp = (struct ether_vlan_header *)nmp->b_rptr; in vnet_vlan_insert_tag() 109 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in vnet_vlan_insert_tag() 110 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in vnet_vlan_insert_tag() 114 sizeof (evhp->ether_type)); in vnet_vlan_insert_tag()
|
H A D | vsw_switching.c | 1479 struct ether_vlan_header *evhp; in vsw_frame_lookup_vid() local 1486 evhp = (struct ether_vlan_header *)ehp; in vsw_frame_lookup_vid() 1487 *vidp = VLAN_ID(ntohs(evhp->ether_tci)); in vsw_frame_lookup_vid()
|
H A D | vnet.c | 1331 struct ether_vlan_header *evhp; in vnet_rx_frames_untag() local 1344 evhp = (struct ether_vlan_header *)bp->b_rptr; in vnet_rx_frames_untag() 1346 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN && in vnet_rx_frames_untag() 1347 VLAN_ID(ntohs(evhp->ether_tci)) == pvid) { in vnet_rx_frames_untag()
|
H A D | vnet_gen.c | 1570 struct ether_vlan_header *evhp; in vgen_frame_lookup_vid() local 1575 evhp = (struct ether_vlan_header *)ehp; in vgen_frame_lookup_vid() 1576 *vidp = VLAN_ID(ntohs(evhp->ether_tci)); in vgen_frame_lookup_vid()
|
/titanic_50/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 141 struct ether_vlan_header *evhp; in mac_fix_cksum() local 145 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_fix_cksum() 146 sap = ntohs(evhp->ether_type); in mac_fix_cksum() 321 struct ether_vlan_header *evhp; in mac_add_vlan_tag() local 339 evhp = (struct ether_vlan_header *)hmp->b_rptr; in mac_add_vlan_tag() 342 bcopy(ehp, evhp, (ETHERADDRL * 2)); in mac_add_vlan_tag() 343 evhp->ether_type = ehp->ether_type; in mac_add_vlan_tag() 344 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in mac_add_vlan_tag() 367 evhp->ether_tci = htons(VLAN_TCI(pri, 0, vid)); in mac_add_vlan_tag() 406 struct ether_vlan_header *evhp; in mac_strip_vlan_tag() local [all …]
|
H A D | mac_flow.c | 1674 struct ether_vlan_header *evhp = in flow_l2_accept() local 1677 if (PKT_TOO_SMALL(s, l2->l2_start + sizeof (*evhp))) in flow_l2_accept() 1680 l2->l2_sap = ntohs(evhp->ether_type); in flow_l2_accept() 1681 l2->l2_vid = VLAN_ID(ntohs(evhp->ether_tci)); in flow_l2_accept() 1682 l2->l2_hdrsize = sizeof (*evhp); in flow_l2_accept() 1701 struct ether_vlan_header *evhp; in flow_ether_hash() local 1703 evhp = (struct ether_vlan_header *)l2->l2_start; in flow_ether_hash() 1704 l2->l2_daddr = evhp->ether_dhost.ether_addr_octet; in flow_ether_hash() 1722 struct ether_vlan_header *evhp; in flow_ether_accept() local 1725 evhp = (struct ether_vlan_header *)s->fs_mp->b_rptr; in flow_ether_accept() [all …]
|
H A D | mac_sched.c | 1493 struct ether_vlan_header *evhp; in mac_rx_srs_proto_fanout() local 1568 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_rx_srs_proto_fanout() 1569 sap = ntohs(evhp->ether_type); in mac_rx_srs_proto_fanout() 1576 VLAN_ID(ntohs(evhp->ether_tci)))) { in mac_rx_srs_proto_fanout() 1897 struct ether_vlan_header *evhp; in mac_rx_srs_fanout() local 1987 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_rx_srs_fanout() 1988 sap = ntohs(evhp->ether_type); in mac_rx_srs_fanout() 1995 VLAN_ID(ntohs(evhp->ether_tci)))) { in mac_rx_srs_fanout() 4387 struct ether_vlan_header *evhp = in mac_tx_send() local 4390 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN) in mac_tx_send() [all …]
|
H A D | mac_client.c | 4258 struct ether_vlan_header *evhp; in mac_vlan_header_info() local 4275 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_vlan_header_info() 4276 sap = ntohs(evhp->ether_type); in mac_vlan_header_info() 4279 mhip->mhi_tci = ntohs(evhp->ether_tci); in mac_vlan_header_info()
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | mac_client_impl.h | 279 struct ether_vlan_header *evhp; \ 282 evhp = (struct ether_vlan_header *)(mp)->b_rptr;\ 283 vlanid = VLAN_ID(ntohs(evhp->ether_tci)); \
|
/titanic_50/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 776 struct ether_vlan_header *evhp; in i_dld_ether_header_update_tag() local 783 evhp = (struct ether_vlan_header *)mp->b_rptr; in i_dld_ether_header_update_tag() 784 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN) { in i_dld_ether_header_update_tag() 806 evhp = (struct ether_vlan_header *)mp->b_rptr; in i_dld_ether_header_update_tag() 807 old_tci = ntohs(evhp->ether_tci); in i_dld_ether_header_update_tag() 823 evhp = (struct ether_vlan_header *)hmp->b_rptr; in i_dld_ether_header_update_tag() 829 bcopy(ehp, evhp, (ETHERADDRL * 2)); in i_dld_ether_header_update_tag() 830 evhp->ether_type = ehp->ether_type; in i_dld_ether_header_update_tag() 831 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in i_dld_ether_header_update_tag() 853 evhp->ether_tci = htons(VLAN_TCI(pri, VLAN_CFI(old_tci), vid)); in i_dld_ether_header_update_tag() [all …]
|
/titanic_50/usr/src/uts/common/io/dls/ |
H A D | dls.c | 439 struct ether_vlan_header *evhp; in dls_header() local 480 evhp = (struct ether_vlan_header *)mp->b_rptr; in dls_header() 481 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in dls_header() 482 evhp->ether_type = htons(sap); in dls_header()
|
/titanic_50/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 389 struct ether_vlan_header *evhp; in pfp_packet() local 395 if (MBLKL(mp) >= sizeof (*evhp)) { in pfp_packet() 396 evhp = (struct ether_vlan_header *)mp->b_rptr; in pfp_packet() 398 int sz = sizeof (*evhp); in pfp_packet() 409 evhp = &evh; in pfp_packet() 411 hdr.mhi_tci = ntohs(evhp->ether_tci); in pfp_packet() 412 hdr.mhi_bindsap = ntohs(evhp->ether_type); in pfp_packet()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | gldutil.c | 213 struct ether_vlan_header *evhp; in gld_interpret_ether() local 222 evhp = (struct ether_vlan_header *)mp->b_rptr; in gld_interpret_ether() 223 tci = REF_NET_USHORT(evhp->ether_tci); in gld_interpret_ether() 431 struct ether_vlan_header *evhp; in gld_insert_vtag_ether() local 443 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether() 453 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether() 455 mac_copy(&ehp->ether_dhost, &evhp->ether_dhost, ETHERADDRL); in gld_insert_vtag_ether() 456 mac_copy(&ehp->ether_shost, &evhp->ether_shost, ETHERADDRL); in gld_insert_vtag_ether() 457 bcopy(&ehp->ether_type, &evhp->ether_type, sizeof (uint16_t)); in gld_insert_vtag_ether() 469 SET_NET_USHORT(evhp->ether_tci, vtag); in gld_insert_vtag_ether() [all …]
|
H A D | bridge.c | 1811 struct ether_vlan_header *evhp; in update_header() local 1815 evhp = (struct ether_vlan_header *)mp->b_rptr; in update_header() 1817 hdr_info->mhi_tci = ntohs(evhp->ether_tci); in update_header() 1823 ether_type = ntohs(evhp->ether_type); in update_header() 1827 mp->b_rptr = (uchar_t *)(evhp + 1); in update_header() 2566 struct ether_vlan_header *evhp; in bridge_trill_decaps() local 2569 evhp = (struct ether_vlan_header *)mp->b_rptr; in bridge_trill_decaps() 2570 tci = ntohs(evhp->ether_tci); in bridge_trill_decaps()
|
/titanic_50/usr/src/uts/common/xen/io/ |
H A D | xnf.c | 1382 struct ether_vlan_header *evhp; in xnf_pseudo_cksum() local 1384 ASSERT(length >= sizeof (*evhp)); in xnf_pseudo_cksum() 1385 evhp = (struct ether_vlan_header *)buf; in xnf_pseudo_cksum() 1386 sap = ntohs(evhp->ether_type); in xnf_pseudo_cksum() 1387 offset = sizeof (*evhp); in xnf_pseudo_cksum()
|
H A D | xnb.c | 290 struct ether_vlan_header *evhp; in xnb_process_cksum_flags() local 293 evhp = (struct ether_vlan_header *)mp->b_rptr; in xnb_process_cksum_flags() 294 sap = ntohs(evhp->ether_type); in xnb_process_cksum_flags()
|
/titanic_50/usr/src/lib/libpicltree/ |
H A D | picltree.c | 172 free_handler(evt_handler_t *evhp) in free_handler() argument 174 if (evhp->ename) in free_handler() 175 free(evhp->ename); in free_handler() 176 (void) pthread_cond_broadcast(&evhp->cv); in free_handler() 177 (void) pthread_cond_destroy(&evhp->cv); in free_handler() 178 free(evhp); in free_handler()
|