提交 1d6103ae 编写于 作者: D Dust Li

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: NDust Li <dust.li@linux.alibaba.com>
Reviewed-by: NShile Zhang <shile.zhang@linux.alibaba.com>
Acked-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
上级 0093b9dd
...@@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y ...@@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y
# CONFIG_NET_CLS_MATCHALL is not set # CONFIG_NET_CLS_MATCHALL is not set
CONFIG_NET_EMATCH=y CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32 CONFIG_NET_EMATCH_STACK=32
# CONFIG_NET_EMATCH_CMP is not set CONFIG_NET_EMATCH_CMP=m
# CONFIG_NET_EMATCH_NBYTE is not set CONFIG_NET_EMATCH_NBYTE=m
# CONFIG_NET_EMATCH_U32 is not set CONFIG_NET_EMATCH_U32=m
# CONFIG_NET_EMATCH_META is not set CONFIG_NET_EMATCH_META=m
# CONFIG_NET_EMATCH_TEXT is not set CONFIG_NET_EMATCH_TEXT=m
CONFIG_NET_EMATCH_IPSET=m CONFIG_NET_EMATCH_IPSET=m
CONFIG_NET_EMATCH_IPT=m CONFIG_NET_EMATCH_IPT=m
CONFIG_NET_CLS_ACT=y CONFIG_NET_CLS_ACT=y
......
...@@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y ...@@ -1521,11 +1521,11 @@ CONFIG_NET_CLS_BPF=y
# CONFIG_NET_CLS_MATCHALL is not set # CONFIG_NET_CLS_MATCHALL is not set
CONFIG_NET_EMATCH=y CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32 CONFIG_NET_EMATCH_STACK=32
# CONFIG_NET_EMATCH_CMP is not set CONFIG_NET_EMATCH_CMP=m
# CONFIG_NET_EMATCH_NBYTE is not set CONFIG_NET_EMATCH_NBYTE=m
# CONFIG_NET_EMATCH_U32 is not set CONFIG_NET_EMATCH_U32=m
# CONFIG_NET_EMATCH_META is not set CONFIG_NET_EMATCH_META=m
# CONFIG_NET_EMATCH_TEXT is not set CONFIG_NET_EMATCH_TEXT=m
CONFIG_NET_EMATCH_IPSET=m CONFIG_NET_EMATCH_IPSET=m
CONFIG_NET_EMATCH_IPT=m CONFIG_NET_EMATCH_IPT=m
CONFIG_NET_CLS_ACT=y CONFIG_NET_CLS_ACT=y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册