summaryrefslogtreecommitdiff
path: root/net/irda
AgeCommit message (Collapse)Author
2005-03-26[NET] make all protos partially use sk_protArnaldo Carvalho de Melo
sk_alloc_slab becomes proto_register, that receives a struct proto not necessarily completely filled, but at least with the proto name, owner and obj_size (aka proto specific sock size), with this we can remove the struct sock sk_owner and sk_slab, using sk->sk_prot->{owner,slab} instead. This patch also makes sk_set_owner not necessary anymore, as at sk_alloc time we have now access to the struct proto onwer and slab members, so we can bump the module refcount exactly at sock allocation time. Another nice "side effect" is that this patch removes the generic sk_cachep slab cache, making the only last two protocols that used it use just kmalloc, informing a struct proto obj_size equal to sizeof(struct sock). Ah, almost forgot that with this patch it is very easy to use a slab cache, as it is now created at proto_register time, and all protocols need to use proto_register, so its just a matter of switching the second parameter of proto_register to '1', heck, this can be done even at module load time with some small additional patch. Another optimization that will be possible in the future is to move the sk_protocol and sk_type struct sock members to struct proto, but this has to wait for all protocols to move completely to sk_prot. This changeset also introduces /proc/net/protocols, that lists the registered protocols details, some may seem excessive, but I'd like to keep them while working on further struct sock hierarchy work and also to realize which protocols are old ones, i.e. that still use struct proto_ops, etc, yeah, this is a bit of an exaggeration, as all protos still use struct proto_ops, but in time the idea is to move all to use sk->sk_prot and make the proto_ops infrastructure be shared among all protos, reducing one level of indirection. Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-22[IRDA]: Squash warnings introduced by DEBUG cleanups.David S. Miller
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-22[IRDA]: DEBUG macro fixesJean Tourrilhes
o [CRITICA] Eliminate all 'ASSERT(..., break;)' -> use goto; That would compile differenty with/without CONFIG_IRDA_DEBUG o [CORRECT] Add '()' to IRDA_DEBUG macro to avoid side effects o [CORRECT] Add 'do {} while(0)' to IRDA_ASSERT to avoid side effects o [FEATURE] Rename ASSERT to IRDA_ASSERT (namespace pollution) o [FEATURE] Rename MESSAGE to IRDA_MESSAGE (namespace pollution) o [FEATURE] Rename ERROR to IRDA_ERROR (namespace pollution) o [FEATURE] Disable IRDA_ASSERT when no CONFIG_IRDA_DEBUG -> footprint Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>'
2005-03-10[IRDA]: cleanup obsolete construct in IrCOMMJean Tourrilhes
cleanup some construct obsoleted by Linus's patch Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-10[IRDA]: arbitrary lsap connectJean Tourrilhes
<Original patch from Iavor Fetvadjie> allow IrDA socket to connect on arbitrary LSAPs Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-10[IRDA]: fix IrNET poll with empty disco logJean Tourrilhes
poll would improperly exit when the discovery log was empty Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-20[IRDA] stop using sk_protinfoArnaldo Carvalho de Melo
Required to introduce struct connection_sock. Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-14[PATCH] various Kconfig fixesGabor Egry
Here are some Kconfig fixes: - typo fixes - unused token removes (empty or duplicated 'help') - non ASCII characters replaces - e-mail address and URL format corrections Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-10[PATCH] make IRDA string tables conditional on CONFIG_IRDA_DEBUGWilliam Lee Irwin III
There are some string tables only used for debugging printk()'s in IRDA that trip warnings when CONFIG_IRDA_DEBUG is not set. This patch makes them conditional on CONFIG_IRDA_DEBUG to silence warnings. Signed-off-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-27[IRDA]: More staticization becomes possible in ircomm_ttp.cDavid S. Miller
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-12-27[IRDA]: Kill useless parens from return statements in irnet.hJesper Juhl
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-12-27[IRDA]: Staticize and remove unnecessary exports.Adrian Bunk
The patch below contains the following possible cleanups: - make some needlessly global code static - remove the following unused global functions: - discovery.c: irlmp_find_device - ircomm/ircomm_param.c: ircomm_param_flush - irda_device.c: irda_device_set_dtr_rts - irda_device.c: irda_device_change_speed - irda_device.c: irda_device_set_mode - iriap.c: iriap_getinfobasedetails_request - iriap.c: iriap_getinfobasedetails_confirm - iriap.c: iriap_getobjects_request - iriap.c: iriap_getobjects_confirm - iriap.c: iriap_getvalue - irlan_client.c: irlan_client_reconnect_data_channel - irlap_frame.c: irlap_send_frmr_frame - irlmp.c: irlmp_status_request - remove the follwong unused global variables: - irnet/irnet_ppp.c: irnet_ppp_ops - irsysctl.c: sysctl_compression - qos.c: #ifndef CONFIG_IRDA_DYNAMIC_WINDOW irlap_requested_line_capacity Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-01[IRDA]: Remove an unused function in net/irda/qos.cAdrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-25Merge pobox.com:/garz/repo/linux-2.6Jeff Garzik
into pobox.com:/garz/repo/netdev-2.6/misc
2004-10-21MergeLinus Torvalds
2004-10-21[IRDA]: Debug module paramJean Tourrilhes
<Patch from Stephen Hemminger> o [CORRECT] irda 2.6 - fix module info The module parameter info for irda is incorrect. The debug parameter is named debug, the variable is irda_debug. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[IRDA]: IrCOMM IAS object fixJean Tourrilhes
o [CORRECT] Restore properly the IAS object when IrCOMM disconnect. Allow 'pppd passive persist' to work properly. Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[IRDA]: Adaptive discovery query timerJean Tourrilhes
o [FEATURE] Adapt to the rate of the peer discovery (passive discovery) o [FEATURE] Add extra safety margin in passive discovery Allow to interoperate properly with device performing slow discovery Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[IRDA]: IAS safety commentsJean Tourrilhes
o [FEATURE] Make optional the del of IAS object when del IAS attrib o [FEATURE] Clarify when/why it's safe to to the above Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[IRDA]: IrNET char dev aliasJean Tourrilhes
o [FEATURE] Add module alias for IrNET char dev Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[IRDA]: Fix lmp_lsap_inuse()Jean Tourrilhes
o [CRITICA] Fix locking in error path in IrLMP (Stanford checker) o [CORRECT] Don't reuse unconnected LSAPs (listening sockets) o [CORRECT] Make sure the LSAP we are picking has just not been grabed o [CORRECT] Wrap around the LSAP space properly back to 0x10 Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-20Update tty layer to not mix kernel and user pointers.Linus Torvalds
Instead, tty_io.c will always copy user space data to kernel space, leaving the drivers to worry only about normal kernel buffers. No more "from_user" flag, and having the user copy in each driver. This cleans up the code and also fixes a number of locking bugs.
2004-10-19[PATCH] #include <asm/bitops.h> -> #include <linux/bitops.h>Adrian Bunk
There's no reason to directly #include <asm/bitops.h> since it's available on all architectures and also included by #include <linux/bitops.h>. This patch changes #include <asm/bitops.h> to #include <linux/bitops.h>. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-28[PATCH] sparse: fix warnings in net/irda/*Andrew Morton
From: "Mika Kukkonen" <mika@osdl.org> CHECK net/irda/irlan/irlan_client.c net/irda/irlan/irlan_client.c:237:14: warning: assignment expression in conditional Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-26[PATCH] mostly remove module_parm()Rusty Russell
MODULE_PARM() was marked obsolete. Remove it from everything except drivers/ and arch/. Naturally, such a widespread change may introduce bugs for some of the non-trivial cases, and where in doubt I used "0" as permissions arg (ie. won't appear in sysfs). Individual authors should think about whether that would be useful. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-23Merge bk://kernel.bkbits.net/davem/net-2.6Linus Torvalds
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22[PATCH] err2-6: hashbin_remove_this() locking fixAndrew Morton
Fix locking error identified by the Stanford locking checker. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-15[IRDA]: Trivial optimization in inetdev handling.Herbert Xu
No need to hold onto the idev. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-12[IPV4]: Move inetdev/ifa locking over to RCU.David S. Miller
Multicast ipv4 address handling still uses rwlock and spinlock synchronization. Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-07Make sysctl pass the pos pointer around properly.Linus Torvalds
Nobody ever fixed the big FIXME in sysctl - but we really need to pass around the proper "loff_t *" to all the sysctl functions if we want them to be well-behaved wrt the file pointer position. This is all preparation for making direct f_pos accesses go away.
2004-07-26[PATCH] size_t portability fixesAlexander Viro
A lot of places assumed that size_t == unsigned; on 64bit boxen that is not true. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-12[PATCH] sparse: net/* NULL noise removalAlexander Viro
2004-07-11Merge nuts.davemloft.net:/disk1/BK/network-2.6David S. Miller
into nuts.davemloft.net:/disk1/BK/net-2.6
2004-07-10[PATCH] crc16 kconfig touchupsAndrew Morton
drivers/net/hamradio/Kconfig:116:warning: 'select' used by config symbol 'BAYCOM_SER_FDX' refer to undefined symbol 'CRC16' drivers/net/hamradio/Kconfig:136:warning: 'select' used by config symbol 'BAYCOM_SER_HDX' refer to undefined symbol 'CRC16' drivers/net/hamradio/Kconfig:154:warning: 'select' used by config symbol 'BAYCOM_PAR' refer to undefined symbol 'CRC16' drivers/net/hamradio/Kconfig:169:warning: 'select' used by config symbol 'BAYCOM_EPP' refer to undefined symbol 'CRC16' net/irda/Kconfig:8:warning: 'select' used by config symbol 'IRDA' refer to undefined symbol 'CRC16' drivers/net/Kconfig:1749:warning: 'select' used by config symbol 'VIA_VELOCITY' refer to undefined symbol 'CRC16' drivers/net/Kconfig:2465:warning: 'select' used by config symbol 'PPP_ASYNC' refer to undefined symbol 'CRC16' drivers/isdn/hisax/Kconfig:403:warning: 'select' used by config symbol 'HISAX_ST5481' refer to undefined symbol 'CRC16' drivers/isdn/hisax/Kconfig:7:warning: 'select' used by config symbol 'ISDN_DRV_HISAX' refer to undefined symbol 'CRC16' drivers/isdn/tpam/Kconfig:7:warning: 'select' used by config symbol 'ISDN_DRV_TPAM' refer to undefined symbol 'CRC16' Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-07[NET]: Cleanup mis-usage of seq_release_privateHirofumi Ogawa
These doesn't allocate memory and doesn't use seq->private. However kfree() ignores NULL, so these are not the problem. This patch just cleans these up. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: David S. Miller <davem@redhat.com>
2004-06-26[PATCH] crc: use it in IRDA driversAndrey Panin
This patch makes IRDA subsystem use common crc16 code. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-18[IRDA]: Remove usage of isa_virt_to_bus()William Lee Irwin III
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@redhat.com>
2004-06-05[NET]: Fix compat bug in recvmsg/sendmsg wrt MSG_CMSG_COMPAT.Olaf Hering
2004-06-03[PATCH] sparse: irda annotationAlexander Viro
2004-05-30[PATCH] sparse: dev_ioctl() callersAlexander Viro
dev_ioctl() has a __user pointer argument; however, its declaration lacks that and callers are also wrong. Declaration fixed, callers updated.
2004-05-29Add __user annotations to sock_get_timestamp()Linus Torvalds
2004-05-29[PATCH] sparse: ->[gs]etsockopt() annotationAlexander Viro
optval (and in case of getsockopt - optlen) made __user, changes percolated down into the instances.
2004-05-24[PATCH] Fix various memory leaksAndrew Morton
From: Yury Umanets <torque@ukrpost.net> Thanks to smatch I have found few memory leaks and other related issues.
2004-05-14[PATCH] MSEC_TO_JIFFIES to msec_to_jiffiesAndrew Morton
Switch all users of MSEC[S]_TO_JIFFIES and JIFFIES_TO_MSEC[S] over to use jiffies_to_msecs() and msecs_to_jiffies(). Withdraw MSECS_TO_JIFFIES() and JIFFIES_TO_MSECS() from the kernel API.
2004-04-26[IRDA]: Export irda_task_delete.Stephen Hemminger
2004-04-16[IRDA]: Replace sleep_on with wait_eventJean Tourrilhes
From Stephen Hemminger.
2004-04-16[IRDA]: irlan_eth cleanup.Jean Tourrilhes
Use IrTTP flow control to stop/wake netif From Stephen Hemminger. Change irlan_eth device initialization: *bug* address never set in DIRECT mode because access not set in alloc_netdev -> irlan_eth_setup path + make eth_XXX handles static and provide alloc_irlandev hook + use netdev_priv (and get rid of truly impossible ASSERT's) + use skb_queue_purge
2004-04-16[IRDA]: irlan_common cleanup.Jean Tourrilhes
Minor type changes in irlan_common for clarity: - use const - init and exit can be static - use skb_queue_purge to flush queue - get rid of noisy old comment From Stephen Hemminger.
2004-04-16[IRDA]: Rename handle_filter_request to irlan_filter_request.Jean Tourrilhes
From Stephen Hemminger.
2004-04-16[IRDA]: Fix namespace pollution of print_ret_code.Jean Tourrilhes
From Stephen Hemminger.