]> 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)
commit70a47f21f7ce8779775a336895d1dd05de7a698a
treef996944a53a28b6804f601e3d5689d590964b924
parentb42d49ede244e152c8af57ac6d26252bb1e8c12c
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