mlx5-fixes-2018-09-17
-----BEGIN PGP SIGNATURE----- iQEcBAABAgAGBQJboCdPAAoJEEg/ir3gV/o+OqQH/2U2kCMUHRuG6WGEbm+bTz7m fF2L1iRMeXvpmD0FrWs1XiBEg1/6Gf6GfNLmuwRqhHJMi/ok1310V5UbQ3dcXEQ5 7rIzBUbd2jyrI5wln9ISgmvgi/r7Cdzf9xNM3MHmPCouNWxbX85VLTGdTXcsUknd Z7lZHbPjB8aeZEBmeQdNbGvwZOe9IIgTlfEN4gwrYvUtJD82HrGgGpdLvnSWgy4X RhKdjvhkYx5ba3AH9CbY88oR5LRjhk3dGhngpMDvQZBmqE0W0j8tXkR8bj36zJN6 m2YJadeGlds7fubFORYaaDGuPBtCT5SnrJqboEMZ8fzuJMqdyvBNI/LtTRTIGAc= =FOdR -----END PGP SIGNATURE----- Merge tag 'mlx5-fixes-2018-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux Saeed Mahameed says: ==================== Mellanox, mlx5 fixes 2018-09-17 Sorry about the previous submission of this series which was mistakenly marked for net-next, here I am resending with 'net' mark. This series provides three fixes to mlx5 core and mlx5e netdevice driver. Please pull and let me know if there's any problem. For -stable v4.16: ('net/mlx5: Check for SQ and not RQ state when modifying hairpin SQ') ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
6344244c71
3 changed files with 4 additions and 3 deletions
|
@ -206,7 +206,7 @@ static void poll_timeout(struct mlx5_cmd_work_ent *ent)
|
|||
u8 own;
|
||||
|
||||
do {
|
||||
own = ent->lay->status_own;
|
||||
own = READ_ONCE(ent->lay->status_own);
|
||||
if (!(own & CMD_OWNER_HW)) {
|
||||
ent->ret = 0;
|
||||
return;
|
||||
|
|
|
@ -183,12 +183,13 @@ static const struct tlsdev_ops mlx5e_tls_ops = {
|
|||
|
||||
void mlx5e_tls_build_netdev(struct mlx5e_priv *priv)
|
||||
{
|
||||
u32 caps = mlx5_accel_tls_device_caps(priv->mdev);
|
||||
struct net_device *netdev = priv->netdev;
|
||||
u32 caps;
|
||||
|
||||
if (!mlx5_accel_is_tls_device(priv->mdev))
|
||||
return;
|
||||
|
||||
caps = mlx5_accel_tls_device_caps(priv->mdev);
|
||||
if (caps & MLX5_ACCEL_TLS_TX) {
|
||||
netdev->features |= NETIF_F_HW_TLS_TX;
|
||||
netdev->hw_features |= NETIF_F_HW_TLS_TX;
|
||||
|
|
|
@ -509,7 +509,7 @@ static int mlx5_hairpin_modify_sq(struct mlx5_core_dev *peer_mdev, u32 sqn,
|
|||
|
||||
sqc = MLX5_ADDR_OF(modify_sq_in, in, ctx);
|
||||
|
||||
if (next_state == MLX5_RQC_STATE_RDY) {
|
||||
if (next_state == MLX5_SQC_STATE_RDY) {
|
||||
MLX5_SET(sqc, sqc, hairpin_peer_rq, peer_rq);
|
||||
MLX5_SET(sqc, sqc, hairpin_peer_vhca, peer_vhca);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue