Blame SOURCES/0134-include-net-mlx5-Add-Virtio-Emulation-related-device.patch

d8f823
From 3b0c6baddf528e8895d3a42617df25f80825b150 Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Tue, 12 May 2020 10:53:40 -0400
d8f823
Subject: [PATCH 134/312] [include] net/mlx5: Add Virtio Emulation related
d8f823
 device capabilities
d8f823
d8f823
Message-id: <20200512105530.4207-15-ahleihel@redhat.com>
d8f823
Patchwork-id: 306887
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1789382 014/124] net/mlx5: Add Virtio Emulation related device capabilities
d8f823
Bugzilla: 1789382
d8f823
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
d8f823
RH-Acked-by: Kamal Heib <kheib@redhat.com>
d8f823
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
d8f823
d8f823
Bugzilla: http://bugzilla.redhat.com/1789382
d8f823
Upstream: v5.6-rc1
d8f823
d8f823
commit 90fbca5952436e7817910b33eb4464ddd77a8964
d8f823
Author: Yishai Hadas <yishaih@mellanox.com>
d8f823
Date:   Thu Dec 12 13:09:24 2019 +0200
d8f823
d8f823
    net/mlx5: Add Virtio Emulation related device capabilities
d8f823
d8f823
    Add Virtio Emulation related fields to the device capabilities.
d8f823
d8f823
    It includes a general bit to indicate whether Virtio Emulation is
d8f823
    supported and the capabilities structure itself.
d8f823
d8f823
    Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
d8f823
    Reviewed-by: Shahaf Shuler <shahafs@mellanox.com>
d8f823
    Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
d8f823
d8f823
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
d8f823
---
d8f823
 include/linux/mlx5/mlx5_ifc.h | 15 +++++++++++++++
d8f823
 1 file changed, 15 insertions(+)
d8f823
d8f823
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
d8f823
index 4c703796c233..1285f31b5f5c 100644
d8f823
--- a/include/linux/mlx5/mlx5_ifc.h
d8f823
+++ b/include/linux/mlx5/mlx5_ifc.h
d8f823
@@ -87,6 +87,7 @@ enum {
d8f823
 enum {
d8f823
 	MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM = (1ULL << MLX5_OBJ_TYPE_SW_ICM),
d8f823
 	MLX5_GENERAL_OBJ_TYPES_CAP_GENEVE_TLV_OPT = (1ULL << 11),
d8f823
+	MLX5_GENERAL_OBJ_TYPES_CAP_VIRTIO_NET_Q = (1ULL << 13),
d8f823
 };
d8f823
 
d8f823
 enum {
d8f823
@@ -956,6 +957,19 @@ struct mlx5_ifc_device_event_cap_bits {
d8f823
 	u8         user_unaffiliated_events[4][0x40];
d8f823
 };
d8f823
 
d8f823
+struct mlx5_ifc_device_virtio_emulation_cap_bits {
d8f823
+	u8         reserved_at_0[0x20];
d8f823
+
d8f823
+	u8         reserved_at_20[0x13];
d8f823
+	u8         log_doorbell_stride[0x5];
d8f823
+	u8         reserved_at_38[0x3];
d8f823
+	u8         log_doorbell_bar_size[0x5];
d8f823
+
d8f823
+	u8         doorbell_bar_offset[0x40];
d8f823
+
d8f823
+	u8         reserved_at_80[0x780];
d8f823
+};
d8f823
+
d8f823
 enum {
d8f823
 	MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_1_BYTE     = 0x0,
d8f823
 	MLX5_ATOMIC_CAPS_ATOMIC_SIZE_QP_2_BYTES    = 0x2,
d8f823
@@ -2756,6 +2770,7 @@ union mlx5_ifc_hca_cap_union_bits {
d8f823
 	struct mlx5_ifc_fpga_cap_bits fpga_cap;
d8f823
 	struct mlx5_ifc_tls_cap_bits tls_cap;
d8f823
 	struct mlx5_ifc_device_mem_cap_bits device_mem_cap;
d8f823
+	struct mlx5_ifc_device_virtio_emulation_cap_bits virtio_emulation_cap;
d8f823
 	u8         reserved_at_0[0x8000];
d8f823
 };
d8f823
 
d8f823
-- 
d8f823
2.13.6
d8f823