[RFC net-next 11/22] dst: Metadata destinations

2015-07-10 Thread Thomas Graf
Introduces a new dst_metadata which enables to carry per packet metadata between forwarding and processing elements via the skb->dst pointer. The structure is set up to be a union. Thus, each separate type of metadata requires its own dst instance. If demand arises to carry multiple types of metad

Re: [RFC net-next 11/22] dst: Metadata destinations

2015-07-10 Thread Julian Anastasov
Hello, On Fri, 10 Jul 2015, Thomas Graf wrote: > --- a/net/ipv4/route.c > +++ b/net/ipv4/route.c > @@ -1691,6 +1691,8 @@ static int ip_route_input_slow(struct sk_buff *skb, > __be32 daddr, __be32 saddr, > by fib_lookup. >*/ > > + skb_dst_drop(skb); > + Th

Re: [RFC net-next 11/22] dst: Metadata destinations

2015-07-10 Thread Thomas Graf
On 07/10/15 at 09:57pm, Julian Anastasov wrote: > > Hello, > > On Fri, 10 Jul 2015, Thomas Graf wrote: > > > --- a/net/ipv4/route.c > > +++ b/net/ipv4/route.c > > @@ -1691,6 +1691,8 @@ static int ip_route_input_slow(struct sk_buff *skb, > > __be32 daddr, __be32 saddr, > >by fib_lo