Date: Mon, 3 May 2004 19:11:48 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet raw_ip.c tcp_output.c tcp_subr.c tcp_syncache.c udp_usrreq.c Message-ID: <200405040211.i442BmbL006764@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004/05/03 19:11:48 PDT FreeBSD src repository Modified files: sys/netinet raw_ip.c tcp_output.c tcp_subr.c tcp_syncache.c udp_usrreq.c Log: Switch to using the inpcb MAC label instead of socket MAC label when labeling new mbufs created from sockets/inpcbs in IPv4. This helps avoid the need for socket layer locking in the lower level network paths where inpcb locks are already frequently held where needed. In particular: - Use the inpcb for label instead of socket in raw_append(). - Use the inpcb for label instead of socket in tcp_output(). - Use the inpcb for label instead of socket in tcp_respond(). - Use the inpcb for label instead of socket in tcp_twrespond(). - Use the inpcb for label instead of socket in syncache_respond(). While here, modify tcp_respond() to avoid assigning NULL to a stack variable and centralize assertions about the inpcb when inp is assigned. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Revision Changes Path 1.132 +3 -1 src/sys/netinet/raw_ip.c 1.91 +1 -1 src/sys/netinet/tcp_output.c 1.189 +7 -2 src/sys/netinet/tcp_subr.c 1.57 +1 -1 src/sys/netinet/tcp_syncache.c 1.153 +1 -1 src/sys/netinet/udp_usrreq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405040211.i442BmbL006764>