mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
intel-eth: fix build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
dd689d9d24
commit
a798decbc7
28
package/kernel/i40e/patches/100-dcb-condition.patch
Normal file
28
package/kernel/i40e/patches/100-dcb-condition.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- a/src/i40e_virtchnl_pf.c
|
||||||
|
+++ b/src/i40e_virtchnl_pf.c
|
||||||
|
@@ -6661,7 +6661,6 @@ int i40e_get_vf_stats(struct net_device
|
||||||
|
#endif /* HAVE_VF_STATS */
|
||||||
|
#endif /* IFLA_VF_MAX */
|
||||||
|
#ifdef HAVE_NDO_SET_VF_LINK_STATE
|
||||||
|
-#ifdef CONFIG_DCB
|
||||||
|
#ifdef CONFIG_PCI_IOV
|
||||||
|
/**
|
||||||
|
* i40e_configure_vf_link
|
||||||
|
@@ -6739,6 +6738,7 @@ error_out:
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef CONFIG_DCB
|
||||||
|
/**
|
||||||
|
* i40e_enable_vf_queues
|
||||||
|
* @vsi: PCI device information struct
|
||||||
|
@@ -6792,8 +6792,8 @@ int i40e_enable_vf_queues(struct i40e_vs
|
||||||
|
err_out:
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
-#endif /* PCI_IOV */
|
||||||
|
#endif /* CONFIG_DCB */
|
||||||
|
+#endif /* PCI_IOV */
|
||||||
|
/**
|
||||||
|
* i40e_get_vlan_anti_spoof
|
||||||
|
* @pdev: PCI device information struct
|
@ -35,6 +35,17 @@ define KernelPackage/ice-vendor/description
|
|||||||
Kernel modules for Intel(R) Ethernet Controller E810 Series
|
Kernel modules for Intel(R) Ethernet Controller E810 Series
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
( \
|
||||||
|
pushd $(PKG_BUILD_DIR)/src ; \
|
||||||
|
KSRC=$(LINUX_DIR) \
|
||||||
|
OUT=kcompat_generated_defs.h \
|
||||||
|
CONFFILE=$(LINUX_DIR)/include/generated/autoconf.h \
|
||||||
|
bash kcompat-generator.sh ; \
|
||||||
|
popd ; \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
||||||
M=$(PKG_BUILD_DIR)/src \
|
M=$(PKG_BUILD_DIR)/src \
|
||||||
|
@ -35,6 +35,17 @@ define KernelPackage/ixgbe-vendor/description
|
|||||||
Kernel modules for Intel(R) 82598/82599 PCI-Express 10 Gigabit Ethernet adapters.
|
Kernel modules for Intel(R) 82598/82599 PCI-Express 10 Gigabit Ethernet adapters.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
( \
|
||||||
|
pushd $(PKG_BUILD_DIR)/src ; \
|
||||||
|
KSRC=$(LINUX_DIR) \
|
||||||
|
OUT=kcompat_generated_defs.h \
|
||||||
|
CONFFILE=$(LINUX_DIR)/include/generated/autoconf.h \
|
||||||
|
bash kcompat-generator.sh ; \
|
||||||
|
popd ; \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
||||||
M=$(PKG_BUILD_DIR)/src \
|
M=$(PKG_BUILD_DIR)/src \
|
||||||
|
@ -35,6 +35,17 @@ define KernelPackage/ixgbevf-vendor/description
|
|||||||
Kernel modules for Intel(R) 82599 Virtual Function Ethernet adapters.
|
Kernel modules for Intel(R) 82599 Virtual Function Ethernet adapters.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
( \
|
||||||
|
pushd $(PKG_BUILD_DIR)/src ; \
|
||||||
|
KSRC=$(LINUX_DIR) \
|
||||||
|
OUT=kcompat_generated_defs.h \
|
||||||
|
CONFFILE=$(LINUX_DIR)/include/generated/autoconf.h \
|
||||||
|
bash kcompat-generator.sh ; \
|
||||||
|
popd ; \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
||||||
M=$(PKG_BUILD_DIR)/src \
|
M=$(PKG_BUILD_DIR)/src \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user