Skip to content

Commit 2eca993

Browse files
dbavatargregkh
authored andcommitted
bonding: do not allow rlb updates to invalid mac
[ Upstream commit 4fa8667 ] 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 <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f754c9c commit 2eca993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/bonding/bond_alb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void rlb_update_client(struct rlb_client_info *client_info)
450450
{
451451
int i;
452452

453-
if (!client_info->slave)
453+
if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst))
454454
return;
455455

456456
for (i = 0; i < RLB_ARP_BURST_SIZE; i++) {

0 commit comments

Comments
 (0)