OSDN Git Service

net/mlx5: Revise gre and nvgre key formats
authorOz Shlomo <ozsh@mellanox.com>
Mon, 10 Dec 2018 21:15:13 +0000 (13:15 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 10 Dec 2018 22:00:08 +0000 (14:00 -0800)
commit5886a96ad19dacebe6c4f7f8c001d489b06125dc
tree6b15d26d0a5c29153a511975f31a24a6c87555aa
parentfd4572b3ff3ff57ca7fa612f9ea42b90afdd8bff
net/mlx5: Revise gre and nvgre key formats

GRE RFC defines a 32 bit key field. NVGRE RFC splits the 32 bit
key field to 24 bit VSID (gre_key_h) and 8 bit flow entropy (gre_key_l).

Define the two key parsing alternatives in a union, thus enabling both
access methods.

Signed-off-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
include/linux/mlx5/mlx5_ifc.h