]> 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)
commite358ab2607be3a123f0c775c2ce17ef712a0759b
tree249647036dcd02cdfce7ce49043e8270aae41532
parent32bf999bc9f258a1dca21b89abc83c1ddeb13923
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