Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262492
b: refs/heads/master
c: 20e72a4
h: refs/heads/master
v: v3
  • Loading branch information
Yevgeny Petrilin authored and David S. Miller committed Aug 5, 2011
1 parent 23b7ae2 commit 323d2b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c70a3a9203ba327b86a4ce895c04e6d4ef18ee57
refs/heads/master: 20e72a44098641f0c4de34a31287a93e006afb5b
9 changes: 6 additions & 3 deletions trunk/drivers/net/mlx4/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,12 @@ void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, int qpn)
if (validate_index(dev, table, index))
goto out;

table->entries[index] = 0;
mlx4_set_port_mac_table(dev, port, table->entries);
--table->total;
/* Check whether this address has reference count */
if (!(--table->refs[index])) {
table->entries[index] = 0;
mlx4_set_port_mac_table(dev, port, table->entries);
--table->total;
}
out:
mutex_unlock(&table->mutex);
}
Expand Down

0 comments on commit 323d2b8

Please sign in to comment.