[PATCH] bridge: don't try to update timers in case of broken MLD queries

2013-08-05 Thread Linus Lüssing
by: bridge: disable snooping if there is no querier (b00589af3b04) Reported-by: Paul Bolle pebo...@tiscali.nl Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_multicast.c b/net/bridge

Re: [PATCHv3] bridge: disable snooping if there is no querier

2013-08-05 Thread Linus Lüssing
Response Delay of the querier is added to give multicast responses enough time to arrive and to be learned from before disabling the flooding behaviour again. Signed-off-by: Linus Lüssing linus.luess...@web.de Looks good, applied, thanks Linus. 0) This patch is part of v3.11-rc4

Re: [PATCH] bridge: don't try to update timers in case of broken MLD queries

2013-08-05 Thread Linus Lüssing
On Mon, Aug 05, 2013 at 03:42:22PM -0700, Stephen Hemminger wrote: On Tue, 6 Aug 2013 00:32:05 +0200 Linus Lüssing linus.luess...@web.de wrote: Currently we are reading an uninitialized value for the max_delay variable when snooping an MLD query message of invalid length and would

[PATCH] bridge: disable snooping if there is no querier

2013-07-25 Thread Linus Lüssing
of the querier is added to give multicast responses enough time to arrive and to be learned from before disabling the flooding behaviour again. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_device.c|3 ++- net/bridge/br_input.c |3 ++- net/bridge/br_multicast.c | 41

[PATCHv2] bridge: disable snooping if there is no querier

2013-07-25 Thread Linus Lüssing
of the querier is added to give multicast responses enough time to arrive and to be learned from before disabling the flooding behaviour again. Signed-off-by: Linus Lüssing linus.luess...@web.de --- v2: added missing, empty br_multicast_querier_exists() to avoid build failures if CONFIG_BRIDGE_IGMP_SNOOPING

Re: [PATCHv2] bridge: disable snooping if there is no querier

