[PATCH] GARP protocol should not send PDUs larger than MTU

2014-01-13 Thread Vitaly V. Bursov
x27;m not sure if it's a correct way to handle this situation, but after a short test looks like it works - now I get multiple PDUs with maximum size of a 1514 bytes (1500 MTU) and switch recognizes them now. MRP protocol can have the same problem, but I can't test it. Signed-Off-By: V

Re: Scaling problem with a lot of AF_PACKET sockets on different interfaces

2013-06-09 Thread Vitaly V. Bursov
07.06.2013 17:33, Daniel Borkmann пишет: On 06/07/2013 04:17 PM, Vitaly V. Bursov wrote: 07.06.2013 16:05, Daniel Borkmann пишет: [...] Ideas are welcome :) Probably, that depends on _your scenario_ and/or BPF filter, but would it be an alternative if you have only a few packet sockets

Re: Scaling problem with a lot of AF_PACKET sockets on different interfaces

2013-06-07 Thread Vitaly V. Bursov
07.06.2013 16:05, Daniel Borkmann пишет: On 06/07/2013 02:41 PM, Mike Galbraith wrote: (CC's net-fu dojo) On Fri, 2013-06-07 at 14:56 +0300, Vitaly V. Bursov wrote: Hello, I have a Linux router with a lot of interfaces (hundreds or thousands of VLANs) and an application that cr

Scaling problem with a lot of AF_PACKET sockets on different interfaces

2013-06-07 Thread Vitaly V. Bursov
Hello, I have a Linux router with a lot of interfaces (hundreds or thousands of VLANs) and an application that creates AF_PACKET socket per interface and bind()s sockets to interfaces. Each socket has attached BPF filter too. The problem is observed on linux-3.8.13, but as far I can see from th

Re: Bonding driver has bad load balancing for forwarded traffic, 3.7+

2013-04-16 Thread Vitaly V. Bursov
16.04.2013 06:03, Eric Dumazet пишет: From: Eric Dumazet On Mon, 2013-04-15 at 17:37 -0700, Eric Dumazet wrote: On Mon, 2013-04-15 at 16:57 +0300, Vitaly V. Bursov wrote: Hello, I have a bonding device (mode=802.3ad xmit_hash_policy=layer2+3 miimon=300) and for kernels <3.7 forwarded I

Bonding driver has bad load balancing for forwarded traffic, 3.7+

2013-04-15 Thread Vitaly V. Bursov
Hello, I have a bonding device (mode=802.3ad xmit_hash_policy=layer2+3 miimon=300) and for kernels <3.7 forwarded IPv4 traffic distributed fine across multiple physical links. Ethernet cards are Intel 82576 with igb driver (various versions). 3.7 and 3.8 kernels tend to fully utilize only one l