mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
bonding: do not allow rlb updates to invalid mac
[ Upstream commit 4fa8667ca3 ]
Make sure multicast, broadcast, and zero mac's cannot be the output of rlb
updates, which should all be directed arps. Receive load balancing will be
collapsed if any of these happen, as the switch will broadcast.
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
afad8f8400
commit
8ff9368148
@@ -453,7 +453,7 @@ static void rlb_update_client(struct rlb_client_info *client_info)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!client_info->slave)
|
||||
if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst))
|
||||
return;
|
||||
|
||||
for (i = 0; i < RLB_ARP_BURST_SIZE; i++) {
|
||||
|
||||
Reference in New Issue
Block a user