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)
commit106be53b6b0a107054e5c2a009aa0d079b9c70c1
tree070bfe512ef66e14d3cade72cc35dfdcb679e1ac
parentd8822868535eacd7ff52afb0c542361f54280108
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