]> git.baikalelectronics.ru Git - kernel.git/commit
net: Checks skb_dst to be NULL in inet_iif
authorTom Herbert <tom@herbertland.com>
Tue, 5 Apr 2016 15:22:49 +0000 (08:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Apr 2016 20:53:14 +0000 (16:53 -0400)
commitd82e57c9a36743c64750da2b1881a41829bd4cba
treea93593fee3416349acfe7e8636e766ad60caca0f
parent61e54425018b44ac73f5d8114df7ffb4de23a4bd
net: Checks skb_dst to be NULL in inet_iif

In inet_iif check if skb_rtable is NULL for the skb and return
skb->skb_iif if it is.

This change allows inet_iif to be called before the dst
information has been set in the skb (e.g. when doing socket based
UDP GRO).

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h