Skip to content

Commit 4990124

Browse files
committed
kernel: r8168: add RSS variant
Instead of enabling RSS support, let's introduce a variant and let users choose between both variants since it can cause network issues. Signed-off-by: Álvaro Fernández Rojas <[email protected]> (cherry picked from commit cb3fc1a)
1 parent da59bc0 commit 4990124

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

package/kernel/r8168/Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=r8168
44
PKG_VERSION:=8.055.00
5-
PKG_RELEASE:=2
5+
PKG_RELEASE:=3
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
88
PKG_SOURCE_URL:=https://github.com/openwrt/rtl8168/releases/download/$(PKG_VERSION)
@@ -22,12 +22,27 @@ define KernelPackage/r8168
2222
FILES:=$(PKG_BUILD_DIR)/src/r8168.ko
2323
AUTOLOAD:=$(call AutoProbe,r8168,1)
2424
PROVIDES:=kmod-r8169
25+
VARIANT:=regular
2526
endef
2627

28+
define KernelPackage/r8168-rss
29+
$(call KernelPackage/r8168)
30+
CONFLICTS:=kmod-r8168
31+
TITLE+= (RSS)
32+
VARIANT:=rss
33+
endef
34+
35+
ifeq ($(BUILD_VARIANT),rss)
36+
PKG_MAKE_FLAGS += \
37+
ENABLE_MULTIPLE_TX_QUEUE=y \
38+
ENABLE_RSS_SUPPORT=y
39+
endif
40+
2741
define Build/Compile
2842
+$(KERNEL_MAKE) $(PKG_JOBS) \
2943
M="$(PKG_BUILD_DIR)/src" \
3044
modules
3145
endef
3246

3347
$(eval $(call KernelPackage,r8168))
48+
$(eval $(call KernelPackage,r8168-rss))

0 commit comments

Comments
 (0)