2013-07-25 Thread Linus Lüssing
On Thu, Jul 25, 2013 at 09:01:40AM -0700, Stephen Hemminger wrote: On Thu, 25 Jul 2013 15:56:20 +0200 Linus Lüssing linus.luess...@web.de wrote: +static void br_multicast_update_querier_timer(struct net_bridge *br, + unsigned long max_delay

Re: [PATCHv2] bridge: disable snooping if there is no querier

2013-07-27 Thread Linus Lüssing
On Fri, Jul 26, 2013 at 11:19:00PM +0100, Adam Baker wrote: On 25/07/13 14:56, Linus Lüssing wrote: If there is no querier on a link then we won't get periodic reports and therefore won't be able to learn about multicast listeners behind ports, potentially leading to lost multicast packets

[PATCH] bridge: separate querier and query timer into IGMP/IPv4 and MLD/IPv6 ones

2013-08-26 Thread Linus Lüssing
by using separate timers for the snooped IGMP and MLD queries as well as separate timers for our internal IGMP and MLD queriers. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_device.c|2 +- net/bridge/br_input.c |2 +- net/bridge/br_mdb.c | 14 +- net

[PATCH] bridge: prevent flooding IPv6 packets that do not have a listener

2013-06-21 Thread Linus Lüssing
(bridge: Only flood unregistered groups to routers) did for IPv4, let's do the same for IPv6 with the same reasoning. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/bridge

[PATCHv3] bridge: disable snooping if there is no querier

2013-07-31 Thread Linus Lüssing
of the querier is added to give multicast responses enough time to arrive and to be learned from before disabling the flooding behaviour again. Signed-off-by: Linus Lüssing linus.luess...@web.de --- v3: changed type of multicast_querier_delay_time from atomic64_t to unsigned long v2: added missing, empty

[PATCH] Revert bridge: only expire the mdb entry when query is received

2013-10-19 Thread Linus Lüssing
9f00b2e7cf241fa389733d41b615efdaa2cb0f5b. --- CC: Cong Wang amw...@redhat.com Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |2 +- net/bridge/br_multicast.c | 47 ++--- net/bridge/br_private.h |1 - 3 files changed, 28

[PATCH] bridge: multicast: add sanity check for query source addresses

2014-03-03 Thread Linus Lüssing
about these listeners. Reported-by: Jan Stancek jstan...@redhat.com Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index ef66365..fb0e36f 100644

Re: [PATCH] bridge: multicast: add sanity check for query source addresses

2014-03-04 Thread Linus Lüssing
On Tue, Mar 04, 2014 at 10:06:14AM +0100, Hannes Frederic Sowa wrote: diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index ef66365..fb0e36f 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1235,6 +1235,12 @@ static int

[PATCH 1/2] bridge: multicast: add sanity check for general query destination

2014-03-09 Thread Linus Lüssing
for multicast traffic as the bridge did not learn about these listeners. Reported-by: Jan Stancek jstan...@redhat.com Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/net/bridge/br_multicast.c b/net

[PATCH 2/2] bridge: multicast: enable snooping on general queries only

2014-03-09 Thread Linus Lüssing
traffic as the bridge did not learn about these listeners. With this patch the snooping code is enabled upon receiving valid, general queries only. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[PATCHv2 1/2] bridge: multicast: add sanity check for general query destination

2014-03-10 Thread Linus Lüssing
for multicast traffic as the bridge did not learn about these listeners. Reported-by: Jan Stancek jstan...@redhat.com Signed-off-by: Linus Lüssing linus.luess...@web.de --- v2: simplified is_general_query variable assignment (thanks Cong!) net/bridge/br_multicast.c | 19 +++ 1 file

[PATCHv2 2/2] bridge: multicast: enable snooping on general queries only

2014-03-10 Thread Linus Lüssing
traffic as the bridge did not learn about these listeners. With this patch the snooping code is enabled upon receiving valid, general queries only. Signed-off-by: Linus Lüssing linus.luess...@web.de --- v2: unchanged net/bridge/br_multicast.c |8 +--- 1 file changed, 5 insertions(+), 3

Re: [PATCHv2 2/2] bridge: multicast: enable snooping on general queries only

2014-03-10 Thread Linus Lüssing
On Mon, Mar 10, 2014 at 11:56:00PM +0100, Hannes Frederic Sowa wrote: On Mon, Mar 10, 2014 at 10:25:25PM +0100, Linus Lüssing wrote: br_multicast_query_received(br, port, br-ip6_querier, - !ipv6_addr_any(ip6h-saddr), max_delay

[PATCH] bridge: fix switched interval for MLD Query types

2013-06-16 Thread Linus Lüssing
) Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 81f2389..d6448e3 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge

[PATCH net-next 2/2] bridge: apply multicast snooping to IPv6 link-local, too

2013-09-03 Thread Linus Lüssing
The multicast snooping code should have matured enough to be safely applicable to IPv6 link-local multicast addresses (excluding the link-local all nodes address, ff02::1), too. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |3 ++- net/bridge/br_multicast.c

[PATCH net-next 1/2] bridge: prevent flooding IPv6 packets that do not have a listener

2013-09-03 Thread Linus Lüssing
(bridge: Only flood unregistered groups to routers) did for IPv4, let's do the same for IPv6 with the same reasoning. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/bridge

bride: IPv6 multicast snooping enhancements

2013-09-03 Thread Linus Lüssing
Hi, Here are two, small feature changes I would like to submit to increase the usefulness of the multicast snooping of the bridge code. The first patch is an unaltered one I had submitted before, but since it got no feedback I'm resubmitting it here for net-next. With the recently added patch to

[PATCHv2] bridge: separate querier and query timer into IGMP/IPv4 and MLD/IPv6 ones

2013-08-30 Thread Linus Lüssing
by using separate timers for the snooped IGMP and MLD queries as well as separate timers for our internal IGMP and MLD queriers. Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_device.c|2 +- net/bridge/br_input.c |2 +- net/bridge/br_mdb.c | 14 ++- net

'rmmod -f ipv6': BUG: unable to handle kernel paging request

2013-07-04 Thread Linus Lüssing
Hi, When trying to perform a forceful unload of an ipv6 kernel module on a 3.10 kernel then I'm getting a kernel panic with the attached trace. Is this supposed to happen due to the '-f' option or is this a bug in the ipv6 code? Cheers, Linus - [ 279.909335] Bridge firewalling registered

Re: [PATCH] bridge: prevent flooding IPv6 packets that do not have a listener

2013-07-22 Thread Linus Lüssing
Hi Herbert, Were there any reasons I might not be aware of which prevented you from adding the same change you introduced in bridge: Only flood unregistered groups to routers for IPv6, too? If not and if no one else comes up with any objection, then I'd still be happy if this patch could find

Re: [PATCHv3 net-next 0/4] bridge: multicast snooping patches / exports

2014-06-05 Thread Linus Lüssing
On Thu, Jun 05, 2014 at 12:43:11AM -0700, David Miller wrote: From: Linus Lüssing linus.luess...@web.de Date: Mon, 2 Jun 2014 20:42:15 +0200 Changes in v3: * use EXPORT_SYMBOL_GPL() instead of EXPORT_SYMBOL() This is not a sufficient header posting. You must also describe

[PATCHv4 net-next 1/4] bridge: rename struct bridge_mcast_query/querier

2014-06-07 Thread Linus Lüssing
the struct bridge_mcast_querier but for storing information about the selected querier (no matter if our own or a foreign querier). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |4 +- net/bridge/br_multicast.c | 169

[PATCHv4 net-next 4/4] bridge: memorize and export selected IGMP/MLD querier port

2014-06-07 Thread Linus Lüssing
Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in IGMP/MLD queriers to be able to reliably serve any multicast listener behind this same bridge. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv4 net-next 3/4] bridge: add export of multicast database adjacent to net_dev

