[PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-10 Thread David Ahern
Applications such as OSPF and BFD need the original ingress device not the VRF device; the latter can be derived from the former. To that end add the skb_iif to inet_skb_parm and set it in ipv4 code after clearing the skb control buffer similar to IPv6. From there the pktinfo can just pull it from

[PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-07 Thread David Ahern
Applications such as OSPF and BFD need the original ingress device not the VRF device; the latter can be derived from the former. To that end add the skb_iif to inet_skb_parm and set it in ipv4 code after clearing the skb control buffer similar to IPv6. From there the pktinfo can just pull it from

Re: [PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-07 Thread Shmulik Ladkani
Hi, On Sat, 7 May 2016 08:53:44 -0600 David Ahern wrote: > >> @@ -1193,7 +1193,12 @@ void ipv4_pktinfo_prepare(const struct sock *sk, > >> struct sk_buff *skb) > >> ipv6_sk_rxinfo(sk); > >> > >>if (prepare && skb_rtable(skb)) { > >> - pktinfo->ipi_ifindex = inet_ii

Re: [PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-07 Thread David Ahern
On 5/7/16 2:41 AM, Shmulik Ladkani wrote: Hi David, On Fri, 6 May 2016 18:49:41 -0700 David Ahern wrote: Applications such as OSPF and BFD need the original ingress device not the VRF device; Would you consider this true for any IP_PKTINFO users in VRF setups? yes. I was just giving speci

Re: [PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-07 Thread Shmulik Ladkani
Hi David, On Fri, 6 May 2016 18:49:41 -0700 David Ahern wrote: > Applications such as OSPF and BFD need the original ingress device not > the VRF device; Would you consider this true for any IP_PKTINFO users in VRF setups? > @@ -1193,7 +1193,12 @@ void ipv4_pktinfo_prepare(const struct sock *s

[PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-06 Thread David Ahern
Applications such as OSPF and BFD need the original ingress device not the VRF device; the latter can be derived from the former. To that end add the skb_iif to inet_skb_parm and set it in ipv4 code after clearing the skb control buffer similar to IPv6. From there the pktinfo can just pull it from

[PATCH net-next 2/2] net: original ingress device index in PKTINFO

2016-05-05 Thread David Ahern
Applications such as OSPF and BFD need the original ingress device not the VRF device; the latter can be derived from the former. To that end add the skb_iif to inet_skb_parm and set it in ipv4 code after clearing the skb control buffer similar to IPv6. From there the pktinfo can just pull it from