batman-adv: netlink: reduce duplicate code by returning interfaces
authorLinus Lüssing <linus.luessing@c0d3.blue>
Mon, 13 Jan 2025 19:31:39 +0000 (20:31 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 17 Jan 2025 12:36:01 +0000 (13:36 +0100)
commit6ecc4fd6c2f43862c5e3b280cf419f0131e45c97
treecb455a51d74e555f7c4a2e03bf610a215be2349a
parent425970f94b3c761564f65289e37953ffe9445d93
batman-adv: netlink: reduce duplicate code by returning interfaces

Reduce duplicate code by using netlink helpers which return the
soft/hard interface directly. Instead of returning an interface index
which we are typically not interested in.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/gateway_client.c
net/batman-adv/multicast.c
net/batman-adv/netlink.c
net/batman-adv/netlink.h
net/batman-adv/originator.c
net/batman-adv/translation-table.c