summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Blakey <paulb@mellanox.com>2018-07-03 11:14:30 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2018-10-17 23:18:50 +0200
commite52c2802400831389c773bc5bb119ab4b96fde3b (patch)
tree9b81605d4dcf43ff0d55ffb2a0b66165b1855fd1 /include
parentnet/mlx5: E-Switch, Have explicit API to delete fwd rules (diff)
downloadlinux-e52c2802400831389c773bc5bb119ab4b96fde3b.tar.xz
linux-e52c2802400831389c773bc5bb119ab4b96fde3b.zip
net/mlx5: E-Switch, Add chains and priorities
A chain is a group of priorities, so use the fdb parallel sub namespaces to implement chains, and a flow table for each priority in them. Because these namespaces are parallel and in series to the slow path fdb, the chains aren't connected to one another (but to the slow path), and one must use a explicit goto action to reach a different chain. Flow tables for the priorities will be created on demand and destroyed once not used. The Firmware has four pools of tables for sizes S/XS/M/L (4k, 64k, 1m, 4m). We maintain ghost copies of the pools occupancy. When a new table is to be created, we scan the pools from large to small and find the 1st table size which can be now created. When a table is destroyed, we update the relevant pool. Multi chain/prio isn't enabled yet by this patch, for now all flows will use the default chain 0, and prio 1. Signed-off-by: Paul Blakey <paulb@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions