mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
48e01e001d
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>
21 lines
716 B
Makefile
21 lines
716 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright(c) 1999 - 2018 Intel Corporation.
|
|
#
|
|
# Makefile for the Intel(R) 10GbE PCI Express ethernet driver
|
|
#
|
|
|
|
obj-$(CONFIG_IXGBE) += ixgbe.o
|
|
|
|
ixgbe-objs := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \
|
|
ixgbe_82599.o ixgbe_82598.o ixgbe_phy.o ixgbe_sriov.o \
|
|
ixgbe_mbx.o ixgbe_x540.o ixgbe_x550.o ixgbe_lib.o ixgbe_ptp.o \
|
|
ixgbe_xsk.o
|
|
|
|
ixgbe-$(CONFIG_IXGBE_DCB) += ixgbe_dcb.o ixgbe_dcb_82598.o \
|
|
ixgbe_dcb_82599.o ixgbe_dcb_nl.o
|
|
|
|
ixgbe-$(CONFIG_IXGBE_HWMON) += ixgbe_sysfs.o
|
|
ixgbe-$(CONFIG_DEBUG_FS) += ixgbe_debugfs.o
|
|
ixgbe-$(CONFIG_FCOE:m=y) += ixgbe_fcoe.o
|
|
ixgbe-$(CONFIG_IXGBE_IPSEC) += ixgbe_ipsec.o
|