]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Set per priority hairpin pairs
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 20 Dec 2017 16:18:10 +0000 (18:18 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 19 Jan 2018 20:41:32 +0000 (22:41 +0200)
commit00c0591528ee0432eb43a811cd63dfbb1f837aa1
tree070bfe512ef66e14d3cade72cc35dfdcb679e1ac
parent21e5442ad4c320c13f159d637602837c941fd202
net/mlx5e: Set per priority hairpin pairs

As part of the QoS model, on xmit, the HW mandates that all packets going
through a given SQ have the same priority. To align hairpin SQs with that,
we use the priority given as part of the matching for the hairpin hash key.

This ensures that flows/packets mapped to different HW priorities will
go through different hairpin instances. If no priority is given for
matching, we treat that as an 8th priority, this is in order not to
harm cases where priority is specified.

Only the PCP priority trust model is supported.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c