Patchwork [net-next,6/9] bnx2x: Prevent "Unknown MF" print in SF mode

login
register
mail settings
Submitter Yuval Mintz
Date Feb. 18, 2013, 8:16 a.m.
Message ID <1361175398-12888-7-git-send-email-yuvalmin@broadcom.com>
Download mbox | patch
Permalink /patch/221166/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Yuval Mintz - Feb. 18, 2013, 8:16 a.m.
From: Ariel Elior <ariele@broadcom.com>

When using a chip operating in Single Function mode, when the chip is probed
the bnx2x would print a message warning of an unknown Multi Function mode.

This patch prevents said message.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index f563fdc..2b7930c 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -11063,6 +11063,9 @@  static int bnx2x_get_hwinfo(struct bnx2x *bp)
 				} else
 					BNX2X_DEV_INFO("illegal OV for SD\n");
 				break;
+			case SHARED_FEAT_CFG_FORCE_SF_MODE_FORCED_SF:
+				bp->mf_config[vn] = 0;
+				break;
 			default:
 				/* Unknown configuration: reset mf_config */
 				bp->mf_config[vn] = 0;