2014-06-07 Thread Linus Lüssing
net_device itself. Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in multicast listeners to be able to reliably serve them with multicast packets. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv4 net-next 2/4] bridge: adhere to querier election mechanism specified by RFCs

2014-06-07 Thread Linus Lüssing
the currently selected one. This slight optimization is supposed to make it more RFC compliant (but is rather uncritical and therefore probably not necessary to be queued for stable kernels). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 101

[PATCHv4 net-next 0/4] bridge: multicast snooping patches / exports

2014-06-07 Thread Linus Lüssing
The first patch is simply a cosmetic patch. So far I (and maybe others too?) have been regularly confusing these two structs, therefore I'd suggest renaming them and therefore making the follow-up patches easier to understand and nicer to fit in. The second patch fixes a minor issue, but probably

[PATCH 1/2] bridge: fix smatch warning / potential null pointer dereference

2014-06-11 Thread Linus Lüssing
-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index cd3cf39..876e5fb 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1373,6 +1373,8 @@ static

[PATCH 2/2] bridge: fix compile error when compiling without IPv6 support

2014-06-11 Thread Linus Lüssing
) Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 876e5fb..abfa0b65 100644 --- a/net/bridge

[PATCH 0/2 net-next] bridge: fix bugs introduced by last multicast patchset

2014-06-11 Thread Linus Lüssing
Once my last patchset got applied, I got slapped by an automatic smatch and build bot. Here are two patches fixing the according issues, a potential null pointer dereference and a compile error when compiling without IPv6. [PATCH 1/2] is probably not the ideal solution - the assignment of the

[PATCH net-next 3/4] bridge: add export of multicast database adjacent to net_dev

2014-05-21 Thread Linus Lüssing
net_device itself. Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in multicast listeners to be able to reliably serve them with multicast packets. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

bridge: multicast snooping patches / exports

2014-05-21 Thread Linus Lüssing
Hi, The first patch is simply a cosmetic patch. So far I (and maybe others too?) have been regularly confusing these two structs, therefore I'd suggest renaming them and therefore making the follow-up patches easier to understand and nicer to fit in. The second patch fixes a minor issue, but

[PATCH net-next 2/4] bridge: adhere to querier election mechanism specified by RFCs

2014-05-21 Thread Linus Lüssing
the currently selected one. This slight optimization is supposed to make it more RFC compliant (but is rather uncritical and therefore probably not necessary to be queued for stable kernels). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 101

[PATCH net-next 1/4] bridge: rename struct bridge_mcast_query/querier

2014-05-21 Thread Linus Lüssing
the struct bridge_mcast_querier but for storing information about the selected querier (no matter if our own or a foreign querier). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |4 +- net/bridge/br_multicast.c | 169

[PATCH net-next 4/4] bridge: memorize and export selected IGMP/MLD querier port

2014-05-21 Thread Linus Lüssing
Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in IGMP/MLD queriers to be able to reliably serve any multicast listener behind this same bridge. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv2 net-next 3/4] bridge: add export of multicast database adjacent to net_dev

2014-05-24 Thread Linus Lüssing
net_device itself. Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in multicast listeners to be able to reliably serve them with multicast packets. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv2 net-next 1/4] bridge: rename struct bridge_mcast_query/querier

