Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2202653imm; Mon, 28 May 2018 03:52:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhzC+2fwKANmvas9Lpjolx6h48+A+3RF1+aoJtS6h19VDn0iu2df3+J6rkQHeomOMZ7NQE X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr12754158pls.18.1527504731511; Mon, 28 May 2018 03:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527504731; cv=none; d=google.com; s=arc-20160816; b=JlR8jLwFhoXSxuckNM2Hqhamuw762xb3vrhP4092WC8I3GzMRbGIr6ZYyCtX/ZaCn6 5jEIg5wwV36CnJoeXM/ho1L8szmqQ+8ruMaARPXb/PYX8SVA0XRSzvdTl+CayYyr2H86 Ue3yyjJOTEyzvW8y2tNE4yPjly0LANy84QNGp1nM7YpaAf2M+TGtEMtAsa5cSqWwR5qP DN4duSzJ4YBPbm3Rybz+9wY9ixyaBmUWkFKKXyGgajtpx82iTDOkp9ofMYCqi8dniUXq hlUUQMbXkIOVoa2n5BxzvwzQyR7N4cpd0g5xGYbjUxYUmt6Vks2j5LJJR0Tt4CvZeKdr rOfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=i13c5P8xwK9aEUx7+UUwOd+bHMd/gzpuGcJ+eGb36gg=; b=C94RebEHCUElOfP889nheQnDcw9undc6OUZu4ory4eDcQ4zvi/kMMzEAR20IyVpn/I En8rwoKm/LiXvnO41BFeusB4hCjz1H5cYw9Ji5Xo2sJvscMwuAQI2EpKSe0W7fhIzATb QCJBWStyr8VEQD7VqoSeesJBST5V9vOor+GlftlaZsSWXzCgWXc/jc08fqKF1PGC40Ef khipyKpFuzMfkHdcLBqhJmeC02nwHMuW6xNE33SFkgOyN+7v1rEyImJQfPz4gZG0HgWn MPxxtAyjAL3djOkDP1GvMxzBushix1r41F+fxdTOWX0fhtJ5+eF+RoYmvgQN+aGHp/f/ v50g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K75HGAfT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m63-v6si28636974pld.429.2018.05.28.03.51.57; Mon, 28 May 2018 03:52:11 -0700 (PDT) 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=K75HGAfT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163725AbeE1Kvy (ORCPT + 99 others); Mon, 28 May 2018 06:51:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:41124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163869AbeE1Kvp (ORCPT ); Mon, 28 May 2018 06:51:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A1B05204EE; Mon, 28 May 2018 10:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504705; bh=MWxzIe0lMp5Pyn4/49y/0qth+ZjQHXzuzvEAYDEr73M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K75HGAfT+GUVOO/1MWtn+tYfqaLwY6yduSOBXMdzKKQZCs0GjFAcl2mGnXXU/8K7x 814OIpnngQYD/CbVnlamMQk6g1s7QaoPzsWLyov12jjovDp5PO1V5he73EcD6G4b8B O0BcPORnBtmDIgB9cYUSY5LUZmTQG4xwgHjqh85M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 234/496] hv_netvsc: fix filter flags Date: Mon, 28 May 2018 12:00:19 +0200 Message-Id: <20180528100329.769235339@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stephen Hemminger [ Upstream commit de3d50aadd40bf68614db9fd157b275ce9c2d467 ] The recent change to not always enable all multicast and broadcast was broken; meant to set filter, not change flags. Fixes: 009f766ca238 ("hv_netvsc: filter multicast/broadcast") Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/hyperv/rndis_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -857,9 +857,9 @@ static void rndis_set_multicast(struct w filter = NDIS_PACKET_TYPE_PROMISCUOUS; } else { if (flags & IFF_ALLMULTI) - flags |= NDIS_PACKET_TYPE_ALL_MULTICAST; + filter |= NDIS_PACKET_TYPE_ALL_MULTICAST; if (flags & IFF_BROADCAST) - flags |= NDIS_PACKET_TYPE_BROADCAST; + filter |= NDIS_PACKET_TYPE_BROADCAST; } rndis_filter_set_packet_filter(rdev, filter);