diff options
author | Sven Eckelmann <sven@narfation.org> | 2021-06-01 23:50:35 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2021-06-02 22:25:45 +0200 |
commit | fa205602d46e0b66c0c90672bce8b36e5de449df (patch) | |
tree | 6d788897d8f118e1f52ba53d67d2a57d8166b544 /net/lapb/lapb_iface.c | |
parent | bf6b260b8a9654db99761cde74c6b16356b9b441 (diff) | |
download | linux-fa205602d46e0b66c0c90672bce8b36e5de449df.tar.gz linux-fa205602d46e0b66c0c90672bce8b36e5de449df.tar.bz2 linux-fa205602d46e0b66c0c90672bce8b36e5de449df.zip |
batman-adv: Avoid name based attaching of hard interfaces
The sysfs code for the batman-adv/mesh_iface file was receiving a string of
the batadv interface. This interface name was then provided to the code
which shared sysfs+rtnetlink code for attaching an hard-interface to an
batadv interface. The rtnetlink code was also using the (extracted)
interface name from the ndo_add_slave callback to increase the shared code
- even when it would have been more efficient to use the provided
net_device object directly instead of searching it again (based on its
name) in batadv_hardif_enable_interface.
But this indirect handling is no longer necessary because the sysfs code
was dropped. There is now only a single code path which is using
batadv_hardif_enable_interface.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions