tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MP-safe ifnet with psz & psref



Hi,

I'm working on a next task that replaces an ifnet pointer embedded
in other objects, say mbuf and rtentry, with an interface index
(ifnet#if_index) and when we take an ifnet object from such objects,
look it up (with psz or psref) from the interface collection
(ifindex2ifnet, just an array). By doing so, we can ensure a taken
ifnet object isn't freed during manipulating it. And if an interface
which we're obtaining is being destroyed, a look-up just returns NULL.

This needs huge amount of changes, so I want suggestions and comments
before proceeding the task. Any thoughts?

Thanks,
  ozaki-r


Home | Main Index | Thread Index | Old Index