[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141202102114.GD16959@breakpoint.cc>
Date: Tue, 2 Dec 2014 11:21:14 +0100
From: Florian Westphal <fw@...len.de>
To: Julian Anastasov <ja@....bg>
Cc: Florian Westphal <fw@...len.de>, netfilter-devel@...r.kernel.org,
brouer@...hat.com, netdev@...r.kernel.org
Subject: Re: [RFC PATCH] netfilter: conntrack: cache route for forwarded
connections
Julian Anastasov <ja@....bg> wrote:
> > The cached dst is re-used provided the input interface
> > is the same as that of the previous packet in the same direction.
> >
> > If not, the cached dst is invalidated.
> >
> > This should speed up forwarding when conntrack is already in use
> > anyway, especially when using reverse path filtering -- active RPF
> > enforces two FIB lookups for each packet.
> >
> > Before the routing cache removal this didn't matter since RPF
> > was performed only when route cache didn't yield a result; but without
> > route cache it comes at high price.
> >
> > Signed-off-by: Florian Westphal <fw@...len.de>
> > ---
> > Sending as RFC since I haven't tested this yet (aside from
> > single-forwarded-flow), so no performance data either.
> >
> > - doesn't work when iif changes (it invalidates cached dst), don't
> > think its a problem
>
> The idea is good. But code that caches dsts should
> also handle at least NETDEV_UNREGISTER (NETDEV_DOWN being
> another option) to release dsts. Holding dsts for frozen
> conns in EST state for long time is a problem.
Okay, point taken. Thanks Julian.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists