]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Change the SQ/RQ operational state to positive logic
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 6 Dec 2016 15:32:48 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:44:45 +0000 (11:44 -0500)
commit6943838248f64cf61a64958382a0d503e94cec9a
tree3dfd05fe193895006dd58375674129bca7952cd6
parent123514ac8ead525af351203a4bf43bb05af20a69
net/mlx5e: Change the SQ/RQ operational state to positive logic

When using the negative logic (i.e. FLUSH state), after the RQ/SQ reopen
we will have a time interval that the RQ/SQ is not really ready and the
state indicates that its not in FLUSH state because the initial SQ/RQ struct
memory starts as zeros.
Now we changed the state to indicate if the SQ/RQ is opened and we will
set the READY state after finishing preparing all the SQ/RQ resources.

Fixes: 8189241cde13 ("net/mlx5e: Don't wait for SQ completions on close")
Fixes: 33269c3ee0ca ("net/mlx5e: Don't wait for RQ completions on close")
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c