]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Enable reg c1 loopback when possible
authorPaul Blakey <paulb@mellanox.com>
Thu, 12 Mar 2020 10:23:03 +0000 (12:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 22:00:38 +0000 (15:00 -0700)
commitb4e85f16ad616a0b53a607319dac2a675c44e2e7
tree4b15e99d4bb686dbf908b2819bfbf70b665604de
parentaa5d4082a9fb222af2a07c0f07aa9b3cf0eed8f3
net/mlx5: E-Switch, Enable reg c1 loopback when possible

Enable reg c1 loopback if firmware reports it's supported,
as this is needed for restoring packet metadata (e.g chain).

Also define helper to query if it is enabled.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/linux/mlx5/eswitch.h