mac80211: clean up mpath_move_to_queue()
Use skb_queue_walk_safe instead, and fix a few issues: - didn't free old skbs on moving - didn't react to failed skb alloc - needlessly held a local pointer to the destination frame queue - didn't check destination queue length before adding skb Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
b22bd5221c
commit
4bd4c2dd8e
@@ -17,8 +17,6 @@
|
||||
#define MAX_METRIC 0xffffffff
|
||||
#define ARITH_SHIFT 8
|
||||
|
||||
/* Number of frames buffered per destination for unresolved destinations */
|
||||
#define MESH_FRAME_QUEUE_LEN 10
|
||||
#define MAX_PREQ_QUEUE_LEN 64
|
||||
|
||||
/* Destination only */
|
||||
|
Reference in New Issue
Block a user