/* Locking: the function must me called withing a rcu_read_lock region  */
void mesh_path_flush_pending(struct mesh_path *mpath)
/* Locking: the function must me called withing a rcu_read_lock region  */
void mesh_path_flush_pending(struct mesh_path *mpath)
{
	struct sk_buff *skb;
	while ((skb = skb_dequeue(&mpath->frame_queue)) &&
			(mpath->flags & MESH_PATH_ACTIVE))
		mesh_path_discard_frame(skb, mpath->sdata);
}