From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934773AbXGMNtl (ORCPT ); Fri, 13 Jul 2007 09:49:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758005AbXGMNtY (ORCPT ); Fri, 13 Jul 2007 09:49:24 -0400 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:56618 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757226AbXGMNtW (ORCPT ); Fri, 13 Jul 2007 09:49:22 -0400 Message-ID: <4697825F.3030101@bx.jp.nec.com> Date: Fri, 13 Jul 2007 22:47:11 +0900 From: KII Keiichi User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Satyam Sharma CC: Linux Kernel Mailing List , Matt Mackall , Netdev , Joel Becker , Stephen Hemminger , Andrew Morton , David Miller Subject: Re: [PATCH v2 -mm 6/9] netconsole: Introduce netconsole_netdev_notifier References: <20070710091920.23907.96483.sendpatchset@cselinux1.cse.iitk.ac.in> <20070710091951.23907.36072.sendpatchset@cselinux1.cse.iitk.ac.in> In-Reply-To: <20070710091951.23907.36072.sendpatchset@cselinux1.cse.iitk.ac.in> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Satyam, > From: Satyam Sharma > > [6/9] netconsole: Introduce netconsole_netdev_notifier > > To update fields of underlying netpoll structure at runtime on > corresponding NETDEV_CHANGEADDR or NETDEV_CHANGENAME notifications. > > ioctl(SIOCSIFHWADDR) {or ioctl(SIOCSIFNAME)} could be used to change the > hardware/MAC address {or name} of the local interface that our netpoll is > attached to. Whenever this happens, netdev notifier chain is called out > with the NETDEV_CHANGEADDR {or NETDEV_CHANGENAME} event message. We respond > to that and update the local_mac {or dev_name} field of the struct netpoll. > This makes sense anyway, but is especially required for dynamic netconsole > because the netpoll structure's internal members become user visible files > when either sysfs or configfs are used. So this helps us to keep up with the > MAC address / name changes and keep the values in struct netpoll uptodate. > > Signed-off-by: Satyam Sharma > Cc: Keiichi Kii > Signed-off-by: Keiichi Kii Thanks -- Keiichi KII NEC Corporation OSS Platform Development Division E-mail: k-keiichi@bx.jp.nec.com