]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: add a salt to mc_hash()
authorEric Dumazet <edumazet@google.com>
Thu, 7 Feb 2013 16:41:02 +0000 (16:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 22:55:48 +0000 (17:55 -0500)
commitd627b5f1de055022a0d11fb42e55d81ea78dd175
treea4c6bc690e612da44dab7e8beb71c5c0bdb8b6ba
parent5654143ef53a9b67a80214f0903115bc8bc68c59
macvlan: add a salt to mc_hash()

Some multicast addresses are common to all macvlans,
so if a multicast message has a hash value collision, we
have to deliver a copy to all macvlans, adding significant
latency and possible packet drops if netdev_max_backlog
limit is hit.

Having a per macvlan hash function permits to reduce the
impact of hash collisions.

Suggested-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c