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>
Showing
想要评论请 注册 或 登录