]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fb94e9e3b951572b001108eda7c41339bfa9636
tree22c877981dda0460c8ca573dbf8f3f0c346a201a
parentdfa5e78f8843bca1e57580cec901c51beaa8b040
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: 2b6d77cd1c42a ("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