From 1d6103ae4cce545c231de9498d0e70564e7b734e Mon Sep 17 00:00:00 2001 From: Dust Li Date: Mon, 18 May 2020 20:21:38 +0800 Subject: [PATCH] configs/x86: add some NET_EMATCH options as module to #27793353 The following configs are set to 'm' to make x86 the same as aarch64. CONFIG_NET_EMATCH_CMP=m CONFIG_NET_EMATCH_NBYTE=m CONFIG_NET_EMATCH_U32=m CONFIG_NET_EMATCH_META=m CONFIG_NET_EMATCH_TEXT=m Some commonly used cases need CONFIG_NET_EMATCH_CMP, for example: tc qdisc add dev eth0 root handle 1: prio bands 4 tc qdisc add dev eth0 parent 1:4 handle 40: netem delay 20ms 2ms tc filter add dev eth0 parent 1: protocol ip prio 4 basic match "cmp(u16 at 2 layer transport eq 3306) and cmp(u8 at 16 layer network eq 10) and cmp(u8 at 17 layer network eq 0) and cmp(u8 at 18 layer network eq 200) and cmp(u8 at 19 layer network eq 45)" flowid 1:4 Signed-off-by: Dust Li Reviewed-by: Shile Zhang Acked-by: Joseph Qi --- configs/config-4.19.y-x86_64 | 10 +++++----- configs/config-4.19.y-x86_64-debug | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/configs/config-4.19.y-x86_64 b/configs/config-4.19.y-x86_64 index 2c6e6b782372..063fb3e86680 100644 --- a/configs/config-4.19.y-x86_64 +++ b/configs/config-4.19.y-x86_64 @@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y # CONFIG_NET_CLS_MATCHALL is not set CONFIG_NET_EMATCH=y CONFIG_NET_EMATCH_STACK=32 -# CONFIG_NET_EMATCH_CMP is not set -# CONFIG_NET_EMATCH_NBYTE is not set -# CONFIG_NET_EMATCH_U32 is not set -# CONFIG_NET_EMATCH_META is not set -# CONFIG_NET_EMATCH_TEXT is not set +CONFIG_NET_EMATCH_CMP=m +CONFIG_NET_EMATCH_NBYTE=m +CONFIG_NET_EMATCH_U32=m +CONFIG_NET_EMATCH_META=m +CONFIG_NET_EMATCH_TEXT=m CONFIG_NET_EMATCH_IPSET=m CONFIG_NET_EMATCH_IPT=m CONFIG_NET_CLS_ACT=y diff --git a/configs/config-4.19.y-x86_64-debug b/configs/config-4.19.y-x86_64-debug index 378c3bfad1cc..05b4c2b150bb 100644 --- a/configs/config-4.19.y-x86_64-debug +++ b/configs/config-4.19.y-x86_64-debug @@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y # CONFIG_NET_CLS_MATCHALL is not set CONFIG_NET_EMATCH=y CONFIG_NET_EMATCH_STACK=32 -# CONFIG_NET_EMATCH_CMP is not set -# CONFIG_NET_EMATCH_NBYTE is not set -# CONFIG_NET_EMATCH_U32 is not set -# CONFIG_NET_EMATCH_META is not set -# CONFIG_NET_EMATCH_TEXT is not set +CONFIG_NET_EMATCH_CMP=m +CONFIG_NET_EMATCH_NBYTE=m +CONFIG_NET_EMATCH_U32=m +CONFIG_NET_EMATCH_META=m +CONFIG_NET_EMATCH_TEXT=m CONFIG_NET_EMATCH_IPSET=m CONFIG_NET_EMATCH_IPT=m CONFIG_NET_CLS_ACT=y -- GitLab