[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091014072319.GA12095@fogou.chygwyn.com>
Date: Wed, 14 Oct 2009 08:23:19 +0100
From: steve@...gwyn.com
To: Maciej Żenczykowski <zenczykowski@...il.com>
Cc: David Miller <davem@...emloft.net>, atis@...rotik.com,
netdev@...r.kernel.org, panther@...abit.hu, eric.dumazet@...il.com,
brian.haley@...com
Subject: Re: [PATCH] Add sk_mark route lookup support for IPv4 listening
sockets, and for IPv4 multicast forwarding
Hi,
On Wed, Oct 14, 2009 at 12:51:56AM -0700, Maciej Żenczykowski wrote:
> I'm thinking that the mark should be a tunnel parameter with values of
> inherit or a constant.
>
Why not do this on a per-route basis (i.e. lets suppose we add a
"setmark" parameter to each route) and this would allow changing
a mark when a packet matches the route. This not only solves the
tunnel case, but would be generically useful as well.
Since we have to look up routes anyway, it shouldn't add any
real overhead to the routing process and we can benefit from
all the existing infrastructure (route cache, etc).
Steve.
--
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