summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorJianbo Liu2019-06-25 19:48:02 +0200
committerSaeed Mahameed2019-06-26 21:01:28 +0200
commit8d212ff057f8b81ed6ed418874b54ded3bf97ad4 (patch)
tree533c53b92f3f728e21b00ab64bab435e8e42fb01 /include/linux/mlx5
parentnet/mlx5: E-Switch, Tag packet with vport number in VF vports and uplink ingr... (diff)
downloadkernel-qcow2-linux-8d212ff057f8b81ed6ed418874b54ded3bf97ad4.tar.gz
kernel-qcow2-linux-8d212ff057f8b81ed6ed418874b54ded3bf97ad4.tar.xz
kernel-qcow2-linux-8d212ff057f8b81ed6ed418874b54ded3bf97ad4.zip
net/mlx5e: Specifying known origin of packets matching the flow
In vport metadata matching, source port number is replaced by metadata. While FW has no idea about what it is in the metadata, a syndrome will happen. Specify a known origin to avoid the syndrome. However, there is no functional change because ANY_VPORT (0) is filled in flow_source, the same default value as before, as a pre-step towards metadata matching for fast path. There are two other values can be filled in flow_source. When setting 0x1, packet matching this rule is from uplink, while 0x2 is for packet from other local vports. Signed-off-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 9bf49ce218fa..dc7e7aa53a13 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -95,6 +95,7 @@ enum {
struct mlx5_flow_context {
u32 flags;
u32 flow_tag;
+ u32 flow_source;
};
struct mlx5_flow_spec {