summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDebabrata Banerjee <dbanerje@akamai.com>2018-05-09 19:32:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-19 10:26:59 +0200
commit89f502a4c07ed6b9a69b6c81146f4db331224086 (patch)
tree52d481ed75096ef936bce4fae292c8eda741735b /drivers
parentd979320029f97adc7c2112d85fc626a71fe2366a (diff)
downloadlinux-stable-89f502a4c07ed6b9a69b6c81146f4db331224086.tar.gz
linux-stable-89f502a4c07ed6b9a69b6c81146f4db331224086.tar.bz2
linux-stable-89f502a4c07ed6b9a69b6c81146f4db331224086.zip
bonding: do not allow rlb updates to invalid mac
[ Upstream commit 4fa8667ca3989ce14cf66301fa251544fbddbdd0 ] 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bonding/bond_alb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
index 551f0f8dead3..7b85c508c273 100644
--- a/drivers/net/bonding/bond_alb.c
+++ b/drivers/net/bonding/bond_alb.c
@@ -450,7 +450,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++) {