On 6/18/08, Roland Dreier <<a href="mailto:rdreier@cisco.com">rdreier@cisco.com</a>> wrote:<br>>> just saving pointer to the netdevice seemed quite not elegant...<br><br>> To me using the pointer to the netdev seems much cleaner than doing a<br>
>  string comparison on the name, but I'm probably missing something.  Why<br>>  didn't you like that idea?<br><br>
I was thinking that I would need to go into reference counting / book
keeping on the netdevice, but as Steve noted, it seems doable, and I
guess I don't need to issue a dev_get() just for keeping the copy of
neigh->dev, correct? since its holds the rtnl lock, the netevent
notififier should provide a safe context for comparision event->dev
to id->addr->dev.  If we agree on this approach and you
prefer it, I can change the patch.<br>
<br>
Or.<br>