2014-05-24 Thread Linus Lüssing
the struct bridge_mcast_querier but for storing information about the selected querier (no matter if our own or a foreign querier). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |4 +- net/bridge/br_multicast.c | 169

[PATCHv2 net-next 4/4] bridge: memorize and export selected IGMP/MLD querier port

2014-05-24 Thread Linus Lüssing
Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in IGMP/MLD queriers to be able to reliably serve any multicast listener behind this same bridge. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv2 net-next 0/4] bridge: multicast snooping patches / exports

2014-05-24 Thread Linus Lüssing
Changes in v2: * fix a nasty typo in PATCH 1/4, br_multicast_update_query_timer(): br-multicast_query_interval vs. br-multicast_querier_interval = this accidentally reduced the other querier present timer from 255 to 125 seconds * fix a typo in PATCH 2/4, br_ip{4,6}_multicast_query():

[PATCHv2 net-next 2/4] bridge: adhere to querier election mechanism specified by RFCs

2014-05-24 Thread Linus Lüssing
the currently selected one. This slight optimization is supposed to make it more RFC compliant (but is rather uncritical and therefore probably not necessary to be queued for stable kernels). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 101

[PATCHv3 net-next 3/4] bridge: add export of multicast database adjacent to net_dev

2014-06-02 Thread Linus Lüssing
net_device itself. Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in multicast listeners to be able to reliably serve them with multicast packets. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv3 net-next 1/4] bridge: rename struct bridge_mcast_query/querier

2014-06-02 Thread Linus Lüssing
the struct bridge_mcast_querier but for storing information about the selected querier (no matter if our own or a foreign querier). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_mdb.c |4 +- net/bridge/br_multicast.c | 169

[PATCHv3 net-next 4/4] bridge: memorize and export selected IGMP/MLD querier port

2014-06-02 Thread Linus Lüssing
Adding bridge support to the batman-adv multicast optimization requires batman-adv knowing about the existence of bridged-in IGMP/MLD queriers to be able to reliably serve any multicast listener behind this same bridge. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux

[PATCHv3 net-next 2/4] bridge: adhere to querier election mechanism specified by RFCs

2014-06-02 Thread Linus Lüssing
the currently selected one. This slight optimization is supposed to make it more RFC compliant (but is rather uncritical and therefore probably not necessary to be queued for stable kernels). Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c | 101

[PATCHv3 net-next 0/4] bridge: multicast snooping patches / exports

2014-06-02 Thread Linus Lüssing
Changes in v3: * use EXPORT_SYMBOL_GPL() instead of EXPORT_SYMBOL() Cheers -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH] bridge: simplify a br_multicast_query_received() function call

