Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp743056yba; Thu, 9 May 2019 05:22:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+GejPbDgvbvJ+XuuZHaOB5nEVd9kLVSEMYcP/u9TgSARPgBZluXOmw8k0SpN9WsxfjKsV X-Received: by 2002:a17:902:6b0b:: with SMTP id o11mr4635324plk.266.1557404555566; Thu, 09 May 2019 05:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557404555; cv=none; d=google.com; s=arc-20160816; b=PXZ9IGLViMcqUPF6D7JU158xSlrOW5J3tWRbEn3xG3la3LHDugH1xsg2BdilX2qBjf 66Z2cx3lXxYZr5HjeXc5iiBEjDL9W0dEAOTvRWBQTkFMOI8a6qIH/avta0tMnSVE6K/S zE7Ps6+DCURBMVe0DXFLWOfCy6gSqKW0yBrHZrLkfLorXVvdLo58DTLKl4U3c1dtQ7ZV FTw85HBKyIhFCv3ZKnqS6Fh1Vs26MMbwnTvwyQwpkqbnIq+ojg2OZMm0BPtDbh6EP0Zd cD+rR7TZD2cBkk5zsCaKcXvPnkwJyIZW7v3qjqCPeWpwDzMNCwkiAw2WLuFUcYcMq7yM cRWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zXNw1jQmPkUYW9nKNn/nGeP66jxj6hzctxtN7sOHYPs=; b=X5Y4JgmD9jtJf2U8nmo6hqdBtlGLacgN+cKhrL38x4HRmuFmpN2JSozQzAg7bgO5kY 7q+9/0Hf97I8DIas2d6rbilinAjdTz/3u0n0W9Q7TpfAFJuUEwOCZPJjks58Z4u/fgDt UgWhNWkJzIiNB0NnFoMwuYhgG6CXbbJZnHYqTe1+4qftsoRTELkwC112etyivQ1smKS6 od0Cnoq+PPDVIRqZAGWenEVlqvHISSqXnLEeRbQy7ZpvnFX2Mxn9WWnziRK6SkIqyV6j F2jKU2PEbXsNDPWPDVOvmkrrMYUYCkxtI930VltG9BYcq0kl/juvXmRnJcZ9QixSn7kM srow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="xv2GeDY/"; 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 d11si2672550pla.371.2019.05.09.05.22.19; Thu, 09 May 2019 05:22:35 -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=fail header.i=@lunn.ch header.s=20171124 header.b="xv2GeDY/"; 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 S1726644AbfEIMV0 (ORCPT + 99 others); Thu, 9 May 2019 08:21:26 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:59283 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbfEIMV0 (ORCPT ); Thu, 9 May 2019 08:21:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zXNw1jQmPkUYW9nKNn/nGeP66jxj6hzctxtN7sOHYPs=; b=xv2GeDY/coNUvzDqOj1BXTYa24 0DA9NVQNEsOJASSSxvSQTUlZByj1O9bGQcHUD35VKtSzug4JT2KhqwOcpL+P74KbYR/PmqNxBdAj9 W3AQnp8TsEzzD+SaKuMS73Hc+F/7jh1qyw2kpBTC75bYt9Hvjt/jRdbY6627UoGjO6Bw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hOi34-0001QE-U3; Thu, 09 May 2019 14:21:18 +0200 Date: Thu, 9 May 2019 14:21:18 +0200 From: Andrew Lunn To: 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 Message-ID: <20190509122118.GA4889@lunn.ch> References: <20190509022330.GA23758@lunn.ch> <78EB27739596EE489E55E81C33FEC33A0B47AB21@DE02WEMBXB.internal.synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78EB27739596EE489E55E81C33FEC33A0B47AB21@DE02WEMBXB.internal.synopsys.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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 receiving > > multicast packets. > > Hmm, what if interface was already configured to receive Multicast before > running the tests ? 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. Andrew