From 9490f7792ea055f8deb63b21074eb1e994861753 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 18 Apr 2008 09:16:15 +0000 Subject: extend the if_ethersubr.c crc functions to support updating a running crc in addition to the existing "oneshot" mode and use them to replace ieee80211_crc_update() with the new ether_crc32_le_update(). Saves 1k kernel bss + some code. Mark the new ether_crc32_[lb]e_update functions as __pure for a ~25x speedup (on my i386 at least). feedback and ok damien@ --- sys/net80211/ieee80211_crypto.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/net80211/ieee80211_crypto.h') diff --git a/sys/net80211/ieee80211_crypto.h b/sys/net80211/ieee80211_crypto.h index 3447da8c0f5..d4e956b64d5 100644 --- a/sys/net80211/ieee80211_crypto.h +++ b/sys/net80211/ieee80211_crypto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_crypto.h,v 1.10 2008/04/16 18:32:15 damien Exp $ */ +/* $OpenBSD: ieee80211_crypto.h,v 1.11 2008/04/18 09:16:14 djm Exp $ */ /* $NetBSD: ieee80211_crypto.h,v 1.2 2003/09/14 01:14:55 dyoung Exp $ */ /*- @@ -100,8 +100,6 @@ extern struct mbuf *ieee80211_encrypt(struct ieee80211com *, struct mbuf *, extern struct mbuf *ieee80211_decrypt(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); -u_int32_t ieee80211_crc_update(u_int32_t, const u_int8_t *, int); - int ieee80211_set_key(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_key *); void ieee80211_delete_key(struct ieee80211com *, struct ieee80211_node *, -- cgit v1.2.3