Lines Matching defs:caller

78 void vsw_switch_frame_nop(vsw_t *vswp, mblk_t *mp, int caller,
84 static void vsw_switch_l2_frame_mac_client(vsw_t *vswp, mblk_t *mp, int caller,
86 static void vsw_switch_l2_frame(vsw_t *vswp, mblk_t *mp, int caller,
88 static void vsw_switch_l3_frame(vsw_t *vswp, mblk_t *mp, int caller,
91 int caller, vsw_port_t *port);
93 int caller, vsw_port_t *port);
102 boolean_t vsw_frame_lookup_vid(void *arg, int caller, struct ether_header *ehp,
410 vsw_switch_frame_nop(vsw_t *vswp, mblk_t *mp, int caller, vsw_port_t *port,
420 vsw_switch_l2_frame_mac_client(vsw_t *vswp, mblk_t *mp, int caller,
432 ASSERT((caller == VSW_VNETPORT) || (caller == VSW_LOCALDEV));
434 if ((ret_m = vsw_tx_msg(vswp, mp, caller, port)) != NULL) {
446 * caller: identifies the source of this frame as:
450 * arg: argument provided by the caller.
456 vsw_switch_l2_frame(vsw_t *vswp, mblk_t *mp, int caller,
463 D1(vswp, "%s: enter (caller %d)", __func__, caller);
488 if (caller != VSW_LOCALDEV) {
527 * except the caller.
531 (void) vsw_forward_all(vswp, mp, caller, arg);
534 (void) vsw_forward_grp(vswp, mp, caller, arg);
551 if (caller == VSW_VNETPORT) {
558 caller, arg)) != NULL) {
564 } else if (caller == VSW_PHYSDEV) {
574 } else if (caller == VSW_LOCALDEV) {
580 caller, NULL)) != NULL) {
601 vsw_switch_l3_frame(vsw_t *vswp, mblk_t *mp, int caller,
608 D1(vswp, "%s: enter (caller %d)", __func__, caller);
615 if ((caller != VSW_LOCALDEV) && (caller != VSW_VNETPORT)) {
616 DERR(vswp, "%s: unexpected caller (%d)", __func__, caller);
650 * except the caller.
654 (void) vsw_forward_all(vswp, mp, caller, arg);
657 (void) vsw_forward_grp(vswp, mp, caller, arg);
665 if (caller == VSW_VNETPORT) {
707 * except the caller (port on which frame arrived).
710 vsw_forward_all(vsw_t *vswp, mblk_t *mp, int caller, vsw_port_t *arg)
725 ((caller == VSW_LOCALDEV) || (caller == VSW_VNETPORT))) {
729 if ((ret_m = vsw_tx_msg(vswp, nmp, caller, arg))
739 if (caller == VSW_VNETPORT)
746 if ((caller == VSW_PHYSDEV) || (caller == VSW_VNETPORT)) {
756 * will be NULL if the caller is PHYSDEV. skip_port is
757 * only set if caller is VNETPORT.
788 vsw_forward_grp(vsw_t *vswp, mblk_t *mp, int caller, vsw_port_t *arg)
813 ((caller == VSW_VNETPORT) || (caller == VSW_LOCALDEV))) {
816 if ((ret_m = vsw_tx_msg(vswp, nmp, caller, arg))
838 if ((caller == VSW_VNETPORT) &&
845 } else if ((caller == VSW_LOCALDEV) &&
885 ((caller == VSW_VNETPORT) || (caller == VSW_PHYSDEV))) {
1236 * arg: caller of the function.
1237 * type: type of arg(caller): VSW_LOCALDEV(vsw) or VSW_VNETPORT(port)
1470 * implicitly obtained based on the caller (destination of the frame:
1476 vsw_frame_lookup_vid(void *arg, int caller, struct ether_header *ehp,
1491 /* Untagged frame; determine vlan id based on caller */
1492 switch (caller) {