]> 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)
commit56198612d61af06b2ddd5296efe0fa9d543dbf6a
tree22c877981dda0460c8ca573dbf8f3f0c346a201a
parent2d9825d96aef046521b7a871d011be9419488a12
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: 7ce5620b0a74f ("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