]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: use rb_entry()
authorGeliang Tang <geliangtang@gmail.com>
Tue, 20 Dec 2016 14:02:14 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2016 19:22:48 +0000 (14:22 -0500)
commit54642cb6ccfcd8d0aa11e86c458e024d19dbc9a7
treec895039794c6871ee6c1de7b9bbb230d12b6be6a
parentdb46596f3cfe3550065906ca4b97406d7bdb89a2
net/mlx5: use rb_entry()

To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c