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;