[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ3xEMhvw7FCJAWq8duVVzHoGGnRwkb-4-n00rDB4A_VQBUhJA@mail.gmail.com>
Date: Sun, 27 Jan 2019 18:32:55 +0200
From: Or Gerlitz <gerlitz.or@...il.com>
To: David Miller <davem@...emloft.net>,
Saeed Mahameed <saeedm@...lanox.com>
Cc: Linux Netdev List <netdev@...r.kernel.org>,
Tonghao Zhang <xiangxia.m.yue@...il.com>,
Hadar Hen Zion <hadarh@...lanox.com>
Subject: Re: [PATCH net v4 1/2] net/mlx5e: Update hw flows when encap source
mac changed
On Sun, Jan 27, 2019 at 1:06 PM <xiangxia.m.yue@...il.com> wrote:
> From: Tonghao Zhang <xiangxia.m.yue@...il.com>
>
> When we offload tc filters to hardware, hardware flows can
> be updated when mac of encap destination ip is changed.
> But we ignore one case, that the mac of local encap ip can
> be changed too, so we should also update them.
>
> To fix it, add route_dev in mlx5e_encap_entry struct to save
> the local encap netdevice, and when mac changed, kernel will
> flush all the neighbour on the netdevice and send NETEVENT_NEIGH_UPDATE
> event. The mlx5 driver will delete the flows and add them when neighbour
> available again.
>
> Fixes: 232c001398ae ("net/mlx5e: Add support to neighbour update flow")
> Cc: Hadar Hen Zion <hadarh@...lanox.com>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@...il.com>
> Reviewed-by: Or Gerlitz <ogerlitz@...lanox.com>
+1 again
this one is good to go upstream
Powered by blists - more mailing lists