Hi,
On 21/05/2024 14:15, Remi Pommarel wrote:
On Tue, May 21, 2024 at 09:43:56AM +0200, Antonio Quartulli wrote:
Hi,
On 18/05/2024 17:50, Remi Pommarel wrote:
Wiphy should be locked before calling rdev_get_station() (see lockdep
assert in ieee80211_get_station()).
Adding the lock is fine
.
Have you checked where in ath10k_sta_statistics this is exactly
happening? Do you think some sta was partly released and thus fields
were NULLified?
Regards,
--
Antonio Quartulli
s not know how many items are stored in the
array and thus requires it to be NULL terminated.
Please check the following for reference:
https://elixir.bootlin.com/linux/v5.15-rc6/source/lib/kobject_uevent.c#L548
OTOH I guess we could still use '{}' for the initialization.
Regards,
--
Antonio Quartulli
man-adv will instantiate a number of internal data
structures, along with routing logic, only when the VLAN is created.
Regards,
--
Antonio Quartulli
om/linux/latest/source/include/linux/preempt.h#L85
Is that something we should consider or is the comment bogus?
Regards,
> out:
> if (primary_if)
> batadv_hardif_put(primary_if);
>
--
Antonio Quartulli
the
> correct chaddr but still tried to perform the TT lookup with this
> uninitialized memory.
>
> Reported-by: syzbot+ab16e463b903f5a37...@syzkaller.appspotmail.com
> Fixes: 2d5b555644b2 ("batman-adv: send every DHCP packet as bat-unicast")
> Signed-off-by: Sven Eckelmann
Acked-by: Antonio Quartulli
--
Antonio Quartulli
ode slimer.
Signed-off-by: Antonio Quartulli
---
compat-include/linux/rcupdate.h | 27 +++
net/batman-adv/gateway_client.c | 4 ++--
net/batman-adv/hard-interface.c | 4 ++--
net/batman-adv/routing.c| 4 ++--
4 files changed, 33 insertions(+), 6 deletions(-)
c
> If this is a correct assumption, then we would have this problem since
> 3e26722bc9f2 ("batman-adv: make the Distributed ARP Table vlan aware")
>
That's it. Very nice catch!
Will you send a patch?
I guess converting the VID into network order before accessing it should
be enough,
herwise it might try read outside of the currently
> available skbuff to get the content of tvlv_len.
>
> Fixes: 0b6aa0d43767 ("batman-adv: tvlv - basic infrastructure")
> Reported-by: syzbot+355cab184197dbbfa...@syzkaller.appspotmail.com
> Signed-off-by: Sven Eckelmann
Acked-by:
dv_iv_ogm_receive(struct sk_buff *skb,
>
> /* unpack the aggregated packets and process them one by one */
> while (batadv_iv_ogm_aggr_packet(ogm_offset, skb_headlen(skb),
> - ogm_packet->tvlv_len)) {
> + _packet->tvlv_len)) {
> batadv_iv_ogm_process(skb, ogm_offset, if_incoming);
>
> ogm_offset += BATADV_OGM_HLEN;
>
The rest makes sense to me.
Regards,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
On 16/08/2019 10:26, Simon Wunderlich wrote:
> Sven is taking care of tracking our patches and merging most of them in
> our tree. Let's add him to the MAINTAINERS file so he will get all
> patch e-mails.
>
> Signed-off-by: Simon Wunderlich
Acked-by: Antonio Quartulli
--
An
Hi,
On 09/08/2019 10:45, Sven Eckelmann wrote:
> On Friday, 9 August 2019 10:26:24 CEST Antonio Quartulli wrote:
>> As also mentioned at WBMv10, Marek and I had worked on a patchset that
>> enables the tp_meter to measure the speed of a link, when no other
>> throughput is av
rg/msg17833.html
> Thanks!
>
> [0]: https://map11.freifunk-ulm.de/meshviewer
>
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
> + goto out;
> +
> /* If BLA is enabled, only forward ARP replies if we have claimed the
>* source of the ARP reply or if no one else of the same backbone has
>* already claimed that client. This prevents that different gateways
>
The patch makes
t;
> refcount_t: underflow; use-after-free.
>
> Fixes: 7bad46397eff ("batman-adv: protect the local and the global
> trans-tables with rcu")
> Signed-off-by: Sven Eckelmann
> ---
Acked-by: Antonio Quartulli
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
s a bit too strict in that regard, I think. For
> gratuitous ARP it's enough to ignore the (Target MAC/Target IP)
> pair. Snooping the (Sender MAC/Sender IP) should be fine.
>
Is there any situation where an OS would reject a gracious ARP? Or are
they always blindly accepted and processed
ould fix it, as
> last_update is always initialized with "jiffies".
+1
the problem is on last_dht_update that gets initializes with 0 (for
locally cached entries).
If you agree on removing it and using a bool (I like this idea too!),
the overflow problem should be gone.
Regards,
Hi,
On 28/11/2018 00:00, Ruben Barkow wrote:
> As mentioned here: https://www.open-mesh.org/issues/366#note-8
>
> I added a fix to the formatting, so this is the final patch:
>
> Signed-off-by: Ruben Barkow
Acked-by: Antonio Quartulli
--
Antonio Quartulli
signature.
:20:28 2018 daemon.notice netifd: Network device 'bat0' link is
> up
> Sun Feb 25 14:20:28 2018 daemon.notice netifd: Interface 'bat0' has link
> connectivity
> Sun Feb 25 14:20:28 2018 daemon.notice netifd: Interface 'bat0' is setting up
> now
> Sun Feb 25 14:20:28 2018 daemon.notice netifd: Interface 'bat0' is now up
> ~
>
> Which looks like it might have the potential for a race condition?
> Also the "HW filter" remark by 8021q seems a bit odd as this is a
> virtual interface, doesn't it?
This is nothing related to batman-adv, but it's just an internal VLAN
that I never fully understood why it is created.
What race condition are you talking about?
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
face.c
> @@ -212,6 +212,7 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff
> *skb,
> enum batadv_forw_mode forw_mode;
> struct batadv_orig_node *mcast_single_orig = NULL;
> int network_offset = ETH_HLEN;
> + __be16 proto;
>
> if (atomic_read(_p
aa92b ("batman-adv: ELP - send unicast ELP packets for
> throughput sampling")
> Signed-off-by: Sven Eckelmann
Acked-by: Antonio Quartulli
Great catch Sven!
It seems like the leakage can be fairly severe, therefore this patch
should definitely be shipped to stable later.
Cheers,
--
if you already have enough data over the link, no
unicast ELP messages should be sent (thus these constants won't be used).
To conclude: if you have no data over the link, sending 2 probes of
200bytes each every 500ms (default ELP interval) won't really eat much
airtime, unless you have a lot o
greed! changed that twice...and forgot to remote the other line :)
>
> Kind regards,
> Sven
>
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
t; with that. You should look at net/core/devlink.c and net/wireless/nl80211.c
> to get some inspiration.
Actually we have already implemented a basic netlink API to be used when
sending information to userspace (i.e. routing tables, neighbour tables,
etc..), therefore I think we might be able t
ked by batadv_v_elp_get_throughput();
- batadv_v_elp_get_throughput() is only invoked by
batadv_v_elp_throughput_metric_update();
- batadv_v_elp_throughput_metric_update() is a periodic function
executed by a timer and we can't have concurrent executions (unless we
use crazy interval values).
Maybe we should add a comment to make this more clear?
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
must do a check of the divisor (for 0) before
> doing this do_div.
Thanks for the code and the correction :-)
Yes, we wanted to avoid 64 bits explicit divisions and we assumed
test_time would have been a power of 2 (otherwise we'd accept a small
error).
Anyway, the last case brought by Sven depicts what we want to implement.
The patch will be changed accordingly.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
Hi,
On 04/08/18 17:02, Sven Eckelmann wrote:
> On Samstag, 4. August 2018 10:41:09 CEST Antonio Quartulli wrote:
> [...]
>>>> Documentation/ABI/testing/sysfs-class-net-batman-adv | 7 +++
>>>
>>> Please discuss this with Jiri [1].
>>>
>&g
neral?
>
This flag prevents scheduling new measurements to this neighbour if one
has already been scheduled and has not returned any result yet.
What you are looking for is implemented in patch 1/7: a system-wide
queue prevents concurrent measurements at all. All the measurements are
seria
tter when sending this code to netdev for merging.
I've discussed this with Marek too and he is fine with this approach.
Cheers,
>
> [1] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2018-May/017814.html
>
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
P replies because we consider them "authoritative answers"
that we can effectively trust.
Unless somebody has any objection, I think we could consider as such
also the "source IP/MAC" in an ARP request and apply the same logic.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
Hi,
On 08/07/18 04:01, Sven Eckelmann wrote:
> The #define for batadv_dat_addr_t is doing nothing else than giving u16 a
> new typename. But C already has the special keyword "typedef" which is also
> better supported by kernel-doc.
>
> Signed-off-by: Sven Eckelmann
Ac
ng the sinfo object directly in
cfg80211_get_station()?
I think it is safe to assume that no user should store anything in this
object before passing it to get_station().
At the same time future users of this API won't be able to hit the same
issue we just did.
(At the moment we are the only user of this
ed to reduce the support overhead.
>
> [1]
> https://lkml.kernel.org/r/a3d2d2b2c3559217eb8315d25df0c5883f922066.ca...@decadent.org.uk
>
> Signed-off-by: Sven Eckelmann
Acked-by: Antonio Quartulli
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
DAT (Distributed ARP Table) has been enabled by default
in the out-of-tree batman-adv kernel module for several
years already.
It can now be enabled in the kernel too.
Signed-off-by: Antonio Quartulli
---
This patch will obviously confict with
("batman-adv: Remove "default n" in
disabled, we should just assume that the speed is likely to be bogus and
it's better to measure it.
Does it make sense?
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
On 13/05/18 06:24, Marek Lindner wrote:
> Signed-off-by: Marek Lindner <mareklind...@neomailbox.ch>
Acked-by: Antonio Quartulli <a...@unstable.cc>
Once this change will make its way through the openwrt-routing feed,
people will finally be able to enable BATMAN_V without recompi
On 13/05/18 06:02, Marek Lindner wrote:
> If link auto-negotiation is disabled the exported link speed can
> not be relied on.
>
> Signed-off-by: Marek Lindner <mareklind...@neomailbox.ch>
Acked-by: Antonio Quartulli <a...@unstable.cc>
--
Antonio Quartulli
signature.
skb_postpush_rcsum() has been implemented in 4.4.47 therefore
our compat code has to be changed to prevent this function to
be implemented when using those kernels.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
compat-include/linux/skbuff.h | 2 +-
1 file changed, 1 insertion
d_vid and
> batadv_softif_create_vlan. Especially because batadv_interface_add_vid calls
> batadv_softif_create_vlan.
This can probably be re-arranged a bit in the master branch.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
static bool batadv_send_other_tt_response(struct
> batadv_priv *bat_priv,
> /* fill the rest of the tvlv with the real TT entries */
> batadv_tt_tvlv_generate(bat_priv, bat_priv->tt.global_hash,
> tt_change, tt_len,
> -
On 10/05/18 23:33, Sven Eckelmann wrote:
> On Donnerstag, 10. Mai 2018 17:29:46 CEST Antonio Quartulli wrote:
>> Signed-off-by: Antonio Quartulli <a...@unstable.cc>
>> ---
>> net/batman-adv/tp_meter.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/tp_meter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/batman-adv/tp_meter.c b/net/batman-adv/tp_meter.c
index 11520de9..55d8e4c1 100644
--- a/net/batman-adv/tp_meter.c
+++ b/net/batm
LAN specific")
> Signed-off-by: Sven Eckelmann <s...@narfation.org>
Acked-by: Antonio Quartulli <a...@unstable.cc>
Good catch. Unfortunately this issue was caused by my misunderstanding
of the RCU mechanism when used with lists.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
much time digging
into translation-table.c these days and I managed to confuse him enough.
Thanks for pointing this out, Sven!
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
adv_tt_global_orig_entry_find() call which
> already happens in batadv_tt_global_valid().
I like Marek's idea, but I'd suggest to change the name of the
tt_*_valid() functions to something a bit more generic.
Apart from that I agree that that the flags retrieval could directly be
done within the callback which already knows if we are in the local or
global case.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
ese kind of (bogus) results avoids confusions while using things
> like batctl's ping or traceroute.
>
> Reported-by: Andre Kasper <andre.kas...@gmx.de>
> Signed-off-by: Sven Eckelmann <s...@narfation.org>
Acked-by: Antonio Quartulli <a...@unstable.cc>
--
Antoni
On 14/04/18 17:20, Sven Eckelmann wrote:
> On Samstag, 14. April 2018 10:11:28 CEST Antonio Quartulli wrote:
>> An error message like like "returned invalid all-zero mac address" (or
>> "multicast address") might help to distinguish similar "ambiguities
On 14/04/18 15:10, Sven Eckelmann wrote:
> On Samstag, 14. April 2018 04:34:42 CEST Antonio Quartulli wrote:
>>
>> On 14/04/18 02:16, Sven Eckelmann wrote:
> [...]
>> We already handle the case of multiple originators handling the same MAC
>> address, no? In that
dle the case of multiple originators handling the same MAC
address, no? In that case I think we pick the "best" originator.
This case sounds more like a validity check because "a zero MAC should
not be in the translation table", or am I wrong?
Cheers,
--
Antonio Quartulli
On 13/03/18 16:52, Sven Eckelmann wrote:
> On Dienstag, 13. März 2018 16:22:24 CET Antonio Quartulli wrote:
> [...]
>> (if we wanted to, we could still rename all the attrs pointing to the
>> very same data type and unify them, but I don't have a strong opinion
>&g
On 13/03/18 16:20, Sven Eckelmann wrote:
> On Dienstag, 13. März 2018 16:02:34 CET Antonio Quartulli wrote:
> [...]
>> Another observation: do these attributes need to be DAT specific? or can
>> we just define (or reuse) a generic HWADDRESS attribute that we might
>> al
re and not store only
IPv4 addresses. This said, shouldn't we use a more specific name for the
address?
Another observation: do these attributes need to be DAT specific? or can
we just define (or reuse) a generic HWADDRESS attribute that we might
already be using somewhere else (i.e. for TT)?
Regards,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
adv_compare_eth return bool"). A relational (<, >, <= or >=) operator
> is not the right one for such a check.
>
> Reported-by: David Binderman <dcb...@hotmail.com>
> Signed-off-by: Sven Eckelmann <s...@narfation.org>
> ---
> Cc: David Binderman &l
his probe as some sort of "client keep alive" that tell
the mesh "hey, I am still here".
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
you distinguish between clients that have to be
pinged and clients that do not need that?
Another thing: consider that performing a simple ICMP ping from the mesh
node to the local client won't be enough, because no packet generated by
the client will enter the bat0 interface, thus it won't be d
ntentionally so its no
> longer backwards compatible with older kernels?
>
> What can i do?
>
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
node is NULL to detect this error.
>
> Fixes: 80b2d47be2c7 ("batman-adv: B.A.T.M.A.N. V - implement GW selection
> logic")
> Signed-off-by: Sven Eckelmann <sven.eckelm...@openmesh.com>
Acked-by: Antonio Quartulli <a...@unstable.cc>
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
d ask for Acked-by from following persons
>
> Cc: Simon Wunderlich <s...@simonwunderlich.de>
> Cc: Matthias Schiffer <mschif...@universe-factory.net>
> Cc: Antonio Quartulli <a...@unstable.cc>
> Cc: Andrew Lunn <and...@lunn.ch>
Acked-by: Antonio Quartulli
; will only flood the kernel logs. The warnings must therefore be removed.
>
> Signed-off-by: Sven Eckelmann <sven.eckelm...@openmesh.com>
Yeah, this makes sense. As a read only operation, the lock is not held
on purpose, therefore such situation has to be expected.
Acked-by: Antonio Quartu
ved. What happens to the
inner payload should not be batman's business. If I see this correctly.
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
for TT SYNC flags only
Version 2 looks good to me. I had some doubts but I managed to clarify
them with Linus on IRC.
Acked-by: Antonio Quartulli <a...@unstable.cc>
Cheers,
--
Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
d by BATADV_TT_REMOTE_MASK (0x00FF),
however you are extracting only those covered by BATADV_TT_SYNC_MASK (0x00F0).
Am I wrong or this is preventing the other 4 REMOTE flags (0x000F) to be set in
tt_global_entry->common->flags (because you always filter them out when updating
the entry)?
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
batadv_tp_meter_init() is invoked in batadv_init() only
which is marked with __init.
For this reason batadv_tp_meter_init() can be marked with
__init as well and dropped after module load.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/tp_meter.c | 2 +-
1 file c
kipedia.org/wiki/MAC_address#Address_details
This is true for the interface MAC address, but this should not apply for
the Cell-ID/BSSID. It can be a random ID.
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
Hi,
On Mon, Feb 06, 2017 at 07:48:23PM +0800, Antonio Quartulli wrote:
> Hi,
>
> On Mon, Feb 06, 2017 at 10:56:25AM +0100, Sven Eckelmann wrote:
> > It is therefore currently unknown how to continue from here. Antonio,
> > please
> > provide a statement what we
eeds to know about all the VLANs in order to learn the
MAC addresses of the clients.
However, TT gets to know a new VLAN only when this is actually created (i.e. by
creating bat0.X).
The solution would be to create a VLAN on top of bat0 (i.e. bat0.20) and let the
tagging happen at the node.
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
later this week and let you know what I
find.
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
rface->interface, sizeof(arpreq.arp_dev));
arpreq is already set to 0 few lines above. why not simpling
"sizeof(arpreq.arp_dev) - 1" as last argument for the strncpy() and avoid the
line below?
Or is this required for consistency with the rest of the code?
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
ion.
>
> Thank you very much in advance.
Dear Carlos,
this looks pretty much about OpenVPN (if I am not wrong). Are you sure you
posted it to the right mailing list?
Cheers,
--
Antonio Quartulli
The argument "type" passed to the batadv_dbg_arp() function is
never used. Remove it.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/distributed-arp-table.c | 17 ++---
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/net/batman
be "Signed-off-by:"
>
> Shoot! v3 coming...dang fat fingers!
tip: if you create the commit using the "-s" option, git will add the
signed-off-by line for you ;)
cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
udev/rules.d? Or some other mechanism?
Yes, I'd suggest using udev for this. batman-adv generates a random address
every time it creates a new batX interface, therefore you need to use some
userspace tool to make it static.
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
> ARP Requests?
have you tried enabling DAT debug and observing step by step what happens ? You
could try to study a simple case: i.e. an unknown client that comes and
connects for the first time..you can save the full log somewhere and then we can
all have a look (knowing the MAC address of this client)
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
ht be wrong, but that's why I ask measuring the effect)
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
e DHCP response.
>
> Fixes: 9cbc67d9da47 ("batman-adv: change interface_rx to get orig node")
> Signed-off-by: Sven Eckelmann <s...@narfation.org>
Acked-by: Antonio Quartulli <a...@unstable.cc>
--
Antonio Quartulli
signature.asc
Description: Digital signature
On Mon, Jun 27, 2016 at 08:19:22AM +0200, Sven Eckelmann wrote:
> On Monday 27 June 2016 10:36:13 Antonio Quartulli wrote:
> > On Mon, Jun 13, 2016 at 01:26:31PM +0200, Sven Eckelmann wrote:
> > > On Sunday 12 June 2016 12:14:25 Antonio Quartulli wrote:
> > > &g
On Mon, Jun 13, 2016 at 01:26:31PM +0200, Sven Eckelmann wrote:
> On Sunday 12 June 2016 12:14:25 Antonio Quartulli wrote:
> > + if (orig_throughput < (gw_throughput + threshold))
> > + goto out;
>
> Possible overflow problem in batadv_v_gw_is_eligib
On Mon, Jun 13, 2016 at 01:12:52PM +0200, Sven Eckelmann wrote:
> On Sunday 12 June 2016 12:14:25 Antonio Quartulli wrote:
> > --- a/net/batman-adv/gateway_client.c
> > +++ b/net/batman-adv/gateway_client.c
> > @@ -215,6 +215,10 @@ void batadv_gw_election(struct
On Mon, Jun 20, 2016 at 06:55:49PM +0200, Sven Eckelmann wrote:
> On Tuesday 21 June 2016 00:41:15 Antonio Quartulli wrote:
> [...]
> > However, how about changing the patch this way ?
> >
> > --- a/net/batman-adv/tp_meter.c
> > +++ b/net/batman-adv/tp_meter.c
> &
(r == NET_XMIT_DROP)) {
this is the same check we do in batadv_send_skb_unicast().
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
On Mon, Jun 13, 2016 at 12:45:17PM +0200, Sven Eckelmann wrote:
> On Sunday 12 June 2016 12:14:23 Antonio Quartulli wrote:
> [...]
> > + if (bat_priv->algo_ops->gw.show_sel_class)
> > + return bat_priv->algo_ops->gw.show_sel_class(bat_priv, buff);
> [..
to make sure that settings injected by the user
for this feature are rejected.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/sysfs.c | 28
1 file changed, 28 insertions(+)
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c
-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_v.c | 220 +++-
net/batman-adv/gateway_client.c | 9 +-
net/batman-adv/gateway_client.h | 2 +
3 files changed, 227 insertions(+), 4 deletions(-)
diff --git a/net/batman-adv/bat
hen declaring batadv_gw_node_get()
in gateway_client.h
- rebased on top of current master
Cheers,
Antonio Quartulli (4):
batman-adv: make the GW selection class algorithm specific
batman-adv: make GW election code protocol specific
batman-adv: B.A.T.M.A.N. V - implement GW selection logic
-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_v.c | 34 ++
net/batman-adv/sysfs.c | 34 --
net/batman-adv/types.h | 13 +
3 files changed, 79 insertions(+), 2 deletions(-)
diff --git a/net/batman-adv/b
quot;batman-adv: add per VLAN interface attribute framework")
> Signed-off-by: Sven Eckelmann <s...@narfation.org>
> Cc: Antonio Quartulli <a...@unstable.cc>
Acked-by: Antonio Quartulli <a...@unstable.cc>
--
Antonio Quartulli
signature.asc
Description: Digital signature
On Fri, May 27, 2016 at 03:48:37PM +0200, Sven Eckelmann wrote:
> On Wednesday 25 May 2016 23:27:35 Antonio Quartulli wrote:
> > +#ifdef CONFIG_BATMAN_ADV_BATMAN_V
> > +struct batadv_gw_node *batadv_gw_node_get(struct batadv_priv *bat_priv,
> > +
> because one is a simple check and the other one is a function call with side
> effects. So I am not 100% sure at the moment and will leave this untouched for
> now. Maybe Simon wants to add it or I will think about it a little bit more
> about it.
Although having both statements in the
to make sure that settings injected by the user
for this feature are rejected.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/sysfs.c | 28
1 file changed, 28 insertions(+)
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c
Each routing protocol may have its own specific logic about
gateway election which is potentially based on the metric being
used.
Create two GW specific API functions and move the current election
logic in the B.A.T.M.A.N. IV specific code.
Signed-off-by: Antonio Quartulli <a...@unstable
-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_v.c | 220 +++-
net/batman-adv/gateway_client.c | 9 +-
net/batman-adv/gateway_client.h | 4 +
3 files changed, 229 insertions(+), 4 deletions(-)
diff --git a/net/batman-adv/bat
To make it easier to search through the code it is better to print static
strings directly instead of using format strings printing constants.
This was addressed in a previous patch, but the Gateway table header
was not updated accordingly.
Signed-off-by: Antonio Quartulli <a...@unstable
"batman-adv: split routing API data structure in subobjects" as patch 1
- check if algo_ops->gw.get_best_gw_node was implemented before calling it
- add patch to disable GW mode knobs if API have not been implemented (6/6)
Cheers,
Antonio Quartulli (6):
batman-adv: split rou
tadv_iv_ogm_schedule(), thus primary_if is useless in
this function.
Simon, comments ?
Cheers,
--
Antonio Quartulli
signature.asc
Description: Digital signature
-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_v.c | 220 +++-
net/batman-adv/gateway_client.c | 9 +-
net/batman-adv/gateway_client.h | 4 +
3 files changed, 229 insertions(+), 4 deletions(-)
diff --git a/net/batman-adv/bat
Each routing protocol may have its own specific logic about
gateway election which is potentially based on the metric being
used.
Create two GW specific API functions and move the current election
logic in the B.A.T.M.A.N. IV specific code.
Signed-off-by: Antonio Quartulli <a...@unstable
to right patch
- remove bat_ prefix from API names
- API subobjects redefined as proper struct instead of anonymous ones to fix
kernel-doc complaints
- bonus kernel-doc added
- missing include files added
Changes from v2:
- minimum default value of gw_sel_class restored to 1
Cheers,
Antonio
-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_v.c | 34 ++
net/batman-adv/sysfs.c | 36 ++--
net/batman-adv/types.h | 13 +
3 files changed, 81 insertions(+), 2 deletions(-)
diff --git a/net/batm
elds names. These are batman-adv private structs and there is no
need to always prepend such prefix, which only makes function invocations
much much longer.
Signed-off-by: Antonio Quartulli <a...@unstable.cc>
---
net/batman-adv/bat_algo.c | 14 ++---
net/batman-adv/bat_iv_og
On Mon, May 23, 2016 at 10:09:12PM +0800, Antonio Quartulli wrote:
> On Mon, May 23, 2016 at 05:00:33PM +0800, Antonio Quartulli wrote:
> > +static ssize_t batadv_store_gw_sel_class(struct kobject *kobj,
> > +struct attribute *a
1 - 100 of 2776 matches
Mail list logo