mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
0b1e9738de
Replace spin_lock with rcu_read_lock when accessing lists to layers and cache. While packets are in flight rcu_read_lock should not be held, instead ref-counters are used in combination with RCU. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
19 lines
540 B
C
19 lines
540 B
C
/*
|
|
* Copyright (C) ST-Ericsson AB 2010
|
|
* Author: Sjur Brendeland/sjur.brandeland@stericsson.com
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
*/
|
|
|
|
#ifndef CFFRML_H_
|
|
#define CFFRML_H_
|
|
#include <net/caif/caif_layer.h>
|
|
|
|
struct cffrml;
|
|
struct cflayer *cffrml_create(u16 phyid, bool DoFCS);
|
|
void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up);
|
|
void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
|
|
void cffrml_put(struct cflayer *layr);
|
|
void cffrml_hold(struct cflayer *layr);
|
|
|
|
#endif /* CFFRML_H_ */
|