| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- reorder structures fields (XX_refs) a bit to group fields modified
same time together. According to my tests it gives up to 10%
SMP performance benefit on real workload due to reduced inter-CPU
cache trashing.
- change q_flags from long to int as long is not really needed there and
it's usage with atomics is argued by some people.
- move NGF_WORKQ flag into the separate field q_flags2 as it protected by
queue mutex instead of node writer protection used by the rest of flags.
- move nd_work queue entry to ng_queue structure to which it is more
related and make it STAILQ instead of TAILQ as now it is a classic FIFO.
- remove q_node pointer from ng_queue structure as it is not really needed.
- reimplement item queue using STAILQ instead of own equal implementation.
As soon as BT subsystem has own item queues using ng_item.el_next update
it also.
- change depth field in ng_item from uintptr_t to u_int. It was made
uintptr_t to keep ABI compatibility.
Reviewed by: julian, emax
Tested with: Netperf cluster
Notes:
svn path=/head/; revision=178228
|
| |
|
|
|
|
|
|
| |
Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
MFC after: 3 days
Notes:
svn path=/head/; revision=173231
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
zero (0). Actual RFCOMM channel will be assigned after listen(2)
call is done on a RFCOMM socket bound to a ''wildcard'' RFCOMM
channel zero (0).
Address locking issues in ng_btsocket_rfcomm_bind()
Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
MFC after: 1 week
Notes:
svn path=/head/; revision=173151
|
| |
|
|
|
|
|
|
|
|
|
| |
listen(2) is called on improperly bound socket.
Suggested by: Iain Hibbert
Approved by: re (kensmith)
MFC after: 3 days
Notes:
svn path=/head/; revision=171937
|
| |
|
|
|
|
|
|
|
|
|
| |
Reconnect ng_h(4) back to the build.
Reviewed by: kensmith
Approved by: re (kensmith)
MFC after: 1 month
Notes:
svn path=/head/; revision=171818
|
| |
|
|
|
|
|
| |
Approved by: re (rwatson)
Notes:
svn path=/head/; revision=171345
|
| |
|
|
|
|
|
| |
Approved by: re@
Notes:
svn path=/head/; revision=170999
|
| |
|
|
|
|
|
|
|
|
|
| |
L2CAP socket. This is to avoid LOR with sx(9) lock in sblock()
called from sosend_generic().
Approved by: re (kensmith)
MFC after: 1 week
Notes:
svn path=/head/; revision=170972
|
| |
|
|
|
|
|
|
| |
Reported by: tinderbox
Approved by: re (mux)
Notes:
svn path=/head/; revision=170952
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170933
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170662
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170641
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170617
|
| |
|
|
|
|
|
| |
usb_port.h. They aren't needed, and are a legacy of this code's past.
Notes:
svn path=/head/; revision=170612
|
| |
|
|
|
|
|
| |
Kill devinfo stuff.
Notes:
svn path=/head/; revision=170456
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sysctl_handle_int is not sizeof the int type you want to export.
The type must always be an int or an unsigned int.
Remove the instances where a sizeof(variable) is passed to stop
people accidently cut and pasting these examples.
In a few places this was sysctl_handle_int was being used on 64 bit
types, which would truncate the value to be exported. In these
cases use sysctl_handle_quad to export them and change the format
to Q so that sysctl(1) can still print them.
Notes:
svn path=/head/; revision=170289
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170035
|
| |
|
|
|
|
|
|
|
|
| |
Also add a comment, explaining why return value is not being checked.
Requested by: netchild
MFC after: 1 week
Notes:
svn path=/head/; revision=168009
|
| |
|
|
| |
Notes:
svn path=/head/; revision=167907
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bus_setup_intr()
o add an int return code to all fast handlers
o retire INTR_FAST/IH_FAST
For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current
Reviewed by: many
Approved by: re@
Notes:
svn path=/head/; revision=166901
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
specific privilege names to a broad range of privileges. These may
require some future tweaking.
Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project
Discussed on: arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
Alex Lyashkov <umka at sevcity dot net>,
Skip Ford <skip dot ford at verizon dot net>,
Antoine Brodin <antoine dot brodin at laposte dot net>
Notes:
svn path=/head/; revision=164033
|
| |
|
|
|
|
|
| |
s/USBBASEDEVICE/device_t/g
Notes:
svn path=/head/; revision=162134
|
| |
|
|
| |
Notes:
svn path=/head/; revision=162103
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix a couple of LORs and panics;
- Temporarily remove the code that tries to cleanup sockets that stuck
on accepting queues (both complete and incomplete). I'm taking an ostrich
approach here until I find a better way to deal with sockets that were
disconnected before accepting (i.e. while socket was on complete or
incomplete accept queue).
Notes:
svn path=/head/; revision=161623
|
| |
|
|
|
|
|
|
|
|
|
| |
on sparc64.
Reported by: Andrew Belashov <bel at orel dot ru>
Tested by: Andrew Belashov <bel at orel dot ru>
MFC after: 3 days
Notes:
svn path=/head/; revision=161579
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
soreceive(), and sopoll(), which are wrappers for pru_sosend,
pru_soreceive, and pru_sopoll, and are now used univerally by socket
consumers rather than either directly invoking the old so*() functions
or directly invoking the protocol switch method (about an even split
prior to this commit).
This completes an architectural change that was begun in 1996 to permit
protocols to provide substitute implementations, as now used by UDP.
Consumers now uniformly invoke sosend(), soreceive(), and sopoll() to
perform these operations on sockets -- in particular, distributed file
systems and socket system calls.
Architectural head nod: sam, gnn, wollman
Notes:
svn path=/head/; revision=160619
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function, pru_close, to notify protocols that the file descriptor or
other consumer of a socket is closing the socket. pru_abort is now a
notification of close also, and no longer detaches. pru_detach is no
longer used to notify of close, and will be called during socket
tear-down by sofree() when all references to a socket evaporate after
an earlier call to abort or close the socket. This means detach is now
an unconditional teardown of a socket, whereas previously sockets could
persist after detach of the protocol retained a reference.
This faciliates sharing mutexes between layers of the network stack as
the mutex is required during the checking and removal of references at
the head of sofree(). With this change, pru_detach can now assume that
the mutex will no longer be required by the socket layer after
completion, whereas before this was not necessarily true.
Reviewed by: gnn
Notes:
svn path=/head/; revision=160549
|
| |
|
|
|
|
|
|
| |
Submitted by: marius
MFC after: 1 week
Notes:
svn path=/head/; revision=160114
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
use this ioctl to obtain the list of HCI nodes. User-space application
is expected to preallocate 'ng_btsocket_hci_raw_node_list_names' structure
and set limit in 'num_nodes' field. The 'nodes' field should be allocated
as well and it should have space for at least 'num_nodes' elements.
The SIOC_HCI_RAW_NODE_LIST_NAMES should be issued on bound raw HCI socket.
It does not really really matter what HCI name the socket is bound to, as
long as it is not empty.
MFC after: 1 week
Notes:
svn path=/head/; revision=158672
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rather than an error. Detaches do not "fail", they other occur or
the protocol flags SS_PROTOREF to take ownership of the socket.
soclose() no longer looks at so_pcb to see if it's NULL, relying
entirely on the protocol to decide whether it's time to free the
socket or not using SS_PROTOREF. so_pcb is now entirely owned and
managed by the protocol code. Likewise, no longer test so_pcb in
other socket functions, such as soreceive(), which have no business
digging into protocol internals.
Protocol detach routines no longer try to free the socket on detach,
this is performed in the socket code if the protocol permits it.
In rts_detach(), no longer test for rp != NULL in detach, and
likewise in other protocols that don't permit a NULL so_pcb, reduce
the incidence of testing for it during detach.
netinet and netinet6 are not fully updated to this change, which
will be in an upcoming commit. In their current state they may leak
memory or panic.
MFC after: 3 months
Notes:
svn path=/head/; revision=157370
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
than an int, as an error here is not meaningful. Modify soabort() to
unconditionally free the socket on the return of pru_abort(), and
modify most protocols to no longer conditionally free the socket,
since the caller will do this.
This commit likely leaves parts of netinet and netinet6 in a situation
where they may panic or leak memory, as they have not are not fully
updated by this commit. This will be corrected shortly in followup
commits to these components.
MFC after: 3 months
Notes:
svn path=/head/; revision=157366
|
| |
|
|
| |
Notes:
svn path=/head/; revision=153084
|
| |
|
|
|
|
|
| |
so they are easier to follow for the human being.
Notes:
svn path=/head/; revision=152242
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
following the protocol pru_listen() call to solisten_proto(), so
that it occurs under the socket lock acquisition that also sets
SO_ACCEPTCONN. This requires passing the new backlog parameter
to the protocol, which also allows the protocol to be aware of
changes in queue limit should it wish to do something about the
new queue limit. This continues a move towards the socket layer
acting as a library for the protocol.
Bump __FreeBSD_version due to a change in the in-kernel protocol
interface. This change has been tested with IPv4 and UNIX domain
sockets, but not other protocols.
Notes:
svn path=/head/; revision=151888
|
| |
|
|
|
|
|
|
| |
Pointed by: jhb
Reviewed by: imp, jhb
Notes:
svn path=/head/; revision=151726
|
| |
|
|
|
|
|
|
| |
intr_event_remove_handler().
- Remove tty: prefix from a couple of swi handler names.
Notes:
svn path=/head/; revision=151700
|
| |
|
|
| |
Notes:
svn path=/head/; revision=151689
|
| |
|
|
| |
Notes:
svn path=/head/; revision=151387
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150482
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150457
|
| |
|
|
|
|
|
|
| |
"PC Card" is the correct spelling. "PC-Card" isn't, per the PCMCIA
standard.
Notes:
svn path=/head/; revision=150456
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
panic. The panic happens when outgoing L2CAP connection descriptor is
deleted with the L2CAP command(s) pending in the queue. In this case when
the last L2CAP command is deleted (due to cleanup) and reference counter
for the L2CAP connection goes down to zero the auto disconnect timeout
is incorrectly set. pjd gets credit for tracking this down and committing
bandaid.
Reported by: Jonatan B <onatan at gmail dot com>
MFC after: 3 days
Notes:
svn path=/head/; revision=149679
|
| |
|
|
|
|
|
|
|
| |
strange looking too) LORs I have seen on my system. Pointy hat to goes to me.
MFC after: 1 day
Notes:
svn path=/head/; revision=149382
|
| |
|
|
|
|
|
|
| |
Reported by: Jonatan B <onatan@gmail.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=149356
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=149355
|
| |
|
|
|
|
|
|
| |
Submitted by: Oliver < urnenfel at tiscali dot es >
MFC after: 1 day
Notes:
svn path=/head/; revision=148518
|
| |
|
|
|
|
|
| |
MFC after: 1 month
Notes:
svn path=/head/; revision=148487
|
| |
|
|
|
|
|
|
|
|
|
| |
It does not work with ng_ubt(4) and require special driver and firmware.
Obtained from: Marcel Holtmann < marcel at holtmann dot org >
Submitted by: Rainer Goellner < rainer at jabbe dot de >
MFC after: 3 days
Notes:
svn path=/head/; revision=148146
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there are at least two versions of the adapter. Version 1 (product ID 0x2200)
of the adapter does not work with ng_ubt(4) and require special driver and
firmware. Version 2 (product ID 0x3800) seems to work just fine, except it
does not have bDeviceClass, bDeviceSubClass and bDeviceProtocol set to required
(by specification) values. This change forces ng_ubt(4) to attach to the
version 2 adapter.
Obtained from: Marcel Holtmann <marcel at holtmann dot org>
Submitted by: Rainer Goellner <rainer at jabbe dot de>
Notes:
svn path=/head/; revision=148124
|
| |
|
|
|
|
|
|
|
|
|
| |
Provide a backwards compatible way to have the extra macro by defining
PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that
want/need to have the same driver on 5 and 6 with pccard attachments.
Approved by: re (dwhite)
Notes:
svn path=/head/; revision=147580
|