mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-20 06:20:41 +00:00

By passing the hard_iface to netdev_master_upper_dev_link() as private data, we can iterate over hardifs of a mesh interface more efficiently using netdev_for_each_lower_private*() (instead of iterating over the global hardif list). In addition, this will enable resolving a hardif from its netdev using netdev_lower_dev_get_private() and getting rid of the global list altogether in the following patches. A similar approach can be seen in the bonding driver. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
23 lines
644 B
C
23 lines
644 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) B.A.T.M.A.N. contributors:
|
|
*
|
|
* Marek Lindner, Linus Lüssing
|
|
*/
|
|
|
|
#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
|
|
#define _NET_BATMAN_ADV_BAT_ALGO_H_
|
|
|
|
#include "main.h"
|
|
|
|
#include <linux/netlink.h>
|
|
#include <linux/skbuff.h>
|
|
|
|
extern char batadv_routing_algo[];
|
|
|
|
void batadv_algo_init(void);
|
|
struct batadv_algo_ops *batadv_algo_get(const char *name);
|
|
int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops);
|
|
int batadv_algo_select(struct batadv_priv *bat_priv, const char *name);
|
|
int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb);
|
|
|
|
#endif /* _NET_BATMAN_ADV_BAT_ALGO_H_ */
|