linux_dsm_epyc7002/drivers/net/ethernet/intel/ixgbevf
Jeff Kirsher 48e01e001d ixgbe/ixgbevf: fix XFRM_ALGO dependency
Based on the original work from Arnd Bergmann.

When XFRM_ALGO is not enabled, the new ixgbe IPsec code produces a
link error:

drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.o: In function `ixgbe_ipsec_vf_add_sa':
ixgbe_ipsec.c:(.text+0x1266): undefined reference to `xfrm_aead_get_byname'

Simply selecting XFRM_ALGO from here causes circular dependencies, so
to fix it, we probably want this slightly more complex solution that is
similar to what other drivers with XFRM offload do:

A separate Kconfig symbol now controls whether we include the IPsec
offload code. To keep the old behavior, this is left as 'default y'. The
dependency in XFRM_OFFLOAD still causes a circular dependency but is
not actually needed because this symbol is not user visible, so removing
that dependency on top makes it all work.

CC: Arnd Bergmann <arnd@arndb.de>
CC: Shannon Nelson <shannon.nelson@oracle.com>
Fixes: eda0333ac2 ("ixgbe: add VF IPsec management")
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
2018-10-31 10:53:15 -07:00
..
defines.h ixgbevf: enable VF IPsec offload operations 2018-08-28 14:33:30 -07:00
ethtool.c ixgbevf: enable VF IPsec offload operations 2018-08-28 14:33:30 -07:00
ipsec.c ixgbevf: off by one in ixgbevf_ipsec_tx() 2018-10-03 12:29:34 -07:00
ipsec.h ixgbevf: add VF IPsec offload code 2018-08-28 14:33:26 -07:00
ixgbevf_main.c ixgbe/ixgbevf: fix XFRM_ALGO dependency 2018-10-31 10:53:15 -07:00
ixgbevf.h ixgbe/ixgbevf: fix XFRM_ALGO dependency 2018-10-31 10:53:15 -07:00
Makefile ixgbe/ixgbevf: fix XFRM_ALGO dependency 2018-10-31 10:53:15 -07:00
mbx.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
mbx.h ixgbevf: add defines for IPsec offload request 2018-08-28 14:33:19 -07:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
vf.c ixgbevf: enable VF IPsec offload operations 2018-08-28 14:33:30 -07:00
vf.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00