diff options
Diffstat (limited to 'recipes-kernel/intel-ethernet/files/force_disable_MDD.patch')
-rw-r--r-- | recipes-kernel/intel-ethernet/files/force_disable_MDD.patch | 51 |
1 files changed, 51 insertions, 0 deletions
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 @@ | |||
1 | From 22e58fa60c1ae1802946d80df9f94f94855f15f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dragos Ciprian Nedelcu <Dragos.Ciprian.Nedelcu@enea.com> | ||
3 | Date: Thu, 25 Feb 2021 09:48:09 +0100 | ||
4 | Subject: [PATCH] Force MDD disabled in ixgbe driver | ||
5 | |||
6 | Set default value for Malicious Driver Detection to disabled | ||
7 | in ixgbe driver. Also prevent MDD from being enabled. | ||
8 | |||
9 | Signed-off-by: Dragos Ciprian Nedelcu <Dragos.Ciprian.Nedelcu@enea.com> | ||
10 | Change-Id: I84fc98070b376814549048f307032ed0bd355bc9 | ||
11 | |||
12 | Index: src/ixgbe_param.c | ||
13 | =================================================================== | ||
14 | --- src.orig/ixgbe_param.c | ||
15 | +++ src/ixgbe_param.c | ||
16 | @@ -289,13 +289,13 @@ IXGBE_PARAM(FCoE, "Disable or enable FCo | ||
17 | * | ||
18 | * Default Value: 1 | ||
19 | */ | ||
20 | -IXGBE_PARAM(MDD, "Malicious Driver Detection: (0,1), default 1 = on"); | ||
21 | +IXGBE_PARAM(MDD, "Malicious Driver Detection: (0,1), default 0 = off"); | ||
22 | |||
23 | /* Enable/disable Large Receive Offload | ||
24 | * | ||
25 | * Valid Values: 0(off), 1(on) | ||
26 | * | ||
27 | - * Default Value: 1 | ||
28 | + * Default Value: 0 | ||
29 | */ | ||
30 | IXGBE_PARAM(LRO, "Large Receive Offload (0,1), default 0 = off"); | ||
31 | |||
32 | @@ -1232,8 +1232,8 @@ void ixgbe_check_options(struct ixgbe_ad | ||
33 | struct ixgbe_option opt = { | ||
34 | .type = enable_option, | ||
35 | .name = "Malicious Driver Detection", | ||
36 | - .err = "defaulting to Enabled", | ||
37 | - .def = OPTION_ENABLED, | ||
38 | + .err = "defaulting to Disabled", | ||
39 | + .def = OPTION_DISABLED, | ||
40 | }; | ||
41 | |||
42 | switch (adapter->hw.mac.type) { | ||
43 | @@ -1258,6 +1258,8 @@ void ixgbe_check_options(struct ixgbe_ad | ||
44 | *aflags |= IXGBE_FLAG_MDD_ENABLED; | ||
45 | } | ||
46 | #endif | ||
47 | + /* Force disable MDD */ | ||
48 | + *aflags &= ~IXGBE_FLAG_MDD_ENABLED; | ||
49 | break; | ||
50 | default: | ||
51 | *aflags &= ~IXGBE_FLAG_MDD_ENABLED; | ||