batman-adv: rename batadv_recvlist_node struct to make clear it is used by vis
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
This commit is contained in:
Родитель
015b4ae4a3
Коммит
28500f07ab
|
@ -453,7 +453,7 @@ struct batadv_vis_info_entry {
|
||||||
uint8_t quality; /* quality = 0 client */
|
uint8_t quality; /* quality = 0 client */
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct batadv_recvlist_node {
|
struct batadv_vis_recvlist_node {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
uint8_t mac[ETH_ALEN];
|
uint8_t mac[ETH_ALEN];
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,7 +36,7 @@ static void batadv_free_info(struct kref *ref)
|
||||||
{
|
{
|
||||||
struct batadv_vis_info *info;
|
struct batadv_vis_info *info;
|
||||||
struct batadv_priv *bat_priv;
|
struct batadv_priv *bat_priv;
|
||||||
struct batadv_recvlist_node *entry, *tmp;
|
struct batadv_vis_recvlist_node *entry, *tmp;
|
||||||
|
|
||||||
info = container_of(ref, struct batadv_vis_info, refcount);
|
info = container_of(ref, struct batadv_vis_info, refcount);
|
||||||
bat_priv = info->bat_priv;
|
bat_priv = info->bat_priv;
|
||||||
|
@ -305,7 +305,7 @@ static void batadv_send_list_del(struct batadv_vis_info *info)
|
||||||
static void batadv_recv_list_add(struct batadv_priv *bat_priv,
|
static void batadv_recv_list_add(struct batadv_priv *bat_priv,
|
||||||
struct list_head *recv_list, const char *mac)
|
struct list_head *recv_list, const char *mac)
|
||||||
{
|
{
|
||||||
struct batadv_recvlist_node *entry;
|
struct batadv_vis_recvlist_node *entry;
|
||||||
|
|
||||||
entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
|
entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
|
||||||
if (!entry)
|
if (!entry)
|
||||||
|
@ -322,7 +322,7 @@ static int batadv_recv_list_is_in(struct batadv_priv *bat_priv,
|
||||||
const struct list_head *recv_list,
|
const struct list_head *recv_list,
|
||||||
const char *mac)
|
const char *mac)
|
||||||
{
|
{
|
||||||
const struct batadv_recvlist_node *entry;
|
const struct batadv_vis_recvlist_node *entry;
|
||||||
|
|
||||||
spin_lock_bh(&bat_priv->vis.list_lock);
|
spin_lock_bh(&bat_priv->vis.list_lock);
|
||||||
list_for_each_entry(entry, recv_list, list) {
|
list_for_each_entry(entry, recv_list, list) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче