Received: by 10.223.185.111 with SMTP id b44csp311442wrg; Fri, 9 Mar 2018 05:28:02 -0800 (PST) X-Google-Smtp-Source: AG47ELvPjHXzjRVxtbuD3lApaekq/VnPqOuVP0XgmVsENvVkgttKhIWh/RlsFACXo8fQnQ7RsUWz X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr26919553plo.261.1520602082139; Fri, 09 Mar 2018 05:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520602082; cv=none; d=google.com; s=arc-20160816; b=yD+khiH5iBWlXwBPshe3j27VsO7izTsrnqjpQUdY7mYNJsHl3zY2bgKEd9b8ABjB4t Nh33iCas70TJXThirNCXuF/WABQ2ibqOZ3WvLts6GkhEkscnocOQXgvtsiv1dzP5n9pT mk1118mlaMLTNTCYStvETjehNBanoc74q4CmaDAxR47YWJEs+EgmwCjounv8md1bqhWb 9TEseR4+u43Kmmz8fv612xtikzJVMr2ts2YmIbAuxwyGWBgib1MUs/+OskWyYaWroVO+ FV2SK44Aio3lvJ20kFZyxnHg42PV/ft58reyk92qPKsNl1S3AlPnxav+yCYLTf4YNU6a 2hcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pTWEwuhf+92hRXUiaaVwbDUWlO/9Dlh6aGd7qYLRs9Q=; b=t8geTo2/qgan9105DVMM2Wfh1S49yIBWnw4Yfa6762jwY+Kw64Gdyg9TVD168t3hVj YmQEpZwC3EkWowRigXqXRzp1Ulo/RHxYWtuBj/O74T4xDCoGYxUJvmKVsNoRS+g6S1WU t/6z/PQd9d54SavCyY2xM9wot8I5QyaIycXwCjT1qBfu88iU+GTK4lqFnfBFxkZMjnYH +9GNrCfDiVz/4bYtfbSKKPeqTVaydqsFyxuTNzVODvJMSIOtaGEiQZYCfWSxqOmq4867 qBnioFz+LQ081d2qWjTIp4Z7mqHFKDSmJc1czQXSU62rLEo3/+tjQwFP1UJLF9yzNzWe BNvw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si753776pgs.203.2018.03.09.05.27.47; Fri, 09 Mar 2018 05:28:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932197AbeCINZe (ORCPT + 99 others); Fri, 9 Mar 2018 08:25:34 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33890 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751137AbeCINZb (ORCPT ); Fri, 9 Mar 2018 08:25:31 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD0DE8D74A; Fri, 9 Mar 2018 13:25:30 +0000 (UTC) Received: from mmorsy.remote.csb (ovpn-112-68.ams2.redhat.com [10.36.112.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id DDED82166BAE; Fri, 9 Mar 2018 13:25:28 +0000 (UTC) From: Mohammed Gamal To: netdev@vger.kernel.org Cc: devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, sthemmin@microsoft.com, davem@davemloft.net, vkuznets@redhat.com, otubo@redhat.com, Mohammed Gamal Subject: [PATCH net-next] hv_netvsc: Correct filter setting for multicast/broadcast Date: Fri, 9 Mar 2018 14:25:23 +0100 Message-Id: <1520601923-26931-1-git-send-email-mgamal@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Mar 2018 13:25:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Mar 2018 13:25:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mgamal@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 009f766 intended to filter multicast/broadcast, however the NDIS filter wasn't set properly in non-promiscuous modes, which resulted in issues like DHCP timeouts. This patch sets the filter flags correctly. Fixes: 009f766 ("hv_netvsc: filter multicast/broadcast") Signed-off-by: Mohammed Gamal --- drivers/net/hyperv/rndis_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 8927c48..411a3ae 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -861,9 +861,9 @@ static void rndis_set_multicast(struct work_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); -- 1.8.3.1