Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4414574pxv; Mon, 5 Jul 2021 23:48:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbMrmWC4VvpUJlKj9ZLAgkfAUHODAyvb4cEPD49pN+va9KmOXtnORRvqIqCYGefGD/EiLk X-Received: by 2002:a05:6638:248d:: with SMTP id x13mr15743105jat.78.1625554105853; Mon, 05 Jul 2021 23:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625554105; cv=none; d=google.com; s=arc-20160816; b=PjxX8d1cQIHFzEDyZJgRA6o2OqS6qThgvSYn8VrcZA1S0Demf3TbzFK2Mrp907ywGA 8DlQG8D6WpequohZwt+DMmkwnzS4c/z6ykNwhMJUQvwv9bD0bSJV8Tjhm0ViBI52UNPw CvcLIJmTnO4v2Y9SvYHxEs7O2IyUg0mvksXxZ9jWQwfYzHjech74uWVyYF2tTrSeKlSW KALKBQTvJRaMab9+84cNB4hV/lD7THBUp57pzYOR8hIFk3jpINBN3I6qw9N1t3lHkNke 0Q0427yG73aD4OnPFVGanqak5FA4qU9lGSYvRcu8INbT6k+npkUJRJDM2oScp1AtOjMn DQBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=dIK61yEiJ+PmSQjD5E8Pt5Tt8usH3jzeNmcn9jMkrgM=; b=CJqzWsIqJnXdjdAMqYDrSJbO6waASdkJl8LYe1re/wy6RXHa6fgYy5Wa+DwvZw+qng aAV6FTBpTyPjnPzhzkfkYluKLPh027mutLbS8Egagu6IHSqcfuRih/jDYdhjDQeqPhsb IwT/v+vPfmEnrZowEO0dt8fYkF1SCoId1QcpJg0WsU2h93hHlkTXvcv6ZBQLN/Y0pRk2 HSrZf8gyTcj6xeCrrUI7EtVE+jrmH7cWcq3bseOK1sl9D1QjK+fc8bTfT/2OOE2DCIm4 8ErvZVvIG6EzPqgrNgXBDSTuwNqmn5egCbRB/7v0PHBgxqwAAusT8ivdA6dkiNy1Xqf+ HjvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si9841911ilo.114.2021.07.05.23.48.14; Mon, 05 Jul 2021 23:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbhGFGtl (ORCPT + 99 others); Tue, 6 Jul 2021 02:49:41 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48532 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbhGFGtl (ORCPT ); Tue, 6 Jul 2021 02:49:41 -0400 Received: from [222.129.38.159] (helo=[192.168.1.18]) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1m0erG-0006la-0q; Tue, 06 Jul 2021 06:47:02 +0000 Subject: Re: [Intel-wired-lan] [PATCH 2/2] igc: wait for the MAC copy when enabled MAC passthrough To: "Neftin, Sasha" , jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Edri, Michael" , "Ruinskiy, Dima" , "Shalev, Avi" References: <20210702045120.22855-1-aaron.ma@canonical.com> <20210702045120.22855-2-aaron.ma@canonical.com> <613e2106-940a-49ed-6621-0bb00bc7dca5@intel.com> From: Aaron Ma Message-ID: <96106dfe-9844-1d9d-d865-619d78a0d150@canonical.com> Date: Tue, 6 Jul 2021 14:46:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/5/21 7:54 PM, Neftin, Sasha wrote: > Hello Aaron, Thanks to point me on this document. I see... This is recommendation for Windows driver. Anyway, "delay" approach is error-prone. We need rather ask for MNG FW confirmation (message) that MAC address is copied. > Can we call (in case we know that MNG FW copied MAC address): > igc_rar_set (method from igc_mac.c), update the mac.addr and then perform": memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);? Without delay, after igc_rar_set, the MAC address is all 0. The MAC addr is the from dock instead of MAC passthrough with the original driver. Thanks, Aaron