2014-05-01 Thread Linus Lüssing
On Wed, Apr 23, 2014 at 02:47:48PM -0400, David Miller wrote: --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1282,8 +1282,7 @@ static int br_ip6_multicast_query(struct net_bridge *br, goto out; } - br_multicast_query_received(br, port,

[PATCH] bridge: simplify a br_multicast_query_received() function call

2014-04-21 Thread Linus Lüssing
-by: Hannes Frederic Sowa han...@stressinduktion.org Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 7b757b5..d2c3aae 100644 --- a/net

[PATCH net-next 0/4] bridge: multicast snooping exports #2

2014-07-06 Thread Linus Lüssing
Hi, Some people pointed out to me that it might be helpful to add stubs for the newly added multicast exports. That way e.g. batman-adv should continue to be compile and useable without having to have a kernel compiled with bridge code in the future. This is what the first patch is supposed to

[PATCH net-next 2/2] bridge: export knowledge about the presence of IGMP/MLD queriers

2014-07-06 Thread Linus Lüssing
in the future. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux/if_bridge.h |6 ++ net/bridge/br_multicast.c | 37 + 2 files changed, 43 insertions(+) diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index e0c575c

[PATCH net-next 1/2] bridge: adding stubs for multicast exports

2014-07-06 Thread Linus Lüssing
To make users (e.g. batman-adv soon) load- and runnable even if the bridge was compiled without snooping capabilities - or even if the kernel was compiled without any bridge code at all. Signed-off-by: Linus Lüssing linus.luess...@web.de --- include/linux/if_bridge.h | 14 ++ 1

[PATCH] bridge: fix netfilter/NF_BR_LOCAL_OUT for own, locally generated queries

2014-09-21 Thread Linus Lüssing
::0001, \ IPv6 priority=0x0, Next Header=0 Signed-off-by: Linus Lüssing linus.luess...@web.de --- net/bridge/br_multicast.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 7751c92..9d02e6c 100644

Re: [PATCH] bridge: fix netfilter/NF_BR_LOCAL_OUT for own, locally generated queries

2014-11-02 Thread Linus Lüssing
On Mon, Sep 22, 2014 at 01:32:44AM +0200, Linus Lüssing wrote: Ebtables on the OUTPUT chain (NF_BR_LOCAL_OUT) would not work as expected for both locally generated IGMP and MLD queries. The IP header specific filter options are off by 14 Bytes for netfilter (actual output on interfaces is fine

Re: [PATCH] bridge: fix netfilter/NF_BR_LOCAL_OUT for own, locally generated queries

2014-11-16 Thread Linus Lüssing
On Mon, Nov 03, 2014 at 06:01:46AM +0800, Herbert Xu wrote: On Mon, Sep 22, 2014 at 01:32:44AM +0200, Linus Lüssing wrote: Signed-off-by: Linus Lüssing linus.luess...@web.de Acked-by: Herbert Xu herb...@gondor.apana.org.au Hi David, are there any unanswered questions left? Cheers, Linus

Re: bride: IPv6 multicast snooping enhancements

2015-02-12 Thread Linus Lüssing
On Tue, Feb 10, 2015 at 04:59:09PM +0300, Vasily Averin wrote: I'm trying to fix ICMPv6 processing broken in OpenVZ after rebase to last RHEL6u6 kernel. After some unclear manipulation bridge begins to forward icmp6 NS (fe02::1) into wrong port, and at present I do not found the reason of

Re: bride: IPv6 multicast snooping enhancements

2015-02-10 Thread Linus Lüssing
Hi Vasily, On Tue, Feb 10, 2015 at 11:44:29AM +0300, Vasily Averin wrote: This patch prevent forwarding of ICMPv6 in bridges, so containers/VMs with virtual eth adapters connected in local bridge cannot ping each other via ipv6 (but can do it via ipv4) If a host wants to receive packets,

[PATCHv2 net-next 2/2] net: Export IGMP/MLD message validation code

2015-04-14 Thread Linus Lüssing
messages is now only done if necessary, just like the IGMP part always did). Finally, these IGMP and MLD message validation functions are exported so that not only the bridge can use it but batman-adv later, too. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- include/linux/igmp.h |1

[PATCHv2 net-next 1/2] bridge: multicast: call skb_checksum_{simple_, }validate

2015-04-14 Thread Linus Lüssing
Let's use these new, neat helpers. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- net/bridge/br_multicast.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 4b6722f..b52f4cb

[PATCHv2 net-next 0/2] Exporting IGMP/MLD checking from bridge code

2015-04-14 Thread Linus Lüssing
The multicast optimizations in batman-adv are yet only usable and enabled in non-bridged scenarios. To be able to support bridged setups batman-adv needs to be able to detect IGMP/MLD queriers and reports on mesh nodes without bridges, too. See the following link for details:

[PATCHv3 net-next 0/2] Exporting IGMP/MLD checking from bridge code

2015-05-02 Thread Linus Lüssing
The multicast optimizations in batman-adv are yet only usable and enabled in non-bridged scenarios. To be able to support bridged setups batman-adv needs to be able to detect IGMP/MLD queriers and reports on mesh nodes without bridges, too. See the following link for details:

[PATCHv3 net-next 2/2] net: Export IGMP/MLD message validation code

2015-05-02 Thread Linus Lüssing
messages is now only done if necessary, just like the IGMP part always did). Finally, these IGMP and MLD message validation functions are exported so that not only the bridge can use it but batman-adv later, too. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- include/linux/igmp.h |1

[PATCHv3 net-next 1/2] bridge: multicast: call skb_checksum_{simple_, }validate

2015-05-02 Thread Linus Lüssing
Let's use these new, neat helpers. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- net/bridge/br_multicast.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 4b6722f..b52f4cb

[PATCH net-next] net: fix two sparse warnings introduced by IGMP/MLD parsing exports

