]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Branch according to classified tunnel type
authorOz Shlomo <ozsh@mellanox.com>
Wed, 14 Nov 2018 13:21:27 +0000 (15:21 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 10 Dec 2018 23:53:04 +0000 (15:53 -0800)
commite32c742af10450a7d4e4d2f451972a0d47b6cc98
treef996944a53a28b6804f601e3d5689d590964b924
parentbb7497d39f6972ec2bf52bda211154a336c4870a
net/mlx5e: Branch according to classified tunnel type

Currently the tunnel offloading encap/decap methods assumes that VXLAN
is the sole tunneling protocol. Lay the infrastructure for supporting
multiple tunneling protocols by branching according to the tunnel
net device kind.

Encap filters tunnel type is determined according to the egress/mirred
net device. Decap filters classify the tunnel type according to the
filter's ingress net device kind.

Distinguish between the tunnel type as defined by the SW model and
the FW reformat type that specifies the HW operation being made.

Signed-off-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c