Lines Matching refs:ehp

102 boolean_t vsw_frame_lookup_vid(void *arg, int caller, struct ether_header *ehp,
121 static mblk_t *vsw_get_same_dest_list(struct ether_header *ehp, mblk_t **mpp);
459 struct ether_header *ehp; in vsw_switch_l2_frame() local
474 ehp = (struct ether_header *)bp->b_rptr; in vsw_switch_l2_frame()
475 mp = vsw_get_same_dest_list(ehp, &bp); in vsw_switch_l2_frame()
481 if (ether_cmp(&ehp->ether_dhost, &vswp->if_addr) == 0) { in vsw_switch_l2_frame()
500 fp = vsw_fdbe_find(vswp, &ehp->ether_dhost); in vsw_switch_l2_frame()
529 if (IS_BROADCAST(ehp)) { in vsw_switch_l2_frame()
532 } else if (IS_MULTICAST(ehp)) { in vsw_switch_l2_frame()
604 struct ether_header *ehp; in vsw_switch_l3_frame() local
624 ehp = (struct ether_header *)bp->b_rptr; in vsw_switch_l3_frame()
625 mp = vsw_get_same_dest_list(ehp, &bp); in vsw_switch_l3_frame()
635 fp = vsw_fdbe_find(vswp, &ehp->ether_dhost); in vsw_switch_l3_frame()
652 if (IS_BROADCAST(ehp)) { in vsw_switch_l3_frame()
655 } else if (IS_MULTICAST(ehp)) { in vsw_switch_l3_frame()
790 struct ether_header *ehp = (struct ether_header *)mp->b_rptr; in vsw_forward_grp() local
802 KEY_HASH(key, &ehp->ether_dhost); in vsw_forward_grp()
1245 struct ether_header *ehp; in vsw_vlan_frame_pretag() local
1273 ehp = (struct ether_header *)bp->b_rptr; in vsw_vlan_frame_pretag()
1275 if (ehp->ether_type != ETHERTYPE_VLAN) { /* untagged */ in vsw_vlan_frame_pretag()
1330 struct ether_header *ehp; in vsw_vlan_frame_untag() local
1385 ehp = (struct ether_header *)bp->b_rptr; in vsw_vlan_frame_untag()
1386 is_tagged = vsw_frame_lookup_vid(arg, type, ehp, &vlan_id); in vsw_vlan_frame_untag()
1476 vsw_frame_lookup_vid(void *arg, int caller, struct ether_header *ehp, in vsw_frame_lookup_vid() argument
1484 if (ehp->ether_type == ETHERTYPE_VLAN) { in vsw_frame_lookup_vid()
1486 evhp = (struct ether_vlan_header *)ehp; in vsw_frame_lookup_vid()
1892 vsw_get_same_dest_list(struct ether_header *ehp, mblk_t **mpp) in vsw_get_same_dest_list() argument
1907 if (ether_cmp(&ehp->ether_dhost, &behp->ether_dhost) == 0) { in vsw_get_same_dest_list()