OSDN Git Service

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)
commit5b7cb7451585f83d414512a70b79b2086b8c6ed1
tree4b15e99d4bb686dbf908b2819bfbf70b665604de
parentbf3347c4d15e26ab17fce3aa4041345198f4280c
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