Use kernel crc32 for BlueZ BNEP
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Use kernel crc32 for BlueZ BNEP
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
===================================================================
[email protected], 2002-10-06 13:06:09+02:00, [email protected]
Use kernel crc32 for BlueZ BNEP
b/lib/Makefile | 1 b/net/bluetooth/bnep/Makefile | 2 - b/net/bluetooth/bnep/Makefile.lib | 1 b/net/bluetooth/bnep/bnep.h | 5 +-- b/net/bluetooth/bnep/core.c | 4 -- net/bluetooth/bnep/crc32.c | 59 -------------------------------------- net/bluetooth/bnep/crc32.h | 10 ------ 7 files changed, 5 insertions(+), 77 deletions(-)
lib/Makefile +1 -0
@@ -29,5 +29,6 @@ include $(TOPDIR)/drivers/net/Makefile.lib include $(TOPDIR)/drivers/usb/class/Makefile.lib include $(TOPDIR)/fs/Makefile.lib +include $(TOPDIR)/net/bluetooth/bnep/Makefile.lib include $(TOPDIR)/Rules.make
net/bluetooth/bnep/Makefile +1 -1
@@ -4,7 +4,7 @@ O_TARGET := bnep.o -obj-y := core.o sock.o netdev.o crc32.o +obj-y := core.o sock.o netdev.o obj-m += $(O_TARGET) include $(TOPDIR)/Rules.make
net/bluetooth/bnep/Makefile.lib new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_BLUEZ_BNEP) += crc32.o
net/bluetooth/bnep/bnep.h +2 -3
@@ -24,10 +24,9 @@#define _BNEP_H#include <linux/types.h> +#include <linux/crc32.h> #include <net/bluetooth/bluetooth.h> -#include "crc32.h" -// Limits #define BNEP_MAX_PROTO_FILTERS 5#define BNEP_MAX_MULTICAST_FILTERS 20
@@ -179,7 +178,7 @@static inline int bnep_mc_hash (__u8 *addr) { -return (bnep_crc32 (~0 , addr,ETH_ALEN ) >>26 ); +return (crc32_be (~0 , addr,ETH_ALEN ) >>26 ); }#endif
net/bluetooth/bnep/core.c +0 -4
@@ -685,16 +685,12 @@bnep_sock_init (); -bnep_crc32_init (); -return 0 ; } static void __exit bnep_cleanup_module(void) {bnep_sock_cleanup (); - -bnep_crc32_cleanup (); }module_init (bnep_init_module);
net/bluetooth/bnep/crc32.c deleted +0 -59
59 lines not on this page · raw message
net/bluetooth/bnep/crc32.h deleted +0 -10
@@ -1,10 +0,0 @@ -/* -* crc32.h -* See crc32.c for license and changes -* -* FIXME: Remove in 2.5 -*/ - -int bnep_crc32_init (void ); -void bnep_crc32_cleanup (void ); -u32 bnep_crc32 (u32 crc,unsigned char const *p,size_t len);
===================================================================
This BitKeeper patch contains the following changesets:
+
## Wrapped with gzip_uu ##
begin 664 bkpatch12876 M'XL(%:H#T``]6874_;2!2&KS._8B1Z:*QY]L?NT$4BTJ"X@MJU5OD#T> MDQ#'1HY#:67QVW=LDRPD=MA$=J,#'FS9GW.3[GC#?@Q42E;F?LI5)%8-^ M22:9VQDD43;VXMA(TBM]\CQ)]$ESD(R5.?N3Z0^SD5(W*C7]:*I^=8G!@;[V MS,OD-ZJ=.)VL$'G9[*?-\KMG!]\OCC^=YKP?W!UY\I?Y4&>SU0):DMUX4 M3':];!EL9&E7CP9J\PS9#+.YY?F!"&BOSBV*.(BQP(Q*Y<XP-AC66(,%LP M<*VN_=WQ-+I*O5ME;,9)K+861#!"0LL@3'/,]'^!/L2&Q3E$Q,3(1)BZB+A M(F<;$1<A6%FT^]@:N&W!+@)[\+^-?A_(@L<J316$92II2&20KWM-'?X=[) MP1GX"BE%M@/._K41=%N^$>CMZ97>CW=NA1CFS*E992373X>F'ZL;LXS" MD#/O&*'4(3AG@CHXMT)A.8ZVD6'$J;?2K'QOF'VM$B90D<I48!KZE^Z#\/VB MQIP2UN_U)Q$A.&L7[6Y6DYY3FP;(10P3PHA+4^UCW9POZBQ&"U%EE-X^W)F M1$/?_,,;J78J<?)X5G%UAKY&$@;"21)7POE,RB*V-=DID'0G2.V=AN:MNB MR-PW;EL\][&EB@Y$Y)[$J^FW$!U'AKB3A5:*QE#+W?);LSUG62%"MDLH$Q* M'M)0O%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