0df155b014
- Why I did it Currently, non upstream patches are applied only after upstream patches. Depends on sonic-net/sonic-linux-kernel#313. Can be merged in any order, preferably together - What I did it Non upstream Patches that reside in the sonic repo will not be saved in a tar file bur rather in a folder pointed out by EXTERNAL_KERNEL_PATCH_LOC. This is to make changes to the non upstream patches easily traceable. The build variable name is also updated to INCLUDE_EXTERNAL_PATCHES Files/folders expected under EXTERNAL_KERNEL_PATCH_LOC EXTERNAL_KERNEL_PATCH_LOC/ ├──── patches/ ├── 0001-xxxxx.patch ├── 0001-yyyyyyyy.patch ├── ............. ├──── series.patch series.patch should contain a diff that is applied on the sonic-linux-kernel/patch/series file. The diff should include all the non-upstream patches. How to verify it Build the Kernel and verified if all the patches are applied properly Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From fe27f006de6b428fe59acb1960373b32e59adf0b Mon Sep 17 00:00:00 2001
|
|
From: Vadim Pasternak <vadimp@nvidia.com>
|
|
Date: Fri, 3 Dec 2021 11:48:49 +0200
|
|
Subject: [PATCH] mlxsw: reg: Add new field to Management General Peripheral
|
|
Information Register
|
|
|
|
Add new field 'max_modules_per_slot' to provide maximum number of
|
|
modules that can be connected per slot. This field will always be zero,
|
|
if 'slot_index' in query request is set to non-zero value, otherwise
|
|
value in this field will provide maximum modules number, which can be
|
|
equipped on device inserted at any slot.
|
|
|
|
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
|
|
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
|
|
---
|
|
drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
index 748a22ec4..9de037b9a 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
@@ -10191,6 +10191,12 @@ MLXSW_ITEM32(reg, mgpir, devices_per_flash, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, mgpir, num_of_devices, 0x00, 0, 8);
|
|
|
|
+/* max_modules_per_slot
|
|
+ * Maximum number of modules that can be connected per slot.
|
|
+ * Access: RO
|
|
+ */
|
|
+MLXSW_ITEM32(reg, mgpir, max_modules_per_slot, 0x04, 16, 8);
|
|
+
|
|
/* mgpir_num_of_slots
|
|
* Number of slots in the system.
|
|
* Access: RO
|
|
--
|
|
2.30.2
|
|
|