net/mlx5: fix doorbell register offset type
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 13 Jan 2020 14:22:37 +0000 (14:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commit7b836d84435e887727f16521ece721e6a75984a5
treeaa69b322aa6ed3d3e3f20a12aa279e460330d09a
parent6ebbf4109f3529a1af880ce195869cee84647178
net/mlx5: fix doorbell register offset type

The doorbell register is mapped using mmap() and offset
must have off_t instead of unsigned int. Bug is not critical
due to only least significant bits of offset are currently
tested to determine mapping mode.

Fixes: 8409a28573d3 ("net/mlx5: control transmit doorbell register mapping")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_txq.c