1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
From 22e58fa60c1ae1802946d80df9f94f94855f15f1 Mon Sep 17 00:00:00 2001
From: Dragos Ciprian Nedelcu <Dragos.Ciprian.Nedelcu@enea.com>
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 <Dragos.Ciprian.Nedelcu@enea.com>
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;
|