Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7260324imu; Wed, 14 Nov 2018 14:25:10 -0800 (PST) X-Google-Smtp-Source: AJdET5cNpUGfcur4w14u7oH34dUZgpyPROS56y+zsMqoEgW6LxDGgwsHdF68/IlAWp2n30pr2MPO X-Received: by 2002:a17:902:8a88:: with SMTP id p8-v6mr3634943plo.94.1542234310336; Wed, 14 Nov 2018 14:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542234310; cv=none; d=google.com; s=arc-20160816; b=sAeVegLTKbYE4WeYGJarqGLWIgYArqi2lurFOBrNSRLSAWIwfXCq/scXbZjIC64eXQ xEcxz5lxewEws2UixneHBKE1wnUJuH0mAUPWSv5gcRXlD1MJJQ5QpNJUeBNpJPWDFZfO JaAkC1pEEkxeyA7qGV3tBlgukdvd4hWHb2siMdeVk+ZHegA7yyED7bR4unAIe7LF/JaZ U7r442iBaqIdE2CtQE64BYIMXXhO4Ip8eoOogZFA6NPjAK/M7gkqPVe8zSUYZoIPrlK7 or0OLrtY+gNNxqSSH+qvzDvPtImnugfDECqlP5dB2EGVnfmk1JhtRXFkZuhkJMRmMg2I dlBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=h8VNuAcAphJLSadclbJUP3mCmrOGrf7WDM6h4FwImGk=; b=BFBziuaWr6yJb6hNiqXNgBAK8DTfg+ZqldQe0YyKVZ7Dz+VOCUkkMMTdYdIWI2EA80 M/TsOSks5YuMr4ZvaNXZQpqWN7p6XnTjJiL+wNI6XID0YTxPqUtajt3vTj3KSZCoEfhu JFkcPwfp4z/vceh8IqwHWEXYLCu8tOJjOilaD9cHpnFwxEkBo1804+F6tl3R5CokOrWw WgF94Az8eNAJcE4AwD2a3ExtEDniMBbQkJy+BjKGX29m9aJPQvFq8tcJJvm7zZF1clR2 TndUeS5p1p7Fe/O9tl/Dr6YIOFFol+aLBKYTb48ujUECtqdc35vraRDO8V0wmxZAuuoo U07A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1zJf+VK3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72si23049481pge.310.2018.11.14.14.24.56; Wed, 14 Nov 2018 14:25:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1zJf+VK3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387614AbeKOI2J (ORCPT + 99 others); Thu, 15 Nov 2018 03:28:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:34392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729097AbeKOI12 (ORCPT ); Thu, 15 Nov 2018 03:27:28 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7A4E22520; Wed, 14 Nov 2018 22:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234144; bh=FFJQ/98twDEVx+zsWrG6gMpyUgTexkWm9ywafk98ux4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1zJf+VK3MR3iITiXQFtut/ODS2GEOMSXuhoRZKye3r9zHVTdZPgSo2Be3xSs0Y3OP uM2Xsamp4D1jd5F0TV5GBNTbqUHAq4+BOKZ6knoMOAcg7DU5YKYvAgHDrhwghvsV0S nFQsJjip/8bTDTcbv+KMo/nJF0dPLG3nv1YWDnxI= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Igor Russkikh , Igor Russkikh , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.19 68/73] net: aquantia: fixed enable unicast on 32 macvlan Date: Wed, 14 Nov 2018 17:22:02 -0500 Message-Id: <20181114222207.98701-68-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Igor Russkikh [ Upstream commit bfaa9f8553d5c20703781e63f4fc8cb4792f18fd ] Fixed a condition mistake due to which macvlans unicast item number 32 was not added in the unicast filter. The consequence is that when exactly 32 macvlans are created on NIC, the last created macvlan receives no traffic because its MAC was not registered in HW. Fixes: 94b3b542303f ("net: aquantia: vlan unicast address list correct handling") Signed-off-by: Igor Russkikh Tested-by: Nikita Danilov Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c index 26dc6782b475..4f34808f1e06 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c @@ -590,7 +590,7 @@ int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev) } } - if (i > 0 && i < AQ_HW_MULTICAST_ADDRESS_MAX) { + if (i > 0 && i <= AQ_HW_MULTICAST_ADDRESS_MAX) { packet_filter |= IFF_MULTICAST; self->mc_list.count = i; self->aq_hw_ops->hw_multicast_list_set(self->aq_hw, -- 2.17.1