History

net/mlx5: DR, Add HW bits and definitions for Geneve flex parser

Add definition for flex parser tunneling header for Geneve.

Yevgeny Kliteynik committed 7 years ago

Commit a18fab41 parent 6e9e2862 files · +14 −0Browse files

Unified · Split

2 files
  1. drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h +13 −0
  2. include/linux/mlx5/mlx5_ifc.h +1 −0
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5_ifc_dr.h+13−0
@@ -559,6 +559,19 @@ struct mlx5_ifc_ste_flex_parser_tnl_vxlan_gpe_bits { · 558 unmodified lines
559559 u8 reserved_at_40[0x40];
560560 };
561561
562+struct mlx5_ifc_ste_flex_parser_tnl_geneve_bits {
563+ u8 reserved_at_0[0x2];
564+ u8 geneve_opt_len[0x6];
565+ u8 geneve_oam[0x1];
566+ u8 reserved_at_9[0x7];
567+ u8 geneve_protocol_type[0x10];
568+
569+ u8 geneve_vni[0x18];
570+ u8 reserved_at_38[0x8];
571+
572+ u8 reserved_at_40[0x40];
573+};
574+
562575 struct mlx5_ifc_ste_general_purpose_bits {
563576 u8 general_purpose_lookup_field[0x20];
564577
include/linux/mlx5/mlx5_ifc.h+1−0
@@ -1110,6 +1110,7 @@ enum { · 1109 unmodified lines
11101110 };
11111111
11121112 enum {
1113+ MLX5_FLEX_PARSER_GENEVE_ENABLED = 1 << 3,
11131114 MLX5_FLEX_PARSER_VXLAN_GPE_ENABLED = 1 << 7,
11141115 MLX5_FLEX_PARSER_ICMP_V4_ENABLED = 1 << 8,
11151116 MLX5_FLEX_PARSER_ICMP_V6_ENABLED = 1 << 9,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t