Re: [PATCH v2 -mm 6/9] netconsole: Introduce netconsole_netdev_notifier

From: KII Keiichi
Date: Fri Jul 13 2007 - 09:49:41 EST


Hi Satyam,

> From: Satyam Sharma <ssatyam@xxxxxxxxxxxxxx>
>
> [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 <ssatyam@xxxxxxxxxxxxxx>
> Cc: Keiichi Kii <k-keiichi@xxxxxxxxxxxxx>
>
Signed-off-by: Keiichi Kii <k-keiichi@xxxxxxxxxxxxx>

Thanks
--
Keiichi KII
NEC Corporation OSS Platform Development Division
E-mail: k-keiichi@xxxxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/