[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ab681fc339702c10f83ea8da2aa124239c770855.camel@mellanox.com>
Date: Thu, 1 Aug 2019 19:14:07 +0000
From: Saeed Mahameed <saeedm@...lanox.com>
To: Roi Dayan <roid@...lanox.com>,
"xiangxia.m.yue@...il.com" <xiangxia.m.yue@...il.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] net/mlx5e: Allow dropping specific tunnel
packets
On Thu, 2019-08-01 at 16:40 +0800, xiangxia.m.yue@...il.com wrote:
> From: Tonghao Zhang <xiangxia.m.yue@...il.com>
>
> In some case, we don't want to allow specific tunnel packets
> to host that can avoid to take up high CPU (e.g network attacks).
> But other tunnel packets which not matched in hardware will be
> sent to host too.
>
> $ tc filter add dev vxlan_sys_4789 \
> protocol ip chain 0 parent ffff: prio 1 handle 1 \
> flower dst_ip 1.1.1.100 ip_proto tcp dst_port 80 \
> enc_dst_ip 2.2.2.100 enc_key_id 100 enc_dst_port 4789 \
> action tunnel_key unset pipe action drop
>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@...il.com>
Applied to net-next-mlx5.
Thanks!
Powered by blists - more mailing lists