On Wed, Aug 19, 2015 at 11:37 AM, Jesse Gross <je...@nicira.com> wrote: > On Wed, Aug 19, 2015 at 11:29 AM, Pravin Shelar <pshe...@nicira.com> wrote: >> On Wed, Aug 19, 2015 at 11:18 AM, Jesse Gross <je...@nicira.com> wrote: >>> My guess is that if the issue from the earlier patch about overlapping >>> collect_md tunnels is fixed then that might allow us to simplify >>> things a little further, since for those tunnels we can assume there >>> is a 1:1 mapping between collect_md tunnels and sockets. >> >> I dont see how it would be different. Can you elaborate on this ? > > Mostly just conceptually simpler. Right now it looks like we are doing > some kind of refcounting between devices and tunnels in > geneve_open/stop (I know it's not really but it appears like that in > some ways.) We could just directly assign collect_md in geneve_open() > and do nothing at all in geneve_stop().
If you look at next patch, I have changed geneve_open and stop further. The change is geneve_open adds tunnel to hash table so that only device which are open are in hash table. Since geneve_open and stop is common for both type of tunnel I do not think there can be any changes even after avoiding overlapping tunnel types in given socket. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html