/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls_link.c | 345 mac_header_info_t mhi; in i_dls_link_rx() local 367 DLS_PREPARE_PKT(dlp->dl_mh, mp, &mhi, err); in i_dls_link_rx() 380 nextp = i_dls_link_subchain(dlp, mp, &mhi, &npacket); in i_dls_link_rx() 383 vid = VLAN_ID(mhi.mhi_tci); in i_dls_link_rx() 393 if (mhi.mhi_istagged) { in i_dls_link_rx() 400 if (i_dls_link_rx_func(dlp, mrh, &mhi, mp, in i_dls_link_rx() 414 if ((vid == VLAN_ID_NONE && !mhi.mhi_ispvid && in i_dls_link_rx() 415 VLAN_PRI(mhi.mhi_tci) == 0) || in i_dls_link_rx() 416 (mhi.mhi_bindsap == ETHERTYPE_VLAN && in i_dls_link_rx() 426 key = MAKE_KEY(mhi.mhi_bindsap); in i_dls_link_rx() [all …]
|
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 408 mac_header_info_t mhi; in mac_wifi_header_uncook() local 411 if (mac_wifi_header_info(mp, pdata, &mhi) != 0) { in mac_wifi_header_uncook() 425 IEEE80211_ADDR_COPY(&eh.ether_dhost, mhi.mhi_daddr); in mac_wifi_header_uncook() 426 IEEE80211_ADDR_COPY(&eh.ether_shost, mhi.mhi_saddr); in mac_wifi_header_uncook() 427 eh.ether_type = htons(mhi.mhi_origsap); in mac_wifi_header_uncook() 429 ASSERT(mhi.mhi_hdrsize >= sizeof (struct ether_header)); in mac_wifi_header_uncook() 430 mp->b_rptr += mhi.mhi_hdrsize - sizeof (struct ether_header); in mac_wifi_header_uncook()
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 921 mac_header_info_t mhi; in str_mdata_raw_put() local 955 if (mac_vlan_header_info(dsp->ds_mh, mp, &mhi) != 0) in str_mdata_raw_put() 964 if (size > max_sdu + mhi.mhi_hdrsize) in str_mdata_raw_put() 974 vid = VLAN_ID(mhi.mhi_tci); in str_mdata_raw_put() 982 pri = VLAN_PRI(mhi.mhi_tci); in str_mdata_raw_put() 983 if (mhi.mhi_istagged && !mhi.mhi_ispvid && pri == 0 && in str_mdata_raw_put() 1469 mac_header_info_t mhi; in str_unitdata_ind() local 1477 if (mac_vlan_header_info(dsp->ds_mh, mp, &mhi) != 0) in str_unitdata_ind() 1501 bcopy(mhi.mhi_daddr, daddr, addr_length); in str_unitdata_ind() 1506 if (mhi.mhi_istagged && !strip_vlan) in str_unitdata_ind() [all …]
|
/illumos-gate/usr/src/uts/common/io/overlay/ |
H A D | overlay_target.c | 315 mac_header_info_t mhi; in overlay_target_lookup() local 352 if (mac_header_info(odd->odd_mh, mp, &mhi) != 0) in overlay_target_lookup() 356 mhi.mhi_daddr); in overlay_target_lookup() 363 bcopy(mhi.mhi_daddr, entry->ote_addr, ETHERADDRL); in overlay_target_lookup() 588 mac_header_info_t mhi; in overlay_target_lookup_request() local 616 &mhi) != 0) { in overlay_target_lookup_request() 638 otl->otl_hdrsize = mhi.mhi_hdrsize; in overlay_target_lookup_request() 640 bcopy(mhi.mhi_daddr, otl->otl_dstaddr, ETHERADDRL); in overlay_target_lookup_request() 641 bcopy(mhi.mhi_saddr, otl->otl_srcaddr, ETHERADDRL); in overlay_target_lookup_request() 642 otl->otl_dsttype = mhi.mhi_dsttype; in overlay_target_lookup_request() [all …]
|
/illumos-gate/usr/src/uts/intel/io/viona/ |
H A D | viona_rx.c | 738 mac_header_info_t mhi; in viona_rx_mcast() local 745 err = mac_vlan_header_info(mh, mp, &mhi); in viona_rx_mcast() 760 err = mac_vlan_header_info(mh, pull, &mhi); in viona_rx_mcast() 770 if (err == 0 && mhi.mhi_dsttype == MAC_ADDRTYPE_MULTICAST) { in viona_rx_mcast()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 1660 mac_header_info_t mhi; in mac_protect_intercept_dynamic_one() local 1663 err = mac_vlan_header_info((mac_handle_t)mip, mp, &mhi); in mac_protect_intercept_dynamic_one() 1670 err = get_l3_info(mp, mhi.mhi_hdrsize, &start, &end, &nmp); in mac_protect_intercept_dynamic_one() 1677 switch (mhi.mhi_bindsap) { in mac_protect_intercept_dynamic_one() 2269 mac_header_info_t mhi; in mac_protect_check_one() local 2276 err = mac_vlan_header_info((mac_handle_t)mip, mp, &mhi); in mac_protect_check_one() 2286 if (mhi.mhi_saddr != NULL && in mac_protect_check_one() 2287 bcmp(mcip->mci_unicast->ma_addr, mhi.mhi_saddr, in mac_protect_check_one() 2296 uint32_t vid = VLAN_ID(mhi.mhi_tci); in mac_protect_check_one() 2297 uint32_t sap = mhi.mhi_bindsap; in mac_protect_check_one() [all …]
|
H A D | mac_sched.c | 1586 mac_header_info_t mhi; in mac_rx_srs_proto_fanout() local 1589 mp, &mhi) != 0) { in mac_rx_srs_proto_fanout() 1593 hdrsize = mhi.mhi_hdrsize; in mac_rx_srs_proto_fanout() 1594 sap = mhi.mhi_bindsap; in mac_rx_srs_proto_fanout() 1595 is_unicast = (mhi.mhi_dsttype == MAC_ADDRTYPE_UNICAST); in mac_rx_srs_proto_fanout() 1596 dstaddr = (uint8_t *)mhi.mhi_daddr; in mac_rx_srs_proto_fanout() 2013 mac_header_info_t mhi; in mac_rx_srs_fanout() local 2016 mp, &mhi) != 0) { in mac_rx_srs_fanout() 2020 hdrsize = mhi.mhi_hdrsize; in mac_rx_srs_fanout() 2021 sap = mhi.mhi_bindsap; in mac_rx_srs_fanout() [all …]
|
H A D | mac_flow.c | 1658 mac_header_info_t mhi; in flow_l2_accept() local 1663 s->fs_mp, &mhi)) != 0) { in flow_l2_accept() 1671 l2->l2_daddr = (uint8_t *)mhi.mhi_daddr; in flow_l2_accept() 1673 if (is_ether && mhi.mhi_bindsap == ETHERTYPE_VLAN && in flow_l2_accept() 1685 l2->l2_sap = mhi.mhi_bindsap; in flow_l2_accept() 1687 l2->l2_hdrsize = (uint32_t)mhi.mhi_hdrsize; in flow_l2_accept()
|
/illumos-gate/usr/src/uts/common/io/mlxcx/ |
H A D | mlxcx_gld.c | 512 mac_header_info_t mhi; in mlxcx_mac_ring_tx() local 525 if (mac_vlan_header_info(mlxp->mlx_mac_hdl, mp, &mhi) != 0) { in mlxcx_mac_ring_tx() 535 inline_hdrlen = rem = mhi.mhi_hdrsize; in mlxcx_mac_ring_tx()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_pagelist.c | 1148 int mhi = interleaved_mnodes ? max_mem_nodes : in page_ctrs_adjust() local 1155 for (m = mlo; m < mhi; m++) { in page_ctrs_adjust() 2452 int mhi = doall ? max_mem_nodes : (mnode + 1); in page_freelist_coalesce_all() local 2466 for (mnode = mlo; mnode < mhi; mnode++) { in page_freelist_coalesce_all() 2471 for (mnode = mlo; mnode < mhi; mnode++) { in page_freelist_coalesce_all() 2510 for (mnode = mlo; mnode < mhi; mnode++) { in page_freelist_coalesce_all()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6.c | 3020 struct mac_header_info_s mhi; in ip_rput_v6() local 3022 ip_mdata_to_mhi(ill, mp, &mhi); in ip_rput_v6() 3023 ip_input_v6(ill, NULL, mp, &mhi); in ip_rput_v6()
|
H A D | ip.c | 7979 struct mac_header_info_s mhi; in ip_rput_notdata() local 7999 ip_dlur_to_mhi(ill, first_mp, &mhi); in ip_rput_notdata() 8001 ip_input_v6(ill, NULL, mp, &mhi); in ip_rput_notdata() 8003 ip_input(ill, NULL, mp, &mhi); in ip_rput_notdata() 8077 struct mac_header_info_s mhi; in ip_rput() local 8079 ip_mdata_to_mhi(ill, mp, &mhi); in ip_rput() 8080 ip_input(ill, NULL, mp, &mhi); in ip_rput()
|