summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
AgeCommit message (Expand)Author
2018-01-10Mark sosplice task mp safe, do not grab kernel lock for tcp output.Alexander Bluhm
2018-01-09Change `so_state' and `so_error' to unsigned int such that they canMartin Pieuchot
2018-01-02Do not memset() the whole structure in sorflush() to keep `sb_flagsintr'Martin Pieuchot
2017-12-19Remove unnecessary unlock/lock dance when following a goto.Martin Pieuchot
2017-12-18Revert grabbing the socket lock in kqueue(2) filters.Martin Pieuchot
2017-12-10Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().Martin Pieuchot
2017-11-23Constify protocol tables and remove an assert now that ip_deliver() isMartin Pieuchot
2017-11-23We want `sb_flags' to be protected by the socket lock rather than theMartin Pieuchot
2017-11-04Make it possible for multiple threads to enter kqueue_scan() in parallel.Martin Pieuchot
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachFlorian Obser
2017-09-15Coverity complains that top == NULL was checked and further downAlexander Bluhm
2017-09-11Coverty complains that the return value of sblock() is not checkedAlexander Bluhm
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changeMartin Pieuchot
2017-08-22Make sogetopt(9) caller responsible for allocating an MT_SOOPTS mbuf.Martin Pieuchot
2017-08-10Move the solock()/sounlock() dance outside of sobind().Martin Pieuchot
2017-08-10The socket field so_proto can never be NULL. Remove the checks.Alexander Bluhm
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().Martin Pieuchot
2017-07-27Assert that the KERNEL_LOCK() is held prior to call csignal() andMartin Pieuchot
2017-07-24Extend the scope of the socket lock to protect `so_state' in connect(2).Martin Pieuchot
2017-07-20If pool_get() sleeps while allocating additional memory for socketAlexander Bluhm
2017-07-20Prepare filt_soread() to be locked. No functionnal change.Martin Pieuchot
2017-07-13Do not unlock the netlock in the goto out error path before it hasAlexander Bluhm
2017-07-08Revert grabbing the socket lock in kqueue filters.Martin Pieuchot
2017-07-04Always hold the socket lock when calling sblock().Martin Pieuchot
2017-07-03Protect `so_state', `so_error' and `so_qlen' with the socket lock inMartin Pieuchot
2017-06-27Add missing solock()/sounlock() dances around sbreserve().Martin Pieuchot
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot
2017-06-20In ddb print socket bit field so_state in hex to match SS_ defines.Alexander Bluhm
2017-06-20Convert sodidle() to timeout_set_proc(9), it needs a process contextMartin Pieuchot
2017-05-31new socketoption SO_ZEROIZE: zero out all mbufs sent over socketMarkus Friedl
2017-05-27Push the NET_LOCK down into PF_KEY so that it can be treated like PF_ROUTE.Claudio Jeker
2017-05-15so_splicelen needs to be protected by the socket lock. We are nowMartin Pieuchot
2017-05-15Enable the NET_LOCK(), take 3.Martin Pieuchot
2017-04-02Less convoluted code in soshutdown()Theo de Raadt
2017-03-17Revert the NET_LOCK() and bring back pf's contention lock for release.Martin Pieuchot
2017-03-13Move PRU_ATTACH out of the pr_usrreq functions into pr_attach.Claudio Jeker
2017-03-07Do not grab the NET_LOCK() for routing sockets operations.Martin Pieuchot
2017-03-03Prevent a recursion in the socket layer.Martin Pieuchot
2017-02-14Wrap the NET_LOCK() into a per-socket solock() that does nothing forMartin Pieuchot
2017-02-01In sogetopt, preallocate an mbuf to avoid using sleeping mallocs withDavid Hill
2017-01-27In sosend() the size of the control message for file descriptorAlexander Bluhm
2017-01-26Do not hold the netlock while pool_get() may sleep. It is notAlexander Bluhm
2017-01-25As NET_LOCK() is a read/write lock, it can sleep in sotask(). SoAlexander Bluhm
2017-01-25Enable the NET_LOCK(), take 2.Martin Pieuchot
2016-12-29Change NET_LOCK()/NET_UNLOCK() to be simple wrappers aroundMartin Pieuchot
2016-12-20Grab the NET_LOCK() in so{s,g}etopt(), pffasttimo() and pfslowtimo().Martin Pieuchot
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsMartin Pieuchot
2016-11-29m_free() and m_freem() test for NULL. Simplify callers which had their ownJonathan Gray
2016-11-23Some socket splicing tests on loopback hang with large mbufs andAlexander Bluhm
2016-11-22Enforce that pr_ctloutput is called at IPL_SOFTNET.Martin Pieuchot