From b7582167f4956d00a1f0377d957182d7cd06a6e9 Mon Sep 17 00:00:00 2001 From: Dragos Ciprian Nedelcu Date: Thu, 25 Feb 2021 09:48:09 +0100 Subject: Force MDD disabled in ixgbe driver Set default value for Malicious Driver Detection to disabled in ixgbe driver. Also prevent MDD from being enabled. Signed-off-by: Dragos Ciprian Nedelcu Change-Id: I84fc98070b376814549048f307032ed0bd355bc9 --- .../intel-ethernet/files/force_disable_MDD.patch | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 recipes-kernel/intel-ethernet/files/force_disable_MDD.patch (limited to 'recipes-kernel/intel-ethernet/files/force_disable_MDD.patch') diff --git a/recipes-kernel/intel-ethernet/files/force_disable_MDD.patch b/recipes-kernel/intel-ethernet/files/force_disable_MDD.patch new file mode 100644 index 0000000..4a13a70 --- /dev/null +++ b/recipes-kernel/intel-ethernet/files/force_disable_MDD.patch @@ -0,0 +1,51 @@ +From 22e58fa60c1ae1802946d80df9f94f94855f15f1 Mon Sep 17 00:00:00 2001 +From: Dragos Ciprian Nedelcu +Date: Thu, 25 Feb 2021 09:48:09 +0100 +Subject: [PATCH] Force MDD disabled in ixgbe driver + +Set default value for Malicious Driver Detection to disabled +in ixgbe driver. Also prevent MDD from being enabled. + +Signed-off-by: Dragos Ciprian Nedelcu +Change-Id: I84fc98070b376814549048f307032ed0bd355bc9 + +Index: src/ixgbe_param.c +=================================================================== +--- src.orig/ixgbe_param.c ++++ src/ixgbe_param.c +@@ -289,13 +289,13 @@ IXGBE_PARAM(FCoE, "Disable or enable FCo + * + * Default Value: 1 + */ +-IXGBE_PARAM(MDD, "Malicious Driver Detection: (0,1), default 1 = on"); ++IXGBE_PARAM(MDD, "Malicious Driver Detection: (0,1), default 0 = off"); + + /* Enable/disable Large Receive Offload + * + * Valid Values: 0(off), 1(on) + * +- * Default Value: 1 ++ * Default Value: 0 + */ + IXGBE_PARAM(LRO, "Large Receive Offload (0,1), default 0 = off"); + +@@ -1232,8 +1232,8 @@ void ixgbe_check_options(struct ixgbe_ad + struct ixgbe_option opt = { + .type = enable_option, + .name = "Malicious Driver Detection", +- .err = "defaulting to Enabled", +- .def = OPTION_ENABLED, ++ .err = "defaulting to Disabled", ++ .def = OPTION_DISABLED, + }; + + switch (adapter->hw.mac.type) { +@@ -1258,6 +1258,8 @@ void ixgbe_check_options(struct ixgbe_ad + *aflags |= IXGBE_FLAG_MDD_ENABLED; + } + #endif ++ /* Force disable MDD */ ++ *aflags &= ~IXGBE_FLAG_MDD_ENABLED; + break; + default: + *aflags &= ~IXGBE_FLAG_MDD_ENABLED; -- cgit v1.2.3-54-g00ecf