Skip to content
Commit 07d92d5c authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by David S. Miller
Browse files

macvlan: allow to enqueue broadcast pkt on virtual device



Since commit 412ca155 ("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: default avatarThibaut Collet <thibaut.collet@6wind.com>
Suggested-by: default avatarThibaut Collet <thibaut.collet@6wind.com>
Tested-by: default avatarThibaut Collet <thibaut.collet@6wind.com>
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e5f9ef3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment