diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2015-04-02 17:07:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-02 16:33:41 -0400 |
commit | b812b5441e359adb9bd44108f7f91e5b0ba4a768 (patch) | |
tree | 197ac2eb4755eaad7c0b1de118a1f97eaf1a5fb9 /drivers/net/ethernet/mellanox | |
parent | 9ef9baa2acda077f3831f6e7cdf751bc8691f78f (diff) | |
download | linux-b812b5441e359adb9bd44108f7f91e5b0ba4a768.tar.gz linux-b812b5441e359adb9bd44108f7f91e5b0ba4a768.tar.xz |
net/mlx5_core: Clear doorbell record inside mlx5_db_alloc()
Do it in one place instead of every where the function is invoked
Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/alloc.c b/drivers/net/ethernet/mellanox/mlx5/core/alloc.c index 201ca6d76ce5..63dd75485204 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/alloc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/alloc.c @@ -171,6 +171,9 @@ static int mlx5_alloc_db_from_pgdir(struct mlx5_db_pgdir *pgdir, db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); db->dma = pgdir->db_dma + offset; + db->db[0] = 0; + db->db[1] = 0; + return 0; } |