forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: autocore: x86 change RPS/XPS handling to all CPUs uci: add uci_add_list method ipq40xx: swtich to kernel 4.19 Update v2ray version to 4.26.0 (coolsnowwolf#4983) Bump v2ray-plugin to 1.3.3 (coolsnowwolf#5003) linux-firmware: Update linux-firmware to 20200619 wireless: wext: remove ndo_do_ioctl fallback rampis: newifi3: adjust led settings (coolsnowwolf#4999) qBittorrent: bump to v4.2.5 (coolsnowwolf#5000) ipq40xx: less ess_edma ipv6 log output luci-app-unblockmusic: enable lossless for go version kernel: Fix ath79 DSP exception at bootup download.pl:add mirrors for mainland China users kernel: update to 4.14.187, 4.19.131, 5.4.50 shortcut-fe: splite to 2 packges and rip off ipv6 UnblockNeteaseMusicGo: bump version to 0.2.3 (coolsnowwolf#4988)
- Loading branch information
Showing
178 changed files
with
776 additions
and
1,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=fast-classifier | ||
PKG_RELEASE:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define KernelPackage/$(PKG_NAME)/Default | ||
SECTION:=kernel | ||
CATEGORY:=Kernel modules | ||
SUBMENU:=Network Support | ||
DEPENDS:=+kmod-ipt-conntrack +kmod-shortcut-fe | ||
TITLE:=Kernel driver for FAST Classifier | ||
FILES:=$(PKG_BUILD_DIR)/fast-classifier.ko | ||
KCONFIG:=CONFIG_NF_CONNTRACK_CHAIN_EVENTS=y CONFIG_NF_CONNTRACK_MARK=y | ||
PROVIDES:=$(PKG_NAME) | ||
endef | ||
|
||
define KernelPackage/$(PKG_NAME) | ||
$(call KernelPackage/$(PKG_NAME)/Default) | ||
endef | ||
|
||
define KernelPackage/$(PKG_NAME)-noload | ||
$(call KernelPackage/$(PKG_NAME)/Default) | ||
endef | ||
|
||
define KernelPackage/$(PKG_NAME)/Default/description | ||
FAST Classifier talks to SFE to make decisions about offloading connections | ||
endef | ||
|
||
define KernelPackage/$(PKG_NAME)/description | ||
$(call KernelPackage/$(PKG_NAME)/Default/description) | ||
endef | ||
|
||
define KernelPackage/$(PKG_NAME)-noload/description | ||
$(call KernelPackage/$(PKG_NAME)/Default/description) | ||
|
||
This package does not load $(PKG_NAME) at boot by default | ||
endef | ||
|
||
define Package/fast-classifier-example | ||
TITLE:=Example user space program for fast-classifier | ||
DEPENDS:=+libnl +kmod-fast-classifier | ||
endef | ||
|
||
define Package/fast-classifier-example/description | ||
Example user space program that communicates with fast | ||
classifier kernel module | ||
endef | ||
|
||
SFE_MAKE_OPTS:=SFE_SUPPORT_IPV6=y | ||
|
||
define Build/Compile/kmod | ||
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" $(strip $(SFE_MAKE_OPTS)) \ | ||
$(KERNEL_MAKE_FLAGS) \ | ||
$(PKG_MAKE_FLAGS) \ | ||
M="$(PKG_BUILD_DIR)" \ | ||
CONFIG_FAST_CLASSIFIER=m \ | ||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ | ||
modules | ||
endef | ||
|
||
define Build/Compile/example | ||
$(TARGET_CC) -o $(PKG_BUILD_DIR)/userspace_fast_classifier \ | ||
-I $(PKG_BUILD_DIR) \ | ||
-I$(STAGING_DIR)/usr/include/libnl \ | ||
-I$(STAGING_DIR)/usr/include/libnl3 \ | ||
-lnl-genl-3 -lnl-3 \ | ||
$(PKG_BUILD_DIR)/nl_classifier_test.c | ||
endef | ||
|
||
define Build/Compile | ||
$(Build/Compile/kmod) | ||
$(if $(CONFIG_PACKAGE_fast-classifier-example),$(Build/Compile/example)) | ||
endef | ||
|
||
define Build/InstallDev | ||
$(INSTALL_DIR) $(1)/usr/include | ||
$(CP) $(PKG_BUILD_DIR)/fast-classifier.h $(1)/usr/include/ | ||
endef | ||
|
||
|
||
define Package/fast-classifier-example/install | ||
$(INSTALL_DIR) $(1)/sbin | ||
$(CP) $(PKG_BUILD_DIR)/userspace_fast_classifier $(1)/sbin/ | ||
endef | ||
|
||
$(eval $(call KernelPackage,$(PKG_NAME))) | ||
$(eval $(call KernelPackage,$(PKG_NAME)-noload)) | ||
$(eval $(call BuildPackage,fast-classifier-example)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
obj-$(CONFIG_FAST_CLASSIFIER) += fast-classifier.o | ||
|
||
ifeq ($(SFE_SUPPORT_IPV6),) | ||
SFE_SUPPORT_IPV6=y | ||
endif | ||
ccflags-$(SFE_SUPPORT_IPV6) += -DSFE_SUPPORT_IPV6 | ||
|
||
ccflags-y += -I$(obj)/../shortcut-fe | ||
|
||
obj ?= . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.