[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150530.175125.1296198189977879095.davem@davemloft.net>
Date: Sat, 30 May 2015 17:51:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ast@...mgrid.com
Cc: daniel@...earbox.net, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] bpf: allow BPF programs access skb->skb_iif
and skb->dev->ifindex fields
From: Alexei Starovoitov <ast@...mgrid.com>
Date: Wed, 27 May 2015 15:30:39 -0700
> classic BPF already exposes skb->dev->ifindex via SKF_AD_IFINDEX extension.
> Allow eBPF program to access it as well. Note that classic aborts execution
> of the program if 'skb->dev == NULL' (which is inconvenient for program
> writers), whereas eBPF returns zero in such case.
> Also expose the 'skb_iif' field, since programs triggered by redirected
> packet need to known the original interface index.
> Summary:
> __skb->ifindex -> skb->dev->ifindex
> __skb->ingress_ifindex -> skb->skb_iif
>
> Signed-off-by: Alexei Starovoitov <ast@...mgrid.com>
Applied, thank you.
--
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