From dbb1414312a2fede9a42ac63eb58060cbe024f79 Mon Sep 17 00:00:00 2001 From: emax Date: Fri, 1 Aug 2008 00:16:40 +0000 Subject: Increase maximum input queue size limit for raw Bluetooth HCI sockets. MFC after: 3 days --- sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/netgraph') diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c index fc951c4..4100875 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c @@ -107,7 +107,6 @@ static struct ng_type typestruct = { }; /* Globals */ -extern int ifqmaxlen; static u_int32_t ng_btsocket_hci_raw_debug_level; static u_int32_t ng_btsocket_hci_raw_ioctl_timeout; static node_p ng_btsocket_hci_raw_node; @@ -760,7 +759,7 @@ ng_btsocket_hci_raw_init(void) } /* Create input queue */ - NG_BT_ITEMQ_INIT(&ng_btsocket_hci_raw_queue, ifqmaxlen); + NG_BT_ITEMQ_INIT(&ng_btsocket_hci_raw_queue, 300); mtx_init(&ng_btsocket_hci_raw_queue_mtx, "btsocks_hci_raw_queue_mtx", NULL, MTX_DEF); TASK_INIT(&ng_btsocket_hci_raw_task, 0, -- cgit v1.1