From patchwork Mon Nov 9 07:38:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 541633 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8EA871402CC for ; Mon, 9 Nov 2015 18:42:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Oku/PQ6P; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 389414BD7C; Mon, 9 Nov 2015 08:40:59 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A6VmptMG2pis; Mon, 9 Nov 2015 08:40:59 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B1FE4BB4E; Mon, 9 Nov 2015 08:40:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A6C7B4BDDC for ; Mon, 9 Nov 2015 08:40:17 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9k0Drwb6MkUI for ; Mon, 9 Nov 2015 08:40:17 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by theia.denx.de (Postfix) with ESMTPS id 37E6E4B85B for ; Mon, 9 Nov 2015 08:39:59 +0100 (CET) Received: by pabfh17 with SMTP id fh17so190967378pab.0 for ; Sun, 08 Nov 2015 23:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ACIofxaJkiw9KuVxs/Yfv2mrSP8YtTrkgX5xKHJUPL0=; b=Oku/PQ6PVfWUgmcn7fWFaRmGL44JClmoicErmmwF7tHLPrnP4ljr+QiFMknxUZzUbP 2HoH0HPwpvMrusbkNbVa90H7KDCdfmUix4aq2kW8jtnfMp8kqHId0HqadJnnw9XX0cyZ bqNfVliHROoH6zN9E42NZFvkikWe8AiT2bjZ8fZtRD9XUHUcM5R/vzVsO7c1AivscqTY lRgS2u8tAd3AXl0J0dliKpBvcYLNVCs6PER5nU/SUZQe2PwipTv0B1DQCweU0GKF2cfs i3dURyTeBAYSsUPJ6NTmAIWtqV+WP6UPY6sJQ0NzgHHGi09D9bQa1EymKjIFBJIi7AI9 esHw== X-Received: by 10.66.170.238 with SMTP id ap14mr37191788pac.128.1447054797973; Sun, 08 Nov 2015 23:39:57 -0800 (PST) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id so4sm14434198pbc.72.2015.11.08.23.39.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Nov 2015 23:39:57 -0800 (PST) From: Chris Packham To: u-boot@lists.denx.de, Joe Hershberger Date: Mon, 9 Nov 2015 20:38:56 +1300 Message-Id: <1447054736-27658-12-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1447054736-27658-1-git-send-email-judge.packham@gmail.com> References: <1447054736-27658-1-git-send-email-judge.packham@gmail.com> Cc: jp.tosoni@acksys.fr, hannah@marvell.com, Chris Packham , Angga Subject: [U-Boot] [RFC PATCH v2 11/11] net: e1000 enable multicast reception X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" IPv6 neighbor discovery uses various multicast addresses to send the request and receive the response. For neighbor discovery to work properly in U-boot the Ethernet device needs to support joining/leaving various L2 multicast groups or it needs to support multicast/promiscuous mode. For the sake of simplicity the latter approach has been taken. The e1000 hardware has slightly finer grained control in that it is possible to enable support for multicast-promiscuous mode separately from unicast so the extra traffic received is less. Signed-off-by: Chris Packham --- Drivers that support multicast reception have it enabled/disabled with CONFIG_MCAST_TFTP. It wouldn't be too hard to create a separate CONFIG_MCAST that is selected by enabling CONFIG_MCAST_TFTP or CONFIG_NET6. Changes in v2: None drivers/net/e1000.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 2ba03ed..d19a9de 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -5090,6 +5090,11 @@ e1000_setup_rctl(struct e1000_hw *hw) rctl &= ~(E1000_RCTL_SZ_4096); rctl |= E1000_RCTL_SZ_2048; rctl &= ~(E1000_RCTL_BSEX | E1000_RCTL_LPE); + +#ifdef CONFIG_NET6 + rctl |= E1000_RCTL_MPE; +#endif + E1000_WRITE_REG(hw, RCTL, rctl); }