mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 14:26:56 +07:00
net/mlx5e: Add VLAN ID rewrite fields
Add VLAN ID rewrite fields as a pre-step to support this rewrite. Signed-off-by: Eli Britstein <elibr@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
bea964107f
commit
0eb69bb996
@ -1827,6 +1827,7 @@ static int parse_cls_flower(struct mlx5e_priv *priv,
|
||||
|
||||
struct pedit_headers {
|
||||
struct ethhdr eth;
|
||||
struct vlan_hdr vlan;
|
||||
struct iphdr ip4;
|
||||
struct ipv6hdr ip6;
|
||||
struct tcphdr tcp;
|
||||
@ -1884,6 +1885,7 @@ static struct mlx5_fields fields[] = {
|
||||
OFFLOAD(SMAC_47_16, 4, eth.h_source[0], 0),
|
||||
OFFLOAD(SMAC_15_0, 2, eth.h_source[4], 0),
|
||||
OFFLOAD(ETHERTYPE, 2, eth.h_proto, 0),
|
||||
OFFLOAD(FIRST_VID, 2, vlan.h_vlan_TCI, 0),
|
||||
|
||||
OFFLOAD(IP_TTL, 1, ip4.ttl, 0),
|
||||
OFFLOAD(SIPV4, 4, ip4.saddr, 0),
|
||||
|
@ -5110,6 +5110,7 @@ enum {
|
||||
MLX5_ACTION_IN_FIELD_OUT_DIPV6_31_0 = 0x14,
|
||||
MLX5_ACTION_IN_FIELD_OUT_SIPV4 = 0x15,
|
||||
MLX5_ACTION_IN_FIELD_OUT_DIPV4 = 0x16,
|
||||
MLX5_ACTION_IN_FIELD_OUT_FIRST_VID = 0x17,
|
||||
MLX5_ACTION_IN_FIELD_OUT_IPV6_HOPLIMIT = 0x47,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user