]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitfdb6896fd97eb9d3efbd9f2e6ec1c0c5854bf542
tree249647036dcd02cdfce7ce49043e8270aae41532
parentf0d22d1874730530a2ac304fd0888cb8a6864527
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