Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6.c
Show First 20 Lines • Show All 2,043 Lines • ▼ Show 20 Lines | |||||
#define IN6_LLTBL_DEFAULT_HSIZE 32 | #define IN6_LLTBL_DEFAULT_HSIZE 32 | ||||
#define IN6_LLTBL_HASH(k, h) \ | #define IN6_LLTBL_HASH(k, h) \ | ||||
(((((((k >> 8) ^ k) >> 8) ^ k) >> 8) ^ k) & ((h) - 1)) | (((((((k >> 8) ^ k) >> 8) ^ k) >> 8) ^ k) & ((h) - 1)) | ||||
/* | /* | ||||
* Do actual deallocation of @lle. | * Do actual deallocation of @lle. | ||||
*/ | */ | ||||
static void | static void | ||||
in6_lltable_destroy_lle_unlocked(epoch_context_t ctx) | in6_lltable_destroy_lle_unlocked(epoch_context_t *ctx) | ||||
{ | { | ||||
struct llentry *lle; | struct llentry *lle; | ||||
lle = __containerof(ctx, struct llentry, lle_epoch_ctx); | lle = __containerof(ctx, struct llentry, lle_epoch_ctx); | ||||
LLE_LOCK_DESTROY(lle); | LLE_LOCK_DESTROY(lle); | ||||
LLE_REQ_DESTROY(lle); | LLE_REQ_DESTROY(lle); | ||||
free(lle, M_LLTABLE); | free(lle, M_LLTABLE); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines |