Thread (4 messages) flat view 4 messages, 2 authors, 2018-01-25

Re: [PATCH v2] net/mlx5: fix link state on device start

From: Shahaf Shuler <hidden>
Date: 2018-01-25 16:20:12

Thursday, January 25, 2018 6:04 PM, Shahaf Shuler:
Following commit c7bf62255edf ("net/mlx5: fix handling link status event")
the link state must be up in order for the burst function to be set on the
device ops.

As the link may take time to move between down and up state it is possible
the rte_eth_dev_start call will return with wrong burst function (either null
or the empty burst function).

Fixing it by forcing the link to be up before returning from device start. In
case the link is still not up after 5 seconds fail the function.
In addition initialize the burst function on device probe to prevent crashes
before the link is up.

Fixes: c7bf62255edf ("net/mlx5: fix handling link status event")
Cc: yskoh@mellanox.com

Signed-off-by: Shahaf Shuler <redacted>
Acked-by: Nelio Laranjeiro <redacted>
---
Applied to next-net-mlx, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help