* [PATCH net] net/mlx4_en: Fixed crash when port type is changed
@ 2013-11-07 9:08 Amir Vadai
2013-11-08 0:14 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Amir Vadai @ 2013-11-07 9:08 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, Amir Vadai, Yevgeny Petrilin, Or Gerlitz
timecounter_init() was was called only after first potential
timecounter_read().
Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()
Signed-off-by: Amir Vadai <amirv@mellanox.com>
---
Please pull into -stable for kernels >= 3.10
drivers/net/ethernet/mellanox/mlx4/en_main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_main.c b/drivers/net/ethernet/mellanox/mlx4/en_main.c
index a071cda..0d087b0 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_main.c
@@ -264,6 +264,10 @@ static void *mlx4_en_add(struct mlx4_dev *dev)
mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_ETH)
mdev->port_cnt++;
+ /* Initialize time stamp mechanism */
+ if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_TS)
+ mlx4_en_init_timestamp(mdev);
+
mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_ETH) {
if (!dev->caps.comp_pool) {
mdev->profile.prof[i].rx_ring_num =
@@ -301,10 +305,6 @@ static void *mlx4_en_add(struct mlx4_dev *dev)
mdev->pndev[i] = NULL;
}
- /* Initialize time stamp mechanism */
- if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_TS)
- mlx4_en_init_timestamp(mdev);
-
return mdev;
err_mr:
--
1.8.3.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net] net/mlx4_en: Fixed crash when port type is changed
2013-11-07 9:08 [PATCH net] net/mlx4_en: Fixed crash when port type is changed Amir Vadai
@ 2013-11-08 0:14 ` David Miller
2014-02-16 10:03 ` Amir Vadai
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2013-11-08 0:14 UTC (permalink / raw)
To: amirv; +Cc: netdev, yevgenyp, ogerlitz
From: Amir Vadai <amirv@mellanox.com>
Date: Thu, 7 Nov 2013 11:08:30 +0200
> timecounter_init() was was called only after first potential
> timecounter_read().
> Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()
>
> Signed-off-by: Amir Vadai <amirv@mellanox.com>
> ---
> Please pull into -stable for kernels >= 3.10
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net] net/mlx4_en: Fixed crash when port type is changed
2013-11-08 0:14 ` David Miller
@ 2014-02-16 10:03 ` Amir Vadai
2014-02-16 10:55 ` Govindarajulu Varadarajan
0 siblings, 1 reply; 5+ messages in thread
From: Amir Vadai @ 2014-02-16 10:03 UTC (permalink / raw)
To: David Miller; +Cc: netdev, yevgenyp, ogerlitz
On 07/11/13 19:14 -0500, David Miller wrote:
> From: Amir Vadai <amirv@mellanox.com>
> Date: Thu, 7 Nov 2013 11:08:30 +0200
>
> > timecounter_init() was was called only after first potential
> > timecounter_read().
> > Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()
> >
> > Signed-off-by: Amir Vadai <amirv@mellanox.com>
> > ---
> > Please pull into -stable for kernels >= 3.10
>
> Applied and queued up for -stable, thanks.
Hi,
I see that this patch [1] was applied to 3.10.y and 3.12.y.
But somehow it was dropped from 3.11.y
Please pull it there too.
Thanks,
Amir
[1] - 1ec4864 net/mlx4_en: Fixed crash when port type is changed
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net] net/mlx4_en: Fixed crash when port type is changed
2014-02-16 10:03 ` Amir Vadai
@ 2014-02-16 10:55 ` Govindarajulu Varadarajan
2014-02-16 11:13 ` Amir Vadai
0 siblings, 1 reply; 5+ messages in thread
From: Govindarajulu Varadarajan @ 2014-02-16 10:55 UTC (permalink / raw)
To: Amir Vadai; +Cc: David Miller, netdev, yevgenyp, ogerlitz
On Sun, 16 Feb 2014, Amir Vadai wrote:
> On 07/11/13 19:14 -0500, David Miller wrote:
>> From: Amir Vadai <amirv@mellanox.com>
>> Date: Thu, 7 Nov 2013 11:08:30 +0200
>>
>>> timecounter_init() was was called only after first potential
>>> timecounter_read().
>>> Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()
>>>
>>> Signed-off-by: Amir Vadai <amirv@mellanox.com>
>>> ---
>>> Please pull into -stable for kernels >= 3.10
>>
>> Applied and queued up for -stable, thanks.
>
> Hi,
>
> I see that this patch [1] was applied to 3.10.y and 3.12.y.
> But somehow it was dropped from 3.11.y
> Please pull it there too.
>
I think 3.11 is EOL. Check https://www.kernel.org/
//govind
> Thanks,
> Amir
>
> [1] - 1ec4864 net/mlx4_en: Fixed crash when port type is changed
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: net/mlx4_en: Fixed crash when port type is changed
2014-02-16 10:55 ` Govindarajulu Varadarajan
@ 2014-02-16 11:13 ` Amir Vadai
0 siblings, 0 replies; 5+ messages in thread
From: Amir Vadai @ 2014-02-16 11:13 UTC (permalink / raw)
To: Govindarajulu Varadarajan; +Cc: David Miller, netdev, yevgenyp, ogerlitz
On 16/02/14 16:25 +0530, Govindarajulu Varadarajan wrote:
>
> I think 3.11 is EOL. Check https://www.kernel.org/
>
> //govind
>
Oh - missed it.
Thanks,
Amir
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-16 11:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-07 9:08 [PATCH net] net/mlx4_en: Fixed crash when port type is changed Amir Vadai
2013-11-08 0:14 ` David Miller
2014-02-16 10:03 ` Amir Vadai
2014-02-16 10:55 ` Govindarajulu Varadarajan
2014-02-16 11:13 ` Amir Vadai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.