batman-adv: Use consistent name for mesh interface
Subsystems (2)
Sven Eckelmann
maintainerPATCH 1/1 batman-adv: Use consistent name for mesh interface
The way how the virtual interface is called inside the batman-adv source code is not consistent. The genl headers call it meshif and the rest of the code calls is (mostly) softif.
The genl definitions cannot be touched because they are part of the UAPI. But the rest of the batman-adv code can be touched to have a consistent name again.
The bulk of the renaming was done using
sed -i -e 's/soft\(-\|\_\| \|\)i\([nf]\)/mesh\1i\2/g' \
-e 's/SOFT\(-\|\_\| \|\)I\([NF]\)/MESH\1I\2/g'and then it was adjusted slightly when proofreading the changes.
---
CHANGELOG.rst | 14 +-
Documentation/networking/batman-adv.rst | 2 +-
compat-include/net/addrconf.h | 6 +-
include/uapi/linux/batman_adv.h | 18 +-
net/batman-adv/Makefile | 2 +-
net/batman-adv/bat_algo.c | 8 +-
net/batman-adv/bat_iv_ogm.c | 64 +++----
net/batman-adv/bat_v.c | 28 +--
net/batman-adv/bat_v_elp.c | 16 +-
net/batman-adv/bat_v_ogm.c | 42 ++---
net/batman-adv/bitarray.c | 2 +-
net/batman-adv/bridge_loop_avoidance.c | 106 +++++------
net/batman-adv/distributed-arp-table.c | 68 +++----
net/batman-adv/distributed-arp-table.h | 4 +-
net/batman-adv/fragmentation.c | 2 +-
net/batman-adv/gateway_client.c | 38 ++--
net/batman-adv/gateway_common.c | 8 +-
net/batman-adv/hard-interface.c | 138 +++++++-------
net/batman-adv/hard-interface.h | 12 +-
net/batman-adv/log.c | 2 +-
net/batman-adv/log.h | 10 +-
net/batman-adv/main.c | 42 ++---
net/batman-adv/main.h | 16 +-
.../{soft-interface.c => mesh-interface.c} | 194 ++++++++++----------
.../{soft-interface.h => mesh-interface.h} | 22 +--
net/batman-adv/multicast.c | 182 +++++++++----------
net/batman-adv/multicast_forw.c | 30 ++--
net/batman-adv/netlink.c | 178 +++++++++---------
net/batman-adv/netlink.h | 2 +-
net/batman-adv/network-coding.c | 64 +++----
net/batman-adv/originator.c | 58 +++---
net/batman-adv/routing.c | 42 ++---
net/batman-adv/send.c | 34 ++--
net/batman-adv/send.h | 4 +-
net/batman-adv/tp_meter.c | 30 ++--
net/batman-adv/trace.h | 4 +-
net/batman-adv/translation-table.c | 198 ++++++++++-----------
net/batman-adv/translation-table.h | 4 +-
net/batman-adv/tvlv.c | 26 +--
net/batman-adv/types.h | 42 ++---
40 files changed, 881 insertions(+), 881 deletions(-)CHANGELOG.rst +7 -7
@@ -46,7 +46,7 @@ * support latest kernels (4.14 - 6.7) * coding style cleanups and refactoring -* only warn about too small MTU when soft interfaces wasn't already reduced +* only warn about too small MTU when mesh interfaces wasn't already reduced * bugs squashed: - Hold rtnl lock during MTU update via netlink
@@ -571,7 +571,7 @@ - Fix gw_bandwidth calculation on 32 bit systems - prevent potential hlist double deletion - - fix soft interface access on unload + - fix mesh interface access on unload - fix invalid stack access in DAT - lock CRC access in bridge loop avoidance - fix TT client duplicate detection with VLANs
@@ -710,7 +710,7 @@ * generalize many functions (neighbor comparison, etc) to prepare code-sharing of BATMAN IV and BATMAN V * set SKB priority according to content (for correct WMM classification) -* add a dummy soft-interface rx mode handler to allow static multicast +* add a dummy mesh-interface rx mode handler to allow static multicast listeners * bugs squashed:
@@ -726,7 +726,7 @@ * bugs squashed: - fix potential kernel paging errors for unicast transmissions - - fix network coding initialization for multiple soft interfaces + - fix network coding initialization for multiple mesh interfaces - fix BLA VLAN handling regression - improve backward compatibility code
@@ -879,7 +879,7 @@ * support latest kernels (2.6.29 - 3.3) * Fix bat_socket_read memory corruption (CVE-2011-4604) * Cleanup of gateway handling code -* many bugs (hang when softif creation fails, memory leaks when hashes +* many bugs (hang when meshif creation fails, memory leaks when hashes table cannot be filled, wrong filter for missed ogms, many smaller translation table problems, ...) fixed
@@ -923,7 +923,7 @@ * cleanup of coding style * rename of HNA to TT * support for multi vlan in bridge loop detection -* many bug fixes (rcu protection of router/primary_if/softif_neigh, +* many bug fixes (rcu protection of router/primary_if/meshif_neigh, race condition in TQ calculation, deadlock when creating new mesh interfaces, ...)
@@ -944,7 +944,7 @@ * support latest kernels (2.6.21 - 2.6.38) * conversion of reference counting to kref * allow merging and refragmentation of unicast packets during transfers -* add softif bridge loop detection +* add meshif bridge loop detection * make hop_penalty configurable through sysfs * reimplement most of the batman-adv hash functionality * support for optimized DHCP based gateway selection
Documentation/networking/batman-adv.rst +1 -1
@@ -27,7 +27,7 @@ Load the batman-adv module into your kernel:: $ insmod batman-adv.ko The module is now waiting for activation. You must add some interfaces on which -batman-adv can operate. The batman-adv soft-interface can be created using the +batman-adv can operate. The batman-adv mesh-interface can be created using the iproute2 tool ``ip``:: $ ip link add name bat0 type batadv
compat-include/net/addrconf.h +3 -3
@@ -19,7 +19,7 @@ static bool batadv_mcast_mla_is_duplicate(u8 *mcast_addr, struct hlist_head *mcast_list); static inline int -compat_batadv_mcast_mla_softif_get_ipv6(struct net_device *dev, +compat_batadv_mcast_mla_meshif_get_ipv6(struct net_device *dev, struct hlist_head *mcast_list, struct batadv_mcast_mla_flags *flags, u8 *mcast_addr,
@@ -79,7 +79,7 @@ compat_batadv_mcast_mla_softif_get_ipv6(struct net_device *dev,#define ifmcaddr6 \ net_device *orig_dev = dev; \ - return compat_batadv_mcast_mla_softif_get_ipv6(orig_dev, \ + return compat_batadv_mcast_mla_meshif_get_ipv6(orig_dev, \ mcast_list, \ flags, \ mcast_addr, \
@@ -87,7 +87,7 @@ compat_batadv_mcast_mla_softif_get_ipv6(struct net_device *dev, in6_dev = NULL); \ } \static inline int \ -__unused_batadv_mcast_mla_softif_get_ipv6 (struct net_device *dev, \ +__unused_batadv_mcast_mla_meshif_get_ipv6 (struct net_device *dev, \struct hlist_head *mcast_list, \struct batadv_mcast_mla_flags *flags) \ { \
include/uapi/linux/batman_adv.h +9 -9
@@ -342,7 +342,7 @@ enum batadv_nl_attrs {BATADV_ATTR_MCAST_FLAGS_PRIV ,/** -* @BATADV_ATTR_VLANID: VLAN id on top of soft interface +* @BATADV_ATTR_VLANID: VLAN id on top of mesh interface */ BATADV_ATTR_VLANID,
@@ -380,7 +380,7 @@ enum batadv_nl_attrs {/** * @BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED: whether the bridge loop * avoidance feature is enabled. This feature detects and avoids loops -* between the mesh and devices bridged with the soft interface +* between the mesh and devices bridged with the mesh interface */ BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED,
@@ -509,7 +509,7 @@ enum batadv_nl_commands {BATADV_CMD_UNSPEC ,/** -* @BATADV_CMD_GET_MESH: Get attributes from softif/mesh +* @BATADV_CMD_GET_MESH: Get attributes from mesh(if) */ BATADV_CMD_GET_MESH,
@@ -535,7 +535,7 @@ enum batadv_nl_commands {/** * @BATADV_CMD_GET_HARDIF: Get attributes from a hardif of the -* current softif +* current mesh(if) */ BATADV_CMD_GET_HARDIF,
@@ -591,25 +591,25 @@ enum batadv_nl_commands {BATADV_CMD_GET_MCAST_FLAGS ,/** -* @BATADV_CMD_SET_MESH: Set attributes for softif/mesh +* @BATADV_CMD_SET_MESH: Set attributes for mesh(if) */ BATADV_CMD_SET_MESH ,/** * @BATADV_CMD_SET_HARDIF: Set attributes for hardif of the -* current softif +* current mesh(if) */ BATADV_CMD_SET_HARDIF ,/** * @BATADV_CMD_GET_VLAN: Get attributes from a VLAN of the -* current softif +* current mesh(if) */ BATADV_CMD_GET_VLAN ,/** * @BATADV_CMD_SET_VLAN: Set attributes for VLAN of the -* current softif +* current mesh(if) */ BATADV_CMD_SET_VLAN,
@@ -691,7 +691,7 @@ enum batadv_ifla_attrs {*/ IFLA_BATADV_ALGO_NAME, -/* add attributes above here, update the policy in soft-interface.c */ +/* add attributes above here, update the policy in mesh-interface.c */ /** * @__IFLA_BATADV_MAX: internal use
net/batman-adv/Makefile +1 -1
@@ -26,7 +26,7 @@ batman-adv-$(CONFIG_BATMAN_ADV_NC) += network-coding.o batman-adv-y += originator.o batman-adv-y += routing.o batman-adv-y += send.o -batman-adv-y += soft-interface.o +batman-adv-y += mesh-interface.o batman-adv-$(CONFIG_BATMAN_ADV_TRACING) += trace.o batman-adv-y += tp_meter.o batman-adv-y += translation-table.o
net/batman-adv/bat_algo.c +4 -4
@@ -90,15 +90,15 @@ int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops) }/** -* batadv_algo_select() - Select algorithm of soft interface -* @bat_priv: the bat priv with all the soft interface information +* batadv_algo_select() - Select algorithm of mesh interface +* @bat_priv: the bat priv with all the mesh interface information * @name: name of the algorithm to select * -* The algorithm callbacks for the soft interface will be set when the algorithm +* The algorithm callbacks for the mesh interface will be set when the algorithm * with the correct name was found. Any previous selected algorithm will not be * deinitialized and the new selected algorithm will also not be initialized. * It is therefore not allowed to call batadv_algo_select outside the creation -* function of the soft interface. +* function of the mesh interface. * * Return: 0 on success or negative error number in case of failure */
net/batman-adv/bat_iv_ogm.c +32 -32
248 lines not on this page · raw message
net/batman-adv/bat_v.c +14 -14
@@ -43,7 +43,7 @@static void batadv_v_iface_activate (struct batadv_hard_iface *hard_iface) { -struct batadv_priv *bat_priv =netdev_priv (hard_iface->soft_iface); +struct batadv_priv *bat_priv =netdev_priv (hard_iface->mesh_iface);struct batadv_hard_iface *primary_if; primary_if =batadv_primary_if_get_selected (bat_priv);
@@ -97,7 +97,7 @@ static void batadv_v_primary_iface_set(struct batadv_hard_iface *hard_iface)*/ static void batadv_v_iface_update_mac (struct batadv_hard_iface *hard_iface) { -struct batadv_priv *bat_priv =netdev_priv (hard_iface->soft_iface); +struct batadv_priv *bat_priv =netdev_priv (hard_iface->mesh_iface);struct batadv_hard_iface *primary_if; primary_if =batadv_primary_if_get_selected (bat_priv);
@@ -166,7 +166,7 @@ batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq,* @msg: Netlink message to dump into * @portid: Port making netlink request * @seq: Sequence number of netlink message -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @hard_iface: The hard interface to be dumped * @idx_s: Entries to be skipped *
@@ -203,7 +203,7 @@ batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq,* message * @msg: Netlink message to dump into * @cb: Control block containing additional options -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @single_hardif: Limit dumping to this hard interface */ static void
@@ -228,7 +228,7 @@ batadv_v_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb, } }else {list_for_each_entry_rcu (hard_iface, &batadv_hardif_list, list) { -if (hard_iface->soft_iface != bat_priv->soft_iface) +if (hard_iface->mesh_iface != bat_priv->mesh_iface)continue ;if (i_hardif++ < i_hardif_s)
@@ -254,7 +254,7 @@ batadv_v_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb,* @msg: Netlink message to dump into * @portid: Port making netlink request * @seq: Sequence number of netlink message -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @if_outgoing: Limit dump to entries with this outgoing interface * @orig_node: Originator to dump * @neigh_node: Single hops neighbour
@@ -322,7 +322,7 @@ batadv_v_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq,* @msg: Netlink message to dump into * @portid: Port making netlink request * @seq: Sequence number of netlink message -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @if_outgoing: Limit dump to entries with this outgoing interface * @orig_node: Originator to dump * @sub_s: Number of sub entries to skip
@@ -374,7 +374,7 @@ batadv_v_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq,* @msg: Netlink message to dump into * @portid: Port making netlink request * @seq: Sequence number of netlink message -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @if_outgoing: Limit dump to entries with this outgoing interface * @head: Bucket to be dumped * @idx_s: Number of entries to be skipped
@@ -414,7 +414,7 @@ batadv_v_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq,* batadv_v_orig_dump() - Dump the originators into a message * @msg: Netlink message to dump into * @cb: Control block containing additional options -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @if_outgoing: Limit dump to entries with this outgoing interface */ static void
@@ -502,7 +502,7 @@ static bool batadv_v_neigh_is_sob(struct batadv_neigh_node *neigh1,/** * batadv_v_init_sel_class() - initialize GW selection class -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information */ static void batadv_v_init_sel_class (struct batadv_priv *bat_priv) {
@@ -553,7 +553,7 @@ static int batadv_v_gw_throughput_get(struct batadv_gw_node *gw_node, u32 *bw)/** * batadv_v_gw_get_best_gw_node() - retrieve the best GW node -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * Return: the GW node having the best GW-metric, NULL if no GW is known */
@@ -590,7 +590,7 @@ batadv_v_gw_get_best_gw_node(struct batadv_priv *bat_priv)/** * batadv_v_gw_is_eligible() - check if a originator would be selected as GW -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @curr_gw_orig: originator representing the currently selected GW * @orig_node: the originator representing the new candidate *
@@ -647,7 +647,7 @@ static bool batadv_v_gw_is_eligible(struct batadv_priv *bat_priv,* @msg: Netlink message to dump into * @portid: Port making netlink request * @cb: Control block containing additional options -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information * @gw_node: Gateway to be dumped * * Return: Error code, or 0 on success
@@ -746,7 +746,7 @@ static int batadv_v_gw_dump_entry(struct sk_buff *msg, u32 portid,* batadv_v_gw_dump() - Dump gateways into a message * @msg: Netlink message to dump into * @cb: Control block containing additional options -* @bat_priv: The bat priv with all the soft interface information +* @bat_priv: The bat priv with all the mesh interface information */ static void batadv_v_gw_dump (struct sk_buff *msg,struct netlink_callback *cb,struct batadv_priv *bat_priv)
net/batman-adv/bat_v_elp.c +8 -8
@@ -82,7 +82,7 @@ static bool batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh, u32 *pthroughput) {struct batadv_hard_iface *hard_iface = neigh->if_incoming; -struct net_device *soft_iface = hard_iface->soft_iface; +struct net_device *mesh_iface = hard_iface->mesh_iface;struct ethtool_link_ksettings link_settings;struct net_device *real_netdev;struct station_info sinfo;
@@ -92,7 +92,7 @@ static bool batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh,/* don't query throughput when no longer associated with any * batman-adv interface */ -if (!soft_iface) +if (!mesh_iface)return false;/* if the user specified a customised value for this interface, then
@@ -180,7 +180,7 @@ static bool batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh, default_throughput:if (!(hard_iface->bat_v.flags &BATADV_WARNING_DEFAULT )) { - batadv_info(soft_iface, + batadv_info(mesh_iface, "WiFi driver or ethtool info does not provide information about link speeds on interface %s, therefore defaulting to hardcoded throughput values of %u.%1u Mbps. Consider overriding the throughput manually or checking your driver.\n", hard_iface->net_dev->name, BATADV_THROUGHPUT_DEFAULT_VALUE / 10,
@@ -226,7 +226,7 @@ static bool batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) {struct batadv_hard_iface *hard_iface = neigh->if_incoming; -struct batadv_priv *bat_priv =netdev_priv (hard_iface->soft_iface); +struct batadv_priv *bat_priv =netdev_priv (hard_iface->mesh_iface);unsigned long last_tx_diff;struct sk_buff *skb;int probe_len, i;
@@ -295,7 +295,7 @@ static void batadv_v_elp_periodic_work(struct work_struct *work) bat_v = container_of(work, struct batadv_hard_iface_bat_v, elp_wq.work); hard_iface = container_of(bat_v, struct batadv_hard_iface, bat_v); - bat_priv =netdev_priv (hard_iface->soft_iface); + bat_priv =netdev_priv (hard_iface->mesh_iface);if (atomic_read (&bat_priv->mesh_state) ==BATADV_MESH_DEACTIVATING ) goto out;
@@ -476,7 +476,7 @@ void batadv_v_elp_primary_iface_set(struct batadv_hard_iface *primary_iface)/* update orig field of every elp iface belonging to this mesh */ rcu_read_lock ();list_for_each_entry_rcu (hard_iface, &batadv_hardif_list, list) { -if (primary_iface->soft_iface != hard_iface->soft_iface) +if (primary_iface->mesh_iface != hard_iface->mesh_iface)continue ;batadv_v_elp_iface_activate (primary_iface, hard_iface);
@@ -486,7 +486,7 @@ void batadv_v_elp_primary_iface_set(struct batadv_hard_iface *primary_iface)/** * batadv_v_elp_neigh_update() - update an ELP neighbour node -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @neigh_addr: the neighbour interface address * @if_incoming: the interface the packet was received through * @elp_packet: the received ELP packet
@@ -552,7 +552,7 @@ static void batadv_v_elp_neigh_update(struct batadv_priv *bat_priv,int batadv_v_elp_packet_recv (struct sk_buff *skb,struct batadv_hard_iface *if_incoming) { -struct batadv_priv *bat_priv =netdev_priv (if_incoming->soft_iface); +struct batadv_priv *bat_priv =netdev_priv (if_incoming->mesh_iface);struct batadv_elp_packet *elp_packet;struct batadv_hard_iface *primary_if;struct ethhdr *ethhdr;
net/batman-adv/bat_v_ogm.c +21 -21
157 lines not on this page · raw message
net/batman-adv/bitarray.c +1 -1
@@ -23,7 +23,7 @@ static void batadv_bitmap_shift_left(unsigned long *seq_bits, s32 n)/** * batadv_bit_get_packet() - receive and process one packet within the sequence * number window -* @priv: the bat priv with all the soft interface information +* @priv: the bat priv with all the mesh interface information * @seq_bits: pointer to the sequence number receive packet * @seq_num_diff: difference between the current/received sequence number and * the last sequence number
net/batman-adv/bridge_loop_avoidance.c +53 -53
359 lines not on this page · raw message
net/batman-adv/distributed-arp-table.c +34 -34
255 lines not on this page · raw message
net/batman-adv/distributed-arp-table.h +2 -2
@@ -56,7 +56,7 @@ batadv_dat_init_orig_node_addr(struct batadv_orig_node *orig_node)/** * batadv_dat_init_own_addr() - assign a DAT address to the node itself -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @primary_if: a pointer to the primary interface */ static inline void
@@ -77,7 +77,7 @@ int batadv_dat_cache_dump(struct sk_buff *msg, struct netlink_callback *cb);/** * batadv_dat_inc_counter() - increment the correct DAT packet counter -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @subtype: the 4addr subtype of the packet to be counted * * Updates the ethtool statistics for the received packet if it is a DAT subtype
net/batman-adv/fragmentation.c +1 -1
@@ -349,7 +349,7 @@ bool batadv_frag_skb_fwd(struct sk_buff *skb,struct batadv_hard_iface *recv_if, struct batadv_orig_node *orig_node_src) { - struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); + struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface);struct batadv_neigh_node *neigh_node =NULL ;struct batadv_frag_packet *packet;u16 total_size;
net/batman-adv/gateway_client.c +19 -19
@@ -71,7 +71,7 @@ void batadv_gw_node_release(struct kref *ref)/** * batadv_gw_get_selected_gw_node() - Get currently selected gateway -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * Return: selected gateway (with increased refcnt), NULL on errors */
@@ -95,7 +95,7 @@ batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv)/** * batadv_gw_get_selected_orig() - Get originator of currently selected gateway -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * Return: orig_node of selected gateway (with increased refcnt), NULL on errors */
@@ -144,7 +144,7 @@ static void batadv_gw_select(struct batadv_priv *bat_priv,/** * batadv_gw_reselect() - force a gateway reselection -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * Set a flag to remind the GW component to perform a new gateway reselection. * However this function does not ensure that the current gateway is going to be
@@ -160,7 +160,7 @@ void batadv_gw_reselect(struct batadv_priv *bat_priv)/** * batadv_gw_check_client_stop() - check if client mode has been switched off -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * This function assumes the caller has checked that the gw state *is actually * changing*. This function is not supposed to be called when there is no state
@@ -192,7 +192,7 @@ void batadv_gw_check_client_stop(struct batadv_priv *bat_priv)/** * batadv_gw_election() - Elect the best gateway -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information */ void batadv_gw_election (struct batadv_priv *bat_priv) {
@@ -280,7 +280,7 @@ void batadv_gw_election(struct batadv_priv *bat_priv)/** * batadv_gw_check_election() - Elect orig node as best gateway when eligible -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig_node: orig node which is to be checked */ void batadv_gw_check_election(struct batadv_priv *bat_priv,
@@ -314,7 +314,7 @@ void batadv_gw_check_election(struct batadv_priv *bat_priv,/** * batadv_gw_node_add() - add gateway node to list of available gateways -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig_node: originator announcing gateway capabilities * @gateway: announced bandwidth information *
@@ -361,7 +361,7 @@ static void batadv_gw_node_add(struct batadv_priv *bat_priv,/** * batadv_gw_node_get() - retrieve gateway node from list of available gateways -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig_node: originator announcing gateway capabilities * * Return: gateway node if found or NULL otherwise.
@@ -391,7 +391,7 @@ struct batadv_gw_node *batadv_gw_node_get(struct batadv_priv *bat_priv,/** * batadv_gw_node_update() - update list of available gateways with changed * bandwidth information -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig_node: originator announcing gateway capabilities * @gateway: announced bandwidth information */
@@ -458,7 +458,7 @@ void batadv_gw_node_update(struct batadv_priv *bat_priv,/** * batadv_gw_node_delete() - Remove orig_node from gateway list -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig_node: orig node which is currently in process of being removed */ void batadv_gw_node_delete(struct batadv_priv *bat_priv,
@@ -473,8 +473,8 @@ void batadv_gw_node_delete(struct batadv_priv *bat_priv, }/** -* batadv_gw_node_free() - Free gateway information from soft interface -* @bat_priv: the bat priv with all the soft interface information +* batadv_gw_node_free() - Free gateway information from mesh interface +* @bat_priv: the bat priv with all the mesh interface information */ void batadv_gw_node_free (struct batadv_priv *bat_priv) {
@@ -501,15 +501,15 @@ void batadv_gw_node_free(struct batadv_priv *bat_priv)int batadv_gw_dump (struct sk_buff *msg,struct netlink_callback *cb) {struct batadv_hard_iface *primary_if =NULL ; -struct net_device *soft_iface; +struct net_device *mesh_iface;struct batadv_priv *bat_priv;int ret; - soft_iface =batadv_netlink_get_softif (cb); -if (IS_ERR (soft_iface)) -return PTR_ERR (soft_iface); + mesh_iface =batadv_netlink_get_meshif (cb); +if (IS_ERR (mesh_iface)) +return PTR_ERR (mesh_iface); - bat_priv =netdev_priv (soft_iface); + bat_priv =netdev_priv (mesh_iface); primary_if =batadv_primary_if_get_selected (bat_priv);if (!primary_if || primary_if->if_status !=BATADV_IF_ACTIVE ) {
@@ -528,7 +528,7 @@ int batadv_gw_dump(struct sk_buff *msg, struct netlink_callback *cb) out:batadv_hardif_put (primary_if); -dev_put (soft_iface); +dev_put (mesh_iface);return ret; }
@@ -657,7 +657,7 @@ batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len,/** * batadv_gw_out_of_range() - check if the dhcp request destination is the best * gateway -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @skb: the outgoing packet * * Check if the skb is a DHCP request and if it is sent to the current best GW
net/batman-adv/gateway_common.c +4 -4
@@ -20,7 +20,7 @@/** * batadv_gw_tvlv_container_update() - update the gw tvlv container after * gateway setting change -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information */ void batadv_gw_tvlv_container_update (struct batadv_priv *bat_priv) {
@@ -48,7 +48,7 @@ void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv)/** * batadv_gw_tvlv_ogm_handler_v1() - process incoming gateway tvlv container -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @orig: the orig_node of the ogm * @flags: flags indicating the tvlv state (see batadv_tvlv_handler_flags) * @tvlv_value: tvlv buffer containing the gateway data
@@ -89,7 +89,7 @@ static void batadv_gw_tvlv_ogm_handler_v1(struct batadv_priv *bat_priv,/** * batadv_gw_init() - initialise the gateway handling internals -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information */ void batadv_gw_init (struct batadv_priv *bat_priv) {
@@ -105,7 +105,7 @@ void batadv_gw_init(struct batadv_priv *bat_priv)/** * batadv_gw_free() - free the gateway handling internals -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information */ void batadv_gw_free (struct batadv_priv *bat_priv) {
net/batman-adv/hard-interface.c +69 -69
402 lines not on this page · raw message
net/batman-adv/hard-interface.h +6 -6
@@ -23,12 +23,12 @@enum batadv_hard_if_state {/** * @BATADV_IF_NOT_IN_USE: interface is not used as slave interface of a -* batman-adv soft interface +* batman-adv mesh interface */ BATADV_IF_NOT_IN_USE ,/** -* @BATADV_IF_TO_BE_REMOVED: interface will be removed from soft +* @BATADV_IF_TO_BE_REMOVED: interface will be removed from mesh * interface */ BATADV_IF_TO_BE_REMOVED ,
@@ -74,10 +74,10 @@ bool batadv_is_wifi_hardif(struct batadv_hard_iface *hard_iface);struct batadv_hard_iface *batadv_hardif_get_by_netdev (const struct net_device *net_dev);int batadv_hardif_enable_interface (struct batadv_hard_iface *hard_iface, -struct net_device *soft_iface); +struct net_device *mesh_iface);void batadv_hardif_disable_interface (struct batadv_hard_iface *hard_iface); -int batadv_hardif_min_mtu (struct net_device *soft_iface); -void batadv_update_min_mtu (struct net_device *soft_iface); +int batadv_hardif_min_mtu (struct net_device *mesh_iface); +void batadv_update_min_mtu (struct net_device *mesh_iface);void batadv_hardif_release (struct kref *ref);int batadv_hardif_no_broadcast (struct batadv_hard_iface *if_outgoing,u8 *orig_addr,u8 *orig_neigh);
@@ -97,7 +97,7 @@ static inline void batadv_hardif_put(struct batadv_hard_iface *hard_iface)/** * batadv_primary_if_get_selected() - Get reference to primary interface -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * * Return: primary interface (with increased refcnt), otherwise NULL */
net/batman-adv/log.c +1 -1
@@ -13,7 +13,7 @@/** * batadv_debug_log() - Add debug log entry -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @fmt: format string * * Return: 0 on success or negative error number in case of failure
net/batman-adv/log.h +5 -5
@@ -71,7 +71,7 @@ __printf(2, 3);/** * _batadv_dbg() - Store debug output with(out) rate limiting * @type: type of debug message -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @ratelimited: whether output should be rate limited * @fmt: format string * @arg: variable arguments
@@ -97,7 +97,7 @@ static inline void _batadv_dbg(int type __always_unused,/** * batadv_dbg() - Store debug output without rate limiting * @type: type of debug message -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @arg: format string and variable arguments */ #define batadv_dbg(type, bat_priv, arg...) \
@@ -106,7 +106,7 @@ static inline void _batadv_dbg(int type __always_unused,/** * batadv_dbg_ratelimited() - Store debug output with rate limiting * @type: type of debug message -* @bat_priv: the bat priv with all the soft interface information +* @bat_priv: the bat priv with all the mesh interface information * @arg: format string and variable arguments */ #define batadv_dbg_ratelimited(type, bat_priv, arg...) \
@@ -114,7 +114,7 @@ static inline void _batadv_dbg(int type __always_unused,/** * batadv_info() - Store message in debug buffer and print it to kmsg buffer -* @net_dev: the soft interface net device +* @net_dev: the mesh interface net device * @fmt: format string * @arg: variable arguments */
@@ -128,7 +128,7 @@ static inline void _batadv_dbg(int type __always_unused,/** * batadv_err() - Store error in debug buffer and print it to kmsg buffer -* @net_dev: the soft interface net device +* @net_dev: the mesh interface net device * @fmt: format string * @arg: variable arguments */
net/batman-adv/main.c +21 -21
134 lines not on this page · raw message
net/batman-adv/main.h +8 -8
@@ -129,10 +129,10 @@#define BATADV_TP_MAX_NUM 5/** -* enum batadv_mesh_state - State of a soft interface +* enum batadv_mesh_state - State of a mesh interface */ enum batadv_mesh_state { -/** @BATADV_MESH_INACTIVE: soft interface is not yet running */ +/** @BATADV_MESH_INACTIVE: mesh interface is not yet running */ BATADV_MESH_INACTIVE ,/** @BATADV_MESH_ACTIVE: interface is up and running */
@@ -238,8 +238,8 @@ extern unsigned int batadv_hardif_generation;extern unsigned char batadv_broadcast_addr[];extern struct workqueue_struct *batadv_event_workqueue; -int batadv_mesh_init (struct net_device *soft_iface); -void batadv_mesh_free (struct net_device *soft_iface); +int batadv_mesh_init (struct net_device *mesh_iface); +void batadv_mesh_free (struct net_device *mesh_iface);bool batadv_is_my_mac (struct batadv_priv *bat_priv,const u8 *addr);int batadv_max_header_len (void );void batadv_skb_set_priority (struct sk_buff *skb,int offset);
@@ -345,8 +345,8 @@ static inline bool batadv_has_timed_out(unsigned long timestamp,#define batadv_seq_after (x, y) batadv_seq_before(y, x)/** -* batadv_add_counter() - Add to per cpu statistics counter of soft interface -* @bat_priv: the bat priv with all the soft interface information +* batadv_add_counter() - Add to per cpu statistics counter of mesh interface +* @bat_priv: the bat priv with all the mesh interface information * @idx: counter index which should be modified * @count: value to increase counter by *
@@ -359,8 +359,8 @@ static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, }/** -* batadv_inc_counter() - Increase per cpu statistics counter of soft interface -* @b: the bat priv with all the soft interface information +* batadv_inc_counter() - Increase per cpu statistics counter of mesh interface +* @b: the bat priv with all the mesh interface information * @i: counter index which should be modified */ #define batadv_inc_counter (b, i) batadv_add_counter(b, i, 1)
net/batman-adv/mesh-interface.c renamed from net/batman-adv/soft-interface.c +97 -97
523 lines not on this page · raw message
net/batman-adv/mesh-interface.h renamed from net/batman-adv/soft-interface.h +11 -11
@@ -4,8 +4,8 @@* Marek Lindner */ -#ifndef _NET_BATMAN_ADV_SOFT_INTERFACE_H_ -#define _NET_BATMAN_ADV_SOFT_INTERFACE_H_ +#ifndef _NET_BATMAN_ADV_MESH_INTERFACE_H_ +#define _NET_BATMAN_ADV_MESH_INTERFACE_H_#include "main.h"
@@ -16,27 +16,27 @@#include <net/rtnetlink.h> int batadv_skb_head_push (struct sk_buff *skb,unsigned int len); -void batadv_interface_rx (struct net_device *soft_iface, +void batadv_interface_rx (struct net_device *mesh_iface,struct sk_buff *skb,int hdr_size,struct batadv_orig_node *orig_node); -bool batadv_softif_is_valid (const struct net_device *net_dev); +bool batadv_meshif_is_valid (const struct net_device *net_dev);extern struct rtnl_link_ops batadv_link_ops; -int batadv_softif_create_vlan (struct batadv_priv *bat_priv,unsigned short vid); -void batadv_softif_vlan_release (struct kref *ref); -struct batadv_softif_vlan *batadv_softif_vlan_get (struct batadv_priv *bat_priv, +int batadv_meshif_create_vlan (struct batadv_priv *bat_priv,unsigned short vid); +void batadv_meshif_vlan_release (struct kref *ref); +struct batadv_meshif_vlan *batadv_meshif_vlan_get (struct batadv_priv *bat_priv,unsigned short vid);/** -* batadv_softif_vlan_put() - decrease the vlan object refcounter and +* batadv_meshif_vlan_put() - decrease the vlan object refcounter and * possibly release it * @vlan: the vlan object to release */ -static inline void batadv_softif_vlan_put (struct batadv_softif_vlan *vlan) +static inline void batadv_meshif_vlan_put (struct batadv_meshif_vlan *vlan) {if (!vlan)return ; -kref_put (&vlan->refcount, batadv_softif_vlan_release); +kref_put (&vlan->refcount, batadv_meshif_vlan_release); } -#endif /* _NET_BATMAN_ADV_SOFT_INTERFACE_H_ */ +#endif /* _NET_BATMAN_ADV_MESH_INTERFACE_H_ */
net/batman-adv/multicast.c +91 -91
201 lines not on this page · raw message
net/batman-adv/netlink.c +89 -89
178 lines not on this page · raw message
net/batman-adv/network-coding.c +32 -32
64 lines not on this page · raw message
net/batman-adv/originator.c +29 -29
58 lines not on this page · raw message
net/batman-adv/routing.c +21 -21
42 lines not on this page · raw message
net/batman-adv/translation-table.c +99 -99
198 lines not on this page · raw message
net/batman-adv/types.h +21 -21
42 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
---
base-commit: dfdce35d69c55b6b5d017a7e800e553089a26eb9
change-id: 20250202-meshif-bddebde268f7
Best regards,
Signature · 1 line
Sven Eckelmann <[email protected]>
Part of the diff is not shown here. View the raw message.