Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp937845yba; Thu, 9 May 2019 08:12:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhW7LU73hFxZLqR6BPE05zu3ZnRCTTZQFDY7mLbwJgiI2pW6Ox+uf5+B7DWMQBxuE3Y/iM X-Received: by 2002:a63:e406:: with SMTP id a6mr6382352pgi.132.1557414779439; Thu, 09 May 2019 08:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557414779; cv=none; d=google.com; s=arc-20160816; b=eGOem78OOkVEV+4ZNaFuZYfjtM36q3FgIQPimiAKhtudnVKJYYIlacYcLMz/ebIztv u2yAEb3UmmEi2qaax3GnnxVUY8Ix1/8OWOc/ivNLSm96rlqVIUHRxIBQIxZz8QLRkybe H8GE0rChDrhK6RwnWihR1jxyulpPvP8LeBf+RaD/5/KbLTS2r2kuReBDMCBB8Q6QvrAB 6IMUKZVk5Fjdjl9oTUVdkv54U8ieFxvDy4MHukzziqz/yAFZ+4Do2sg9CVIKxX5qZHsN AoMQUPSOrTnqKBRMZtr+FGHkXgBFSAHenZLN+e+HjuNsquzXCKBWx2ZNg/ySyHXWBD7z CpKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=vpUIv441zlcvFgvrtY0dSx3wjmUWdmvurzo1+Epk2SQ=; b=jfGeWzqEEY6aXC4s0xkskmiF6NXbr3SkqXgySu5LJr700ZpRyXx4h7GWmHwChP00Aq 1zpzAxckEnhxhv7ofPDqQjgrbchfS3FJyYGlsVsPB83TM8HXmyPwBmcRw9WnZj5dTJS4 cMuR5GQJT2p5W1Bpb8+/49Bl2zaKjr6cbGVWp2m4r2dbEHu6EsKCJG8EPGmppnMigQwP boWIbvfj8mv9H12A3y82bts6eimjfmc1L9HkyODeHnByiPhmUFWQcWPUB4V7jCYQCATO y1Yif0mRGXZBi24sjVZPPs2t1Stel8Cw7CDyeuiffQt3tHCDilMavPfUguJswUVt0u63 DpKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=UzyDl4Rv; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si3536454pgd.78.2019.05.09.08.12.39; Thu, 09 May 2019 08:12:59 -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=@synopsys.com header.s=mail header.b=UzyDl4Rv; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726684AbfEIPL1 (ORCPT + 99 others); Thu, 9 May 2019 11:11:27 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.61.142]:33288 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726234AbfEIPL1 (ORCPT ); Thu, 9 May 2019 11:11:27 -0400 Received: from mailhost.synopsys.com (badc-mailhost2.synopsys.com [10.192.0.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id BB66CC00FF; Thu, 9 May 2019 15:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1557414680; bh=vpUIv441zlcvFgvrtY0dSx3wjmUWdmvurzo1+Epk2SQ=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=UzyDl4RvEO4K6HowYgZcREjyOIZxJ1Lb9yp6+ABs8ZbabQvXV/Lg+5/2C4Y+RZRgt VVsEzaK6kq4yOH/lFKDNutoLHpix7dSZRvQ0vnVesYfd9JDdLZrz3xUo+qHk/VREci KWpnRqW6QrUwYHO7D9JnfFr72y46gmnWtKfRYMemlkr7i06Z5IqMLacOwJ0b4TSu1+ 8UKQV1+zF4glrWSf6tpMBMvXqiXFjp7pwc14MKYKhr72lsMLlKOWZNwID+72B62WHS 1vte6TlGU43PpjvcErF8haphttbAf+Ag64DdVXsBs6B/bEtq9eRPqWWPeH7pxugHV6 7A5YfsgXeZA4g== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id A1403A0072; Thu, 9 May 2019 15:11:25 +0000 (UTC) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 9 May 2019 08:11:25 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCA.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Thu, 9 May 2019 17:11:21 +0200 From: Jose Abreu To: Andrew Lunn , Jose Abreu CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: RE: [PATCH net-next 10/11] net: stmmac: Introduce selftests support Thread-Topic: [PATCH net-next 10/11] net: stmmac: Introduce selftests support Thread-Index: AQHVBXLbzVq8jQ4wOEqKi4j/REzHDqZh7/UAgACEXjCAACKoAIAAUKrw Date: Thu, 9 May 2019 15:11:21 +0000 Message-ID: <78EB27739596EE489E55E81C33FEC33A0B47B3A7@DE02WEMBXB.internal.synopsys.com> References: <20190509022330.GA23758@lunn.ch> <78EB27739596EE489E55E81C33FEC33A0B47AB21@DE02WEMBXB.internal.synopsys.com> <20190509122118.GA4889@lunn.ch> In-Reply-To: <20190509122118.GA4889@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.107.19.176] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Lunn Date: Thu, May 09, 2019 at 13:21:18 > > > You also seem to be missing a test for adding a unicast address via > > > dev_uc_add() and receiving packets for that address, but not receivin= g > > > multicast packets. > >=20 > > Hmm, what if interface was already configured to receive Multicast befo= re=20 > > running the tests ? >=20 > The kernel keeps a list of unicast and multicast addresses, which have > been added to the filters. You could remove them all, do the test, and > then add them back. __dev_mc_unsync(), __dev_mc_sync() etc. Thanks! I've implemented the "MC Filter" and "UC Filter" tests and due to=20 that I found another bug in the driver :D Thanks, Jose Miguel Abreu