Author: delphij
Date: Mon Aug 17 05:53:37 2015
New Revision: 286836
URL: https://svnweb.freebsd.org/changeset/base/286836

Log:
  so_vnet is constant after creation and no locking is necessary,
  document this fact.
  
  (netmap have an assignment too but that socket object is on stack).
  
  MFC after:    2 weeks

Modified:
  head/sys/sys/socketvar.h

Modified: head/sys/sys/socketvar.h
==============================================================================
--- head/sys/sys/socketvar.h    Mon Aug 17 02:04:11 2015        (r286835)
+++ head/sys/sys/socketvar.h    Mon Aug 17 05:53:37 2015        (r286836)
@@ -78,7 +78,7 @@ struct socket {
        short   so_state;               /* (b) internal state flags SS_* */
        int     so_qstate;              /* (e) internal state flags SQ_* */
        void    *so_pcb;                /* protocol control block */
-       struct  vnet *so_vnet;          /* network stack instance */
+       struct  vnet *so_vnet;          /* (a) network stack instance */
        struct  protosw *so_proto;      /* (a) protocol handle */
 /*
  * Variables for connection queuing.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to