/illumos-gate/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 | 1332 struct ether_vlan_header *evhp; in vnet_rx_frames_untag() local 1345 evhp = (struct ether_vlan_header *)bp->b_rptr; in vnet_rx_frames_untag() 1347 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN && in vnet_rx_frames_untag() 1348 VLAN_ID(ntohs(evhp->ether_tci)) == pvid) { in vnet_rx_frames_untag()
|
H A D | vnet_gen.c | 1573 struct ether_vlan_header *evhp; in vgen_frame_lookup_vid() local 1578 evhp = (struct ether_vlan_header *)ehp; in vgen_frame_lookup_vid() 1579 *vidp = VLAN_ID(ntohs(evhp->ether_tci)); in vgen_frame_lookup_vid()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 400 struct ether_vlan_header *evhp; in mac_sw_cksum() local 402 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_sw_cksum() 403 etype = ntohs(evhp->ether_type); in mac_sw_cksum() 1438 struct ether_vlan_header *evhp; in mac_add_vlan_tag() local 1458 bcopy(ehp, evhp, (ETHERADDRL * 2)); in mac_add_vlan_tag() 1459 evhp->ether_type = ehp->ether_type; in mac_add_vlan_tag() 1460 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in mac_add_vlan_tag() 1520 struct ether_vlan_header *evhp; in mac_strip_vlan_tag() local 1522 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_strip_vlan_tag() 2039 struct ether_vlan_header *evhp; in mac_pkt_hash() local [all …]
|
H A D | mac_flow.c | 1675 struct ether_vlan_header *evhp = in flow_l2_accept() local 1681 l2->l2_sap = ntohs(evhp->ether_type); in flow_l2_accept() 1682 l2->l2_vid = VLAN_ID(ntohs(evhp->ether_tci)); in flow_l2_accept() 1683 l2->l2_hdrsize = sizeof (*evhp); in flow_l2_accept() 1702 struct ether_vlan_header *evhp; in flow_ether_hash() local 1704 evhp = (struct ether_vlan_header *)l2->l2_start; in flow_ether_hash() 1705 l2->l2_daddr = evhp->ether_dhost.ether_addr_octet; in flow_ether_hash() 1723 struct ether_vlan_header *evhp; in flow_ether_accept() local 1727 l2->l2_start = (uchar_t *)evhp; in flow_ether_accept() 1737 l2->l2_sap = ntohs(evhp->ether_type); in flow_ether_accept() [all …]
|
H A D | mac_sched.c | 1486 struct ether_vlan_header *evhp; in mac_rx_srs_proto_fanout() local 1562 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_rx_srs_proto_fanout() 1563 sap = ntohs(evhp->ether_type); in mac_rx_srs_proto_fanout() 1575 VLAN_ID(ntohs(evhp->ether_tci)))) { in mac_rx_srs_proto_fanout() 1898 struct ether_vlan_header *evhp; in mac_rx_srs_fanout() local 1989 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_rx_srs_fanout() 1990 sap = ntohs(evhp->ether_type); in mac_rx_srs_fanout() 2002 VLAN_ID(ntohs(evhp->ether_tci)))) { in mac_rx_srs_fanout()
|
H A D | mac_client.c | 4443 struct ether_vlan_header *evhp; in mac_vlan_header_info() local 4460 evhp = (struct ether_vlan_header *)mp->b_rptr; in mac_vlan_header_info() 4461 sap = ntohs(evhp->ether_type); in mac_vlan_header_info() 4464 mhip->mhi_tci = ntohs(evhp->ether_tci); in mac_vlan_header_info()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 186 struct ether_vlan_header *evhp; in inet_pkt_hash() local 196 evhp = (struct ether_vlan_header *)newmp->b_rptr; in inet_pkt_hash() 198 evhp = (struct ether_vlan_header *)mp->b_rptr; in inet_pkt_hash() 201 sap = ntohs(evhp->ether_type); in inet_pkt_hash()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mac_client_impl.h | 284 struct ether_vlan_header *evhp; \ 287 evhp = (struct ether_vlan_header *)(mp)->b_rptr;\ 288 vlanid = VLAN_ID(ntohs(evhp->ether_tci)); \
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 793 struct ether_vlan_header *evhp; in i_dld_ether_header_update_tag() local 800 evhp = (struct ether_vlan_header *)mp->b_rptr; in i_dld_ether_header_update_tag() 823 evhp = (struct ether_vlan_header *)mp->b_rptr; in i_dld_ether_header_update_tag() 824 old_tci = ntohs(evhp->ether_tci); in i_dld_ether_header_update_tag() 846 bcopy(ehp, evhp, (ETHERADDRL * 2)); in i_dld_ether_header_update_tag() 847 evhp->ether_type = ehp->ether_type; in i_dld_ether_header_update_tag() 848 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in i_dld_ether_header_update_tag() 1163 struct ether_vlan_header *evhp; in i_dld_ether_header_strip_tag() local 1174 evhp = (struct ether_vlan_header *)mp->b_rptr; in i_dld_ether_header_strip_tag() 1176 tci = ntohs(evhp->ether_tci); in i_dld_ether_header_strip_tag() [all …]
|
/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls.c | 453 struct ether_vlan_header *evhp; in dls_header() local 494 evhp = (struct ether_vlan_header *)mp->b_rptr; in dls_header() 495 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in dls_header() 496 evhp->ether_type = htons(sap); in dls_header()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | gldutil.c | 212 struct ether_vlan_header *evhp; in gld_interpret_ether() local 221 evhp = (struct ether_vlan_header *)mp->b_rptr; in gld_interpret_ether() 222 tci = REF_NET_USHORT(evhp->ether_tci); in gld_interpret_ether() 430 struct ether_vlan_header *evhp; in gld_insert_vtag_ether() local 442 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether() 452 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether() 454 mac_copy(&ehp->ether_dhost, &evhp->ether_dhost, ETHERADDRL); in gld_insert_vtag_ether() 455 mac_copy(&ehp->ether_shost, &evhp->ether_shost, ETHERADDRL); in gld_insert_vtag_ether() 456 bcopy(&ehp->ether_type, &evhp->ether_type, sizeof (uint16_t)); in gld_insert_vtag_ether() 468 SET_NET_USHORT(evhp->ether_tci, vtag); in gld_insert_vtag_ether() [all …]
|
H A D | bridge.c | 1820 struct ether_vlan_header *evhp; in update_header() local 1824 evhp = (struct ether_vlan_header *)mp->b_rptr; in update_header() 1826 hdr_info->mhi_tci = ntohs(evhp->ether_tci); in update_header() 1832 ether_type = ntohs(evhp->ether_type); in update_header() 1836 mp->b_rptr = (uchar_t *)(evhp + 1); in update_header() 2581 struct ether_vlan_header *evhp; in bridge_trill_decaps() local 2584 evhp = (struct ether_vlan_header *)mp->b_rptr; in bridge_trill_decaps() 2585 tci = ntohs(evhp->ether_tci); in bridge_trill_decaps()
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xnf.c | 1577 struct ether_vlan_header *evhp; in xnf_pseudo_cksum() local 1578 ASSERT3U(len, >=, sizeof (*evhp)); in xnf_pseudo_cksum() 1579 evhp = (struct ether_vlan_header *)ptr; in xnf_pseudo_cksum() 1580 sap = ntohs(evhp->ether_type); in xnf_pseudo_cksum() 1581 ptr += sizeof (*evhp); in xnf_pseudo_cksum() 1582 len -= sizeof (*evhp); in xnf_pseudo_cksum()
|
H A D | xnb.c | 291 struct ether_vlan_header *evhp; in xnb_process_cksum_flags() local 294 evhp = (struct ether_vlan_header *)mp->b_rptr; in xnb_process_cksum_flags() 295 sap = ntohs(evhp->ether_type); in xnb_process_cksum_flags()
|
/illumos-gate/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()
|