]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: allow to enqueue broadcast pkt on virtual device
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 17 Sep 2014 08:08:08 +0000 (10:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 18:10:07 +0000 (14:10 -0400)
commitd86def1a6135b527fd44ecf95e4753f76894bc0c
tree5b2b566e2a4badedd4b3311e069867a5a43fc615
parented922c3e8a8771971614ee90b89993b9a626b0ba
macvlan: allow to enqueue broadcast pkt on virtual device

Since commit 3befbe94a40a ("macvlan: Move broadcasts into a work queue"), the
driver uses tx_queue_len of the master device as the limit of packets enqueuing.
Problem is that virtual drivers have this value set to 0, thus all broadcast
packets were rejected.
Because tx_queue_len was arbitrarily chosen, I replace it with a static limit
of 1000 (also arbitrarily chosen).

CC: Herbert Xu <herbert@gondor.apana.org.au>
Reported-by: Thibaut Collet <thibaut.collet@6wind.com>
Suggested-by: Thibaut Collet <thibaut.collet@6wind.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c