]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5_core: Add utilities to find next and prev flow-tables
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 11 Jan 2016 08:25:58 +0000 (10:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:48:52 +0000 (17:48 -0500)
commit94fc125e9135ae734012e251413cbc4f872f595c
tree249647036dcd02cdfce7ce49043e8270aae41532
parent22b59b3c750958032641e3888a8b88980c8562f0
net/mlx5_core: Add utilities to find next and prev flow-tables

Add two utility functions for find next and prev flow table.
Find next flow table function gets priority and return the
first flow table of the next priority in the tree.
Find prev flow table return the last flow table of
the previous priority in the tree.

These utility functions are used for chaining flow table from different
priorities.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c