2015-05-04 Thread Linus Lüssing
) Reported-by: kbuild test robot fengguang...@intel.com Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- net/core/skbuff.c |2 +- net/ipv6/mcast_snoop.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 1e4278a

Re: [B.A.T.M.A.N.] [PATCH 2/2] net: Export IGMP/MLD message validation code

2015-04-10 Thread Linus Lüssing
On Fri, Apr 10, 2015 at 07:46:39PM +0200, Linus Lüssing wrote: diff --git a/net/ipv6/mcast_snoop.c b/net/ipv6/mcast_snoop.c new file mode 100644 index 000..95b34c0 --- /dev/null +++ b/net/ipv6/mcast_snoop.c @@ -0,0 +1,198 @@ +/* Copyright (C) 2015: Linus Lüssing linus.luess...@c0d3.blue

[RFC PATCH net-next] bridge: allow setting hash_max + multicast_router if interface is down

2015-05-20 Thread Linus Lüssing
even if the according bridge (port) is down, just like other other bridge (port) attributes allow too. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- I'm currently a little unsure about a few things (that's why I'm sending this as an RFC): * For i=br_multicast_init(), e

[PATCHv3 net-next] bridge: allow setting hash_max + multicast_router if interface is down

2015-05-22 Thread Linus Lüssing
. But since br_multicast_init() doesn't start any timers and only sets default values and initializes timers it should be save to reconfigure the default values after that, before things actually get active after the bridge is set up. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- Changelog v3

Re: [RFC PATCH net-next] bridge: allow setting hash_max + multicast_router if interface is down

2015-05-21 Thread Linus Lüssing
On Thu, May 21, 2015 at 11:49:21AM +0800, Herbert Xu wrote: The timer operations are all supposed to be idempotent. So enabling a port twice or stopping it twice should be OK. Oki doki. * Might calls to br_multicast_add_router() via br_multicast_enable_port() cause unintended

[PATCH net-next] bridge: allow setting hash_max + multicast_router if interface is down

2015-05-21 Thread Linus Lüssing
even if the according bridge (port) is down, just like other other bridge (port) attributes allow too. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- Changelog: * [RFC PATCH net-next] - [PATCH net-next] net/bridge/br_multicast.c | 15 ++- 1 file changed, 2 insertions

[PATCHv2 net-next] bridge: allow setting hash_max + multicast_router if interface is down

2015-05-22 Thread Linus Lüssing
. But since br_multicast_init() doesn't start any timers and only sets default values and initializes timers it should be save to reconfigure the default values after that, before things actually get active after the bridge is set up. Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- Changelog v2

[PATCH] net: fix wrong skb_get() usage / crash in IGMP/MLD parsing code

2015-08-12 Thread Linus Lüssing
of ipv6_mc_check_mld() / ip_mc_check_igmp() now needs to additionally check whether the returned skb_trimmed is a clone. Fixes: 9afd85c9e455 (net: Export IGMP/MLD message validation code) Reported-by: Brenden Blanco bbla...@plumgrid.com Signed-off-by: Linus Lüssing linus.luess...@c0d3.blue --- net

[PATCH net] bridge: fix igmpv3 / mldv2 report parsing

2015-09-11 Thread Linus Lüssing
Powalowski <tobias.powalow...@googlemail.com> Tested-by: Tobias Powalowski <tobias.powalow...@googlemail.com> Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- net/bridge/br_multicast.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/bridge/br_multicast.c

Re: [PATCH 4.1 15/29] bridge: fix igmpv3 / mldv2 report parsing

2015-10-01 Thread Linus Lüssing
Hi Greg, On Thu, Oct 01, 2015 at 11:31:51AM +0200, Greg Kroah-Hartman wrote: > 4.1-stable review patch. If anyone has any objections, please let me know. [...] > Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") While it shouldn't(tm) break anything on 4.1, there's no need to

Re: [PATCH 3.16 046/114] batman-adv: Fix broadcast/ogm queue limit on a removed interface

2016-06-13 Thread Linus Lüssing
On Mon, Jun 13, 2016 at 07:36:37PM +0100, Ben Hutchings wrote: > 3.16.36-rc1 review patch. If anyone has any objections, please let me know. > Hi Ben, This one looks weird. The version you added for 3.2.81-rc1 looked better. Cheers, Linus > -- > > From

Re: [PATCH net] Bridge: Fix ipv6 mc snooping if bridge has no ipv6 address

2016-06-24 Thread Linus Lüssing
ddress assinged to the bridge > and returns a false state for the local querier in > __br_multicast_querier_exists(). Acked-by: Linus Lüssing <linus.luess...@c0d3.blue>

Re: [PATCH net] Bridge: Fix ipv6 mc snooping if bridge has no ipv6 address

2016-06-25 Thread Linus Lüssing
On Fri, Jun 24, 2016 at 12:35:18PM +0200, Daniel Danzberger wrote: > The bridge is falsly dropping ipv6 mulitcast packets if there is: > 1. No ipv6 address assigned on the brigde. > 2. No external mld querier present. > 3. The internal querier enabled. > > When the bridge fails to build mld

[PATCHv2] net: fix bridge multicast packet checksum validation

2016-02-23 Thread Linus Lüssing
lticast_rcv+0x5dc/0xd00) [ 44.060077] [<803b2c98>] (br_multicast_rcv) from [<803aa510>] (br_handle_frame_finish+0xac/0x51c) [...] Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") Reported-by: Álvaro Fernández Rojas <nolt...@gmail.com> Signed-off-by: Linus

[PATCHv3] net: fix bridge multicast packet checksum validation

2016-02-23 Thread Linus Lüssing
lticast_rcv+0x5dc/0xd00) [ 44.060077] [<803b2c98>] (br_multicast_rcv) from [<803aa510>] (br_handle_frame_finish+0xac/0x51c) [...] Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") Reported-by: Álvaro Fernández Rojas <nolt...@gmail.com> Signed-off-by: Lin

Re: [PATCH] net: fix bridge multicast packet checksum validation

2016-02-18 Thread Linus Lüssing
On Thu, Feb 18, 2016 at 01:51:34PM +0100, Steinar H. Gunderson wrote: > On Mon, Feb 15, 2016 at 03:07:06AM +0100, Linus Lüssing wrote: > > Steinar, can you check whether this fixes the bridge issues you reported on > > bugzilla #99081? Not quite sure whether it is the same as your

[PATCH] net: fix bridge multicast packet checksum validation

2016-02-14 Thread Linus Lüssing
sh+0xac/0x51c) [...] Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") Reported-by: Álvaro Fernández Rojas <nolt...@gmail.com> Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- Steinar, can you check whether this fixes the bridge issues you reporte

[PATCH net] bridge: fix igmp / mld query parsing

2016-05-03 Thread Linus Lüssing
this by taking the offset between IP and IGMP/MLD header into account, too. Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") Reported-by: Simon Wunderlich <s...@simonwunderlich.de> Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- net/bridge

[PATCHv2 net] bridge: fix igmp / mld query parsing

2016-05-04 Thread Linus Lüssing
this by taking the offset between IP and IGMP/MLD header into account, too. Fixes: 9afd85c9e455 ("net: Export IGMP/MLD message validation code") Reported-by: Simon Wunderlich <s...@simonwunderlich.de> Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- v2: changed "i

Re: [PATCH net] bridge: fix igmp / mld query parsing

2016-05-04 Thread Linus Lüssing
On Tue, May 03, 2016 at 01:26:23PM -0700, Stephen Hemminger wrote: > On Tue, 3 May 2016 22:18:54 +0200 > Linus Lüssing <linus.luess...@c0d3.blue> wrote: > > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > > index 03661d9..7105cdf 100644 > >

Re: [PATCH net] Bridge: Fix ipv6 mc snooping if bridge has no ipv6 address

2016-06-28 Thread Linus Lüssing
On Tue, Jun 28, 2016 at 08:04:42AM -0400, David Miller wrote: > From: Linus Lüssing <linus.luess...@c0d3.blue> > [...] > > Fixes: 1d81d4c3dd88 ("bridge: check return value of ipv6_dev_get_saddr()") > > You're missing an initial 'd' in that SHA1-ID. > >

[PATCH] mailmap: Add Linus Lüssing

2016-07-06 Thread Linus Lüssing
For one thing, summarizes all non-umlaut versions into the umlaut one (Linus Luessing -> Linus Lüssing). For another, maps obosolete email addresses to the current @c0d3.blue one. Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- .mailmap | 2 ++ 1 file changed, 2 insertions

[PATCH net] ipv6: Fix IPv6 packet loss in scenarios involving roaming + snooping switches

2017-02-02 Thread Linus Lüssing
tch fixes this by always resending MLD reports when an interface change happens, for instance from NO-CARRIER to CARRIER state. Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- Initial problem report was sent to the bridge mailing list a while ago: - https://lists.linuxfounda

[PATCH net-next v5] bridge: multicast to unicast

2017-01-21 Thread Linus Lüssing
kau <n...@nbd.name> [linus.luess...@c0d3.blue: various bug + style fixes, commit message] Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- This feature is used and enabled by default in OpenWRT and LEDE for AP interfaces for more than a year now to allow both a more robust

Re: [PATCH 3.2 049/126] batman-adv: fix splat on disabling an interface

2017-02-15 Thread Linus Lüssing
On Wed, Feb 15, 2017 at 10:41:34PM +, Ben Hutchings wrote: > 3.2.85-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Linus Lüssing <linus.luess...@c0d3.blue> > > commit 9799c50372b23ed774791bdb87d700f

[PATCH net-next v3] bridge: multicast to unicast

2017-01-18 Thread Linus Lüssing
.@c0d3.blue: various bug + style fixes, commit message] Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- This feature is used and enabled by default in OpenWRT and LEDE for AP interfaces for more than a year now to allow both a more robust multicast delivery and multicast at highe

[PATCH net-next v4] bridge: multicast to unicast

2017-01-18 Thread Linus Lüssing
kau <n...@nbd.name> [linus.luess...@c0d3.blue: various bug + style fixes, commit message] Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- This feature is used and enabled by default in OpenWRT and LEDE for AP interfaces for more than a year now to allow both a more robust

[PATCH net-next v2] bridge: multicast to unicast

2017-01-17 Thread Linus Lüssing
kau <n...@nbd.name> [linus.luess...@c0d3.blue: various bug + style fixes, commit message] Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- This feature is used and enabled by default in OpenWRT and LEDE for AP interfaces for more than a year now to allow both a more robust

[PATCH] cfg80211: Add stub for cfg80211_get_station()

2016-08-19 Thread Linus Lüssing
This allows modules using this function (currently: batman-adv) to compile even if cfg80211 is not built at all, thus relaxing dependencies. Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- include/net/cfg80211.h | 9 + 1 file changed, 9 insertions(+) diff --git a/inclu

Re: [PATCH] mac80211_hwsim: suggest nl80211 instead of wext driver in documentation

2016-10-17 Thread Linus Lüssing
On Mon, Oct 17, 2016 at 11:39:04AM +0200, Johannes Berg wrote: > On Mon, 2016-10-17 at 00:39 +0200, Linus Lüssing wrote: > > For mac80211_hwsim interfaces, suggest to use wpa_supplicant with the > > more modern, netlink based driver instead of wext. > > Makes sense, applie

[PATCH] mac80211_hwsim: suggest nl80211 instead of wext driver in documentation

2016-10-16 Thread Linus Lüssing
For mac80211_hwsim interfaces, suggest to use wpa_supplicant with the more modern, netlink based driver instead of wext. Signed-off-by: Linus Lüssing <linus.luess...@c0d3.blue> --- Actually, I wasn't even able to make a connection with the configuration files and information pr

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 10:42:46PM +0100, Johannes Berg wrote: > On Mon, 2017-01-09 at 22:33 +0100, Linus Lüssing wrote: > > On Mon, Jan 09, 2017 at 01:44:03PM +0100, Johannes Berg wrote: > > > > > > > >  A host SHOULD silently discard a datagr

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 12:44:19PM +0100, M. Braun wrote: > Am 09.01.2017 um 09:08 schrieb Johannes Berg: > > Does it make sense to implement the two in separate layers though? > > > > Clearly, this part needs to be implemented in the bridge layer due to > > the snooping knowledge, but the code

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 01:30:32PM -0800, Stephen Hemminger wrote: > I wonder if MAC80211 should be doing IGMP snooping and not bridge > in this environment. In the long term, yes. For now, not quite sure. I personally like to go for simple solutions first :).

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-07 Thread Linus Lüssing
On Fri, Jan 06, 2017 at 07:13:56PM -0800, Stephen Hemminger wrote: > On Mon, 2 Jan 2017 20:32:14 +0100 > Linus Lüssing <linus.luess...@c0d3.blue> wrote: > > > This feature is intended for interface types which have a more reliable > > and/or efficient way to d

  1   2   3   >