xfrm: bail early on slave pass over skb
authorJarod Wilson <jarod@redhat.com>
Fri, 19 Jun 2020 14:31:52 +0000 (10:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 22:38:56 +0000 (15:38 -0700)
commit272c2330adc9c68284cb0066719160c24bfe605f
tree087f176b55123bb750f8e217e498c40699bcfc1b
parent389cc2f326fd095edc1c09d7713ac9f9dd591f8a
xfrm: bail early on slave pass over skb

This is prep work for initial support of bonding hardware encryption
pass-through support. The bonding driver will fill in the slave_dev
pointer, and we use that to know not to skb_push() again on a given
skb that was already processed on the bond device.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: "David S. Miller" <davem@davemloft.net>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Steffen Klassert <steffen.klassert@secunet.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: netdev@vger.kernel.org
CC: intel-wired-lan@lists.osuosl.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_device.c