/********************************************************************* * * Filename: irqueue.h * Version: 0.3 * Description: General queue implementation * Status: Experimental. * Author: Dag Brattli * Created at: Tue Jun 9 13:26:50 1998 * Modified at: Thu Oct 7 13:25:16 1999 * Modified by: Dag Brattli * * Copyright (C) 1998-1999, Aage Kvalnes * Copyright (c) 1998, Dag Brattli * All Rights Reserved. * * This code is taken from the Vortex Operating System written by Aage * Kvalnes and has been ported to Linux and Linux/IR by Dag Brattli * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * Neither Dag Brattli nor University of Tromsø admit liability nor * provide warranty for any of this software. This material is * provided "AS-IS" and at no charge. * ********************************************************************/ #include #include #ifndef IRDA_QUEUE_H #define IRDA_QUEUE_H #define NAME_SIZE 32 /* * Hash types (some flags can be xored) * See comments in irqueue.c for which one to use... */ #define HB_NOLOCK 0 /* No concurent access prevention */ #define HB_LOCK 1 /* Prevent concurent write with global lock */ /* * Hash defines */ #define HASHBIN_SIZE 8 #define HASHBIN_MASK 0x7 #ifndef IRDA_ALIGN #define IRDA_ALIGN __attribute__((aligned)) #endif #define Q_NULL { NULL, NULL, "", 0 } typedef void (*FREE_FUNC)(void *arg); struct irda_queue { struct irda_queue *q_next; struct irda_queue *q_prev; char q_name[NAME_SIZE]; long q_hash; /* Must be able to cast a (void *) */ }; typedef struct irda_queue irda_queue_t; typedef struct hashbin_t { __u32 magic; int hb_type; int hb_size; spinlock_t hb_spinlock; /* HB_LOCK - Can be used by the user */ irda_queue_t* hb_queue[HASHBIN_SIZE] IRDA_ALIGN; irda_queue_t* hb_current; } hashbin_t; hashbin_t *hashbin_new(int type); int hashbin_delete(hashbin_t* hashbin, FREE_FUNC func); int hashbin_clear(hashbin_t* hashbin, FREE_FUNC free_func); void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv, const char* name); void* hashbin_remove(hashbin_t* hashbin, long hashv, const char* name); void* hashbin_remove_first(hashbin_t *hashbin); void* hashbin_remove_this( hashbin_t* hashbin, irda_queue_t* entry); void* hashbin_find(hashbin_t* hashbin, long hashv, const char* name); void* hashbin_lock_find(hashbin_t* hashbin, long hashv, const char* name); void* hashbin_find_next(hashbin_t* hashbin, long hashv, const char* name, void ** pnext); irda_queue_t *hashbin_get_first(hashbin_t *hashbin); irda_queue_t *hashbin_get_next(hashbin_t *hashbin); #define HASHBIN_GET_SIZE(hashbin) hashbin->hb_size #endif a>/usb3503.c
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2017-01-30 16:19:02 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-30 16:42:09 -0500
commit040587af31228d82c52267f717c9fcdb65f36335 (patch)
treeb681c1594f967396fcf3ce80f17444183bb37900 /drivers/usb/misc/usb3503.c
parent0d29ed28da63dd893395c343c7e78b078de93ceb (diff)
net/sched: cls_flower: Correct matching on ICMPv6 code
When matching on the ICMPv6 code ICMPV6_CODE rather than ICMPV4_CODE attributes should be used. This corrects what appears to be a typo. Sample usage: tc qdisc add dev eth0 ingress tc filter add dev eth0 protocol ipv6 parent ffff: flower \ indev eth0 ip_proto icmpv6 type 128 code 0 action drop Without this change the code parameter above is effectively ignored. Fixes: 7b684884fbfa ("net/sched: cls_flower: Support matching on ICMP type and code") Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/misc/usb3503.c')
s/gss_krb5_seal.c?id=d546530e569463a7f0a4ead482d277b5ef42a3aa'>plain
-rw-r--r--gss_krb5_seqnum.c4645logplain
-rw-r--r--gss_krb5_unseal.c6813logplain
-rw-r--r--gss_krb5_wrap.c18005logplain
-rw-r--r--gss_mech_switch.c12603logplain
-rw-r--r--gss_rpc_upcall.c9707logplain