ipv4: Pass original device to ip_rcv_finish_core
authorDavid Ahern <dsahern@gmail.com>
Mon, 25 Feb 2019 21:55:48 +0000 (13:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 05:44:20 +0000 (21:44 -0800)
commita1fd1ad2552fad9e649eeb85fd79301e2880a886
tree22c877981dda0460c8ca573dbf8f3f0c346a201a
parente27775a4bec55d3fa99c4f325b88871ad8ab10fc
ipv4: Pass original device to ip_rcv_finish_core

ip_route_input_rcu expects the original ingress device (e.g., for
proper multicast handling). The skb->dev can be changed by l3mdev_ip_rcv,
so dev needs to be saved prior to calling it. This was the behavior prior
to the listify changes.

Fixes: 5fa12739a53d0 ("net: ipv4: listify ip_rcv_finish")
Cc: Edward Cree <ecree@solarflare.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c