Print this page
8368 remove warlock leftovers from usr/src/uts


  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #include <sys/types.h>
  27 #include <net/if.h>
  28 #include <net/if_types.h>
  29 #include <inet/ip.h>
  30 #include <inet/ip_ire.h>
  31 #include <inet/ip_if.h>
  32 #include <sys/ethernet.h>
  33 #include <sys/ib/mgt/ibcm/ibcm_arp.h>
  34 
  35 extern char cmlog[];
  36 
  37 _NOTE(SCHEME_PROTECTS_DATA("Unshared data", ibcm_arp_streams_t))
  38 
  39 static void ibcm_resolver_ack(ip2mac_t *, void *);
  40 static int ibcm_nce_lookup(ibcm_arp_prwqn_t *wqnp, ill_t *ill, zoneid_t zid);
  41 
  42 /*
  43  * delete a wait queue node from the list.
  44  * assumes mutex is acquired
  45  */
  46 void
  47 ibcm_arp_delete_prwqn(ibcm_arp_prwqn_t *wqnp)
  48 {
  49         ibcm_arp_streams_t *ib_s;
  50 
  51         IBTF_DPRINTF_L4(cmlog, "ibcm_arp_delete_prwqn(%p)", wqnp);
  52 
  53         ib_s = wqnp->ib_str;
  54         ib_s->wqnp = NULL;
  55         kmem_free(wqnp, sizeof (ibcm_arp_prwqn_t));
  56 }
  57 
  58 /*




  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #include <sys/types.h>
  27 #include <net/if.h>
  28 #include <net/if_types.h>
  29 #include <inet/ip.h>
  30 #include <inet/ip_ire.h>
  31 #include <inet/ip_if.h>
  32 #include <sys/ethernet.h>
  33 #include <sys/ib/mgt/ibcm/ibcm_arp.h>
  34 
  35 extern char cmlog[];
  36 


  37 static void ibcm_resolver_ack(ip2mac_t *, void *);
  38 static int ibcm_nce_lookup(ibcm_arp_prwqn_t *wqnp, ill_t *ill, zoneid_t zid);
  39 
  40 /*
  41  * delete a wait queue node from the list.
  42  * assumes mutex is acquired
  43  */
  44 void
  45 ibcm_arp_delete_prwqn(ibcm_arp_prwqn_t *wqnp)
  46 {
  47         ibcm_arp_streams_t *ib_s;
  48 
  49         IBTF_DPRINTF_L4(cmlog, "ibcm_arp_delete_prwqn(%p)", wqnp);
  50 
  51         ib_s = wqnp->ib_str;
  52         ib_s->wqnp = NULL;
  53         kmem_free(wqnp, sizeof (ibcm_arp_prwqn_t));
  54 }
  55 
  56 /*