mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 03:50:53 +07:00
batman-adv: rename batadv_if_list_entry 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:
parent
2006fea820
commit
015b4ae4a3
@ -426,15 +426,6 @@ struct batadv_forw_packet {
|
|||||||
struct batadv_hard_iface *if_incoming;
|
struct batadv_hard_iface *if_incoming;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* While scanning for vis-entries of a particular vis-originator
|
|
||||||
* this list collects its interfaces to create a subgraph/cluster
|
|
||||||
* out of them later
|
|
||||||
*/
|
|
||||||
struct batadv_if_list_entry {
|
|
||||||
uint8_t addr[ETH_ALEN];
|
|
||||||
bool primary;
|
|
||||||
struct hlist_node list;
|
|
||||||
};
|
|
||||||
struct batadv_frag_packet_list_entry {
|
struct batadv_frag_packet_list_entry {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
uint16_t seqno;
|
uint16_t seqno;
|
||||||
@ -467,6 +458,16 @@ struct batadv_recvlist_node {
|
|||||||
uint8_t mac[ETH_ALEN];
|
uint8_t mac[ETH_ALEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* While scanning for vis-entries of a particular vis-originator
|
||||||
|
* this list collects its interfaces to create a subgraph/cluster
|
||||||
|
* out of them later
|
||||||
|
*/
|
||||||
|
struct batadv_vis_if_list_entry {
|
||||||
|
uint8_t addr[ETH_ALEN];
|
||||||
|
bool primary;
|
||||||
|
struct hlist_node list;
|
||||||
|
};
|
||||||
|
|
||||||
struct batadv_algo_ops {
|
struct batadv_algo_ops {
|
||||||
struct hlist_node list;
|
struct hlist_node list;
|
||||||
char *name;
|
char *name;
|
||||||
|
@ -127,7 +127,7 @@ static void batadv_vis_data_insert_interface(const uint8_t *interface,
|
|||||||
struct hlist_head *if_list,
|
struct hlist_head *if_list,
|
||||||
bool primary)
|
bool primary)
|
||||||
{
|
{
|
||||||
struct batadv_if_list_entry *entry;
|
struct batadv_vis_if_list_entry *entry;
|
||||||
struct hlist_node *pos;
|
struct hlist_node *pos;
|
||||||
|
|
||||||
hlist_for_each_entry(entry, pos, if_list, list) {
|
hlist_for_each_entry(entry, pos, if_list, list) {
|
||||||
@ -147,7 +147,7 @@ static void batadv_vis_data_insert_interface(const uint8_t *interface,
|
|||||||
static void batadv_vis_data_read_prim_sec(struct seq_file *seq,
|
static void batadv_vis_data_read_prim_sec(struct seq_file *seq,
|
||||||
const struct hlist_head *if_list)
|
const struct hlist_head *if_list)
|
||||||
{
|
{
|
||||||
struct batadv_if_list_entry *entry;
|
struct batadv_vis_if_list_entry *entry;
|
||||||
struct hlist_node *pos;
|
struct hlist_node *pos;
|
||||||
|
|
||||||
hlist_for_each_entry(entry, pos, if_list, list) {
|
hlist_for_each_entry(entry, pos, if_list, list) {
|
||||||
@ -197,7 +197,7 @@ static void batadv_vis_data_read_entries(struct seq_file *seq,
|
|||||||
struct batadv_vis_info_entry *entries)
|
struct batadv_vis_info_entry *entries)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct batadv_if_list_entry *entry;
|
struct batadv_vis_if_list_entry *entry;
|
||||||
struct hlist_node *pos;
|
struct hlist_node *pos;
|
||||||
|
|
||||||
hlist_for_each_entry(entry, pos, list, list) {
|
hlist_for_each_entry(entry, pos, list, list) {
|
||||||
@ -223,7 +223,7 @@ static void batadv_vis_seq_print_text_bucket(struct seq_file *seq,
|
|||||||
struct batadv_vis_packet *packet;
|
struct batadv_vis_packet *packet;
|
||||||
uint8_t *entries_pos;
|
uint8_t *entries_pos;
|
||||||
struct batadv_vis_info_entry *entries;
|
struct batadv_vis_info_entry *entries;
|
||||||
struct batadv_if_list_entry *entry;
|
struct batadv_vis_if_list_entry *entry;
|
||||||
struct hlist_node *pos, *n;
|
struct hlist_node *pos, *n;
|
||||||
|
|
||||||
HLIST_HEAD(vis_if_list);
|
HLIST_HEAD(vis_if_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user