From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F04221A1E10 for ; Mon, 17 Oct 2016 09:05:33 -0700 (PDT) Received: by mail-io0-x234.google.com with SMTP id j37so193058521ioo.3 for ; Mon, 17 Oct 2016 09:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=wgzs702L1ujSZmmSa+Fq1DK+MnqO64BKLCdZrSxqMbc=; b=Z1S6mmIbiKILQTJaswJfSFRtghHyidP+1TIpXCAFsLioOtSjGJRft1DtvIpDSK/ZxG s7HPAOzVg8K6sfUW4pNoxQrsOmXgMYcUZn3TXuDI8ERCv/EsE6HQvbnRzUbndT/AymLi aihM/zkQWKtcnS/fqFo25x3IZLcEixxDjNoxQVfxtXRu15j8S+JYI7ssH+Iwh47o++3d JZqZ87F8+x14Qz40KOQRxX7nP6YFr1wW4CHtnE2Y19pZNlzqoZqkgdy/CdWcwqb4VD3K Gsq5Ux9jkXVSLYPgMBML1rV61Gj47BJaGoAyL1Rlst5sGDOUWCG9UnCl2YiyXoTIaxXp 5ALA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=wgzs702L1ujSZmmSa+Fq1DK+MnqO64BKLCdZrSxqMbc=; b=alGHi+oEBhO+E9TSvClheyJfrlIxxIFdOkMuXwo1k3dJk2HxJ3Bt9H3seKLRxLBUJy GH5syKWUZRnp6nxWrqsDdQ8VyiMQ228DBdp8ppuuBlomvqF+auFsNyjD3jSAYkq+oTiL PuUIV0PIOMQ5salkArLbW4HaphzTo7OcGc9tJQmZEhCuSbz7/0MuDhHRe7YWoDapcpPC orwLBobVgEVIlE3tDVO11XsXvdSe9RjzkysKlc6ulA8KJI0RjYJUQFHP0G0H8ga0KtWf gv+zcReBKYRXnbi1AM6DE/jdBU6YIrsekDlZK+vCm4ujIms8PKVHso96g1IoHwoRGqvq rQiw== X-Gm-Message-State: AA6/9RlJ12tIqXdAs3rk7BEWMsvqdqCmOsrgQl7MpVq4XEgI+yQpS4t1aKlfuVCFB2lVmLLn8SfUc8rS0VByqw== X-Received: by 10.107.53.14 with SMTP id c14mr26922840ioa.144.1476720333127; Mon, 17 Oct 2016 09:05:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.161.205 with HTTP; Mon, 17 Oct 2016 09:05:32 -0700 (PDT) From: Marcin Wojtas Date: Mon, 17 Oct 2016 18:05:32 +0200 Message-ID: To: edk2-devel@lists.01.org Cc: "Tian, Feng" , "Kinney, Michael D" , "Gao, Liming" , Leif Lindholm , Neta Zur Hershkovits , nadavh@marvell.com, Joe Zhou , Yehuda Yitschak , semihalf-dabros-jan Subject: Force reconnect children from within a DXE driver X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 16:05:34 -0000 Content-Type: text/plain; charset=UTF-8 Hi, Short introduction to the problem I'm facing with EDK2: I implemented 'ifconfig' command extension allowing to change interface's MAC address or reset it to the default value. For that I needed to add a couple of helper functions in DxeNetLib, which parse input string and one that calls Snp->StationAddress callback from the NIC driver. The problem is that the drivers associated to interface device comprise a copy of SnpMode, not original pointer. It causes an obvious mismatch, because only the latter got updated with new Snp->Mode->CurrentAddress. I found out that using 'reconnect' command after MAC address change from uefi shell helps and the network can operate properly. Hence I have a question - is there a way to force reconnecting all children drivers from the network controller driver level? I.e. it would be great if it was possible not to be forced to call 'ifconfig' command and then 'reconnect', but call some function(s) e.g. from Snp->StationAddress callback. I would appreciate any help. Best regards, Marcin