* mlx5e throwing RTNL_ASSERT error on vxlan_get_rx_port
@ 2016-04-22 19:30 Alexander Duyck
2016-04-22 20:02 ` Saeed Mahameed
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Duyck @ 2016-04-22 19:30 UTC (permalink / raw)
To: Saeed Mahameed, David Miller, Hannes Frederic Sowa, Netdev
>From what I can tell it looks like the recent commit that changed the
behavior for vxlan_get_rx_port has broken the mlx5 driver as it was
calling vxlan_get_rx_port in mlx5e_create_netdev which didn't hold the
rtnl lock. As a result it is throwing RTNL_ASSERT errors.
I'm not sure if anyone has already seen this or not but I thought I
would bring it to your attention. Odds are this probably something
that needs to be fixed in the mlx5e driver and if I have time I might
get to it sometime in the next several days if nobody else ends up
addressing it.
Thanks.
- Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mlx5e throwing RTNL_ASSERT error on vxlan_get_rx_port
2016-04-22 19:30 mlx5e throwing RTNL_ASSERT error on vxlan_get_rx_port Alexander Duyck
@ 2016-04-22 20:02 ` Saeed Mahameed
2016-04-25 9:07 ` Hannes Frederic Sowa
0 siblings, 1 reply; 3+ messages in thread
From: Saeed Mahameed @ 2016-04-22 20:02 UTC (permalink / raw)
To: Alexander Duyck
Cc: Saeed Mahameed, David Miller, Hannes Frederic Sowa, Netdev,
Matthew Finlay, Yevgeny Petrilin, Arnd Bergmann
On Fri, Apr 22, 2016 at 10:30 PM, Alexander Duyck
<alexander.duyck@gmail.com> wrote:
> From what I can tell it looks like the recent commit that changed the
> behavior for vxlan_get_rx_port has broken the mlx5 driver as it was
> calling vxlan_get_rx_port in mlx5e_create_netdev which didn't hold the
> rtnl lock. As a result it is throwing RTNL_ASSERT errors.
>
Nice catch Alex.
> I'm not sure if anyone has already seen this or not but I thought I
> would bring it to your attention. Odds are this probably something
> that needs to be fixed in the mlx5e driver and if I have time I might
> get to it sometime in the next several days if nobody else ends up
> addressing it.
>
Matt will handle it, he is already preparing two fixes in mlx5 vxlan
area, one is to address the kconfig issue Arnd reported and the other
is to address the scheduling while atomic in mlx5e_vxlan_add ndo
implementation which can sleep, from vxlan module it is called under
rcu_read_lock.
Thanks,
Saeed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mlx5e throwing RTNL_ASSERT error on vxlan_get_rx_port
2016-04-22 20:02 ` Saeed Mahameed
@ 2016-04-25 9:07 ` Hannes Frederic Sowa
0 siblings, 0 replies; 3+ messages in thread
From: Hannes Frederic Sowa @ 2016-04-25 9:07 UTC (permalink / raw)
To: Saeed Mahameed, Alexander Duyck
Cc: Saeed Mahameed, David Miller, Netdev, Matthew Finlay,
Yevgeny Petrilin, Arnd Bergmann
Hello,
On 22.04.2016 22:02, Saeed Mahameed wrote:
> On Fri, Apr 22, 2016 at 10:30 PM, Alexander Duyck
> <alexander.duyck@gmail.com> wrote:
>> From what I can tell it looks like the recent commit that changed the
>> behavior for vxlan_get_rx_port has broken the mlx5 driver as it was
>> calling vxlan_get_rx_port in mlx5e_create_netdev which didn't hold the
>> rtnl lock. As a result it is throwing RTNL_ASSERT errors.
>>
>
> Nice catch Alex.
>
>> I'm not sure if anyone has already seen this or not but I thought I
>> would bring it to your attention. Odds are this probably something
>> that needs to be fixed in the mlx5e driver and if I have time I might
>> get to it sometime in the next several days if nobody else ends up
>> addressing it.
>>
>
> Matt will handle it, he is already preparing two fixes in mlx5 vxlan
> area, one is to address the kconfig issue Arnd reported and the other
> is to address the scheduling while atomic in mlx5e_vxlan_add ndo
> implementation which can sleep, from vxlan module it is called under
> rcu_read_lock.
Hm, I probably overlooked something during review or this change in
vxlan_get_rx_port or something came in during the time I was pushing
those changes at the same time. I just had a look and the fix shouldn't
be that hard.
Thanks,
Hannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-25 9:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-22 19:30 mlx5e throwing RTNL_ASSERT error on vxlan_get_rx_port Alexander Duyck
2016-04-22 20:02 ` Saeed Mahameed
2016-04-25 9:07 ` Hannes Frederic Sowa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).