From c6393cefa339549efbc12a2624434f38da2dd0a7 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 3 Jan 2018 20:48:56 +0000 Subject: [PATCH] ib_srpt: Make it easier to use SR-IOV virtual functions Management datagrams (MADs) are not supported for SR-IOV VFs. That is why srpt_refresh_port() fails for SR-IOV VFs. Make it easier to use SR-IOV VFs by only logging an error message if MAD handler registration fails. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7315 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index f2b3e2b3e..6f03dcb2b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -4359,9 +4359,8 @@ static void srpt_add_one(struct ib_device *device) INIT_WORK(&sport->work, srpt_refresh_port_work); #endif if (srpt_refresh_port(sport)) { - pr_err("MAD registration failed for %s-%d.\n", + pr_err("MAD registration failed for %s-%d. Note: this is expected for SR-IOV virtual functions.\n", sdev->device->name, i); - goto err_ring; } }