|
8 | 8 | include $(TOPDIR)/rules.mk
|
9 | 9 |
|
10 | 10 | PKG_NAME:=iproute2
|
11 |
| -PKG_VERSION:=5.15.0 |
| 11 | +PKG_VERSION:=5.19.0 |
12 | 12 | PKG_RELEASE:=$(AUTORELEASE)
|
13 | 13 |
|
14 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
15 | 15 | PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2
|
16 |
| -PKG_HASH:=38e3e4a5f9a7f5575c015027a10df097c149111eeb739993128e5b2b35b291ff |
| 16 | +PKG_HASH:=26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791 |
17 | 17 | PKG_BUILD_PARALLEL:=1
|
18 | 18 | PKG_BUILD_DEPENDS:=iptables
|
19 | 19 | PKG_LICENSE:=GPL-2.0
|
@@ -57,21 +57,31 @@ $(call Package/iproute2/Default)
|
57 | 57 | DEFAULT_VARIANT:=1
|
58 | 58 | PROVIDES:=tc
|
59 | 59 | ALTERNATIVES:=200:/sbin/tc:/usr/libexec/tc-tiny
|
60 |
| - DEPENDS:=+kmod-sched-core +libxtables +tc-mod-iptables +(PACKAGE_devlink||PACKAGE_rdma):libmnl |
| 60 | + DEPENDS:=+kmod-sched-core +(PACKAGE_devlink||PACKAGE_rdma):libmnl |
| 61 | +endef |
| 62 | + |
| 63 | +define Package/tc-bpf |
| 64 | +$(call Package/iproute2/Default) |
| 65 | + TITLE:=Traffic control utility (bpf) |
| 66 | + VARIANT:=tcbpf |
| 67 | + PROVIDES:=tc |
| 68 | + ALTERNATIVES:=300:/sbin/tc:/usr/libexec/tc-bpf |
| 69 | + DEPENDS:=+kmod-sched-core +(PACKAGE_devlink||PACKAGE_rdma):libmnl +libbpf |
61 | 70 | endef
|
62 | 71 |
|
63 | 72 | define Package/tc-full
|
64 | 73 | $(call Package/iproute2/Default)
|
65 | 74 | TITLE:=Traffic control utility (full)
|
66 | 75 | VARIANT:=tcfull
|
67 | 76 | PROVIDES:=tc
|
68 |
| - ALTERNATIVES:=300:/sbin/tc:/usr/libexec/tc-full |
69 |
| - DEPENDS:=+kmod-sched-core +libxtables +tc-mod-iptables +libbpf +(PACKAGE_devlink||PACKAGE_rdma):libmnl |
| 77 | + ALTERNATIVES:=400:/sbin/tc:/usr/libexec/tc-full |
| 78 | + DEPENDS:=+kmod-sched-core +(PACKAGE_devlink||PACKAGE_rdma):libmnl +libbpf +libxtables +tc-mod-iptables |
70 | 79 | endef
|
71 | 80 |
|
72 | 81 | define Package/tc-mod-iptables
|
73 | 82 | $(call Package/iproute2/Default)
|
74 | 83 | TITLE:=Traffic control module - iptables action
|
| 84 | + VARIANT:=tcfull |
75 | 85 | DEPENDS:=+libxtables
|
76 | 86 | endef
|
77 | 87 |
|
@@ -123,13 +133,29 @@ endif
|
123 | 133 |
|
124 | 134 | ifeq ($(BUILD_VARIANT),tctiny)
|
125 | 135 | LIBBPF_FORCE:=off
|
| 136 | +endif |
| 137 | + |
| 138 | +ifeq ($(BUILD_VARIANT),tcbpf) |
| 139 | + HAVE_ELF:=y |
| 140 | + LIBBPF_FORCE:=on |
126 | 141 | SHARED_LIBS:=y
|
127 | 142 | endif
|
128 | 143 |
|
129 | 144 | ifeq ($(BUILD_VARIANT),tcfull)
|
| 145 | + #enable iptables/xtables requirement only if tciptables variant is selected |
| 146 | + TC_CONFIG_XT:=y |
| 147 | + TC_CONFIG_XT_OLD:=y |
| 148 | + TC_CONFIG_XT_OLD_H:=y |
| 149 | + TC_CONFIG_IPSET:=y |
130 | 150 | HAVE_ELF:=y
|
131 | 151 | LIBBPF_FORCE:=on
|
132 | 152 | SHARED_LIBS:=y
|
| 153 | +else |
| 154 | + #disable iptables requirement by default |
| 155 | + TC_CONFIG_XT:=n |
| 156 | + TC_CONFIG_XT_OLD:=n |
| 157 | + TC_CONFIG_XT_OLD_H:=n |
| 158 | + TC_CONFIG_IPSET:=n |
133 | 159 | endif
|
134 | 160 |
|
135 | 161 | ifdef CONFIG_PACKAGE_devlink
|
@@ -158,8 +184,13 @@ MAKE_FLAGS += \
|
158 | 184 | HAVE_ELF=$(HAVE_ELF) \
|
159 | 185 | HAVE_MNL=$(HAVE_MNL) \
|
160 | 186 | HAVE_CAP=$(HAVE_CAP) \
|
| 187 | + HAVE_TIRPC=n \ |
161 | 188 | IPT_LIB_DIR=/usr/lib/iptables \
|
162 | 189 | XT_LIB_DIR=/usr/lib/iptables \
|
| 190 | + TC_CONFIG_XT=$(TC_CONFIG_XT) \ |
| 191 | + TC_CONFIG_XT_OLD=$(TC_CONFIG_XT_OLD) \ |
| 192 | + TC_CONFIG_XT_OLD_H=$(TC_CONFIG_XT_OLD_H) \ |
| 193 | + TC_CONFIG_IPSET=$(TC_CONFIG_IPSET) \ |
163 | 194 | FPIC="$(FPIC)" \
|
164 | 195 | $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='')
|
165 | 196 |
|
@@ -190,6 +221,11 @@ define Package/tc-tiny/install
|
190 | 221 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/libexec/tc-tiny
|
191 | 222 | endef
|
192 | 223 |
|
| 224 | +define Package/tc-bpf/install |
| 225 | + $(INSTALL_DIR) $(1)/usr/libexec |
| 226 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/libexec/tc-bpf |
| 227 | +endef |
| 228 | + |
193 | 229 | define Package/tc-full/install
|
194 | 230 | $(INSTALL_DIR) $(1)/usr/libexec
|
195 | 231 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/libexec/tc-full
|
@@ -236,6 +272,7 @@ $(eval $(call BuildPackage,ip-full))
|
236 | 272 | # spurious rebuilds when building multiple variants.
|
237 | 273 | $(eval $(call BuildPackage,tc-mod-iptables))
|
238 | 274 | $(eval $(call BuildPackage,tc-tiny))
|
| 275 | +$(eval $(call BuildPackage,tc-bpf)) |
239 | 276 | $(eval $(call BuildPackage,tc-full))
|
240 | 277 | $(eval $(call BuildPackage,genl))
|
241 | 278 | $(eval $(call BuildPackage,ip-bridge))
|
|
0 commit comments