fcoe-utils/0026-FIPVLAN-Really-break-out-of-the-recv_loop-upon-fip_r.patch
Tomáš Chvátal 12c8fe9d6a Accepting request 229743 from home:hreinecke:branches:network:fcoe
- Replace patches with upstream version
  Remove: 0025-systemctl-cannot-start-fcoemon.socket.patch
  Add: 0028-systemctl-cannot-start-fcoemon.socket.patch
- Pull in patches from upstream:
  * Really break out of recv_loop in fipvlan (bnc#870300)
    Add: 0026-FIPVLAN-Really-break-out-of-the-recv_loop-upon-fip_r.patch
  * Update documentation
    Add: 0025-doc-Update-QUICKSTART-INSTALL-docs-for-systemd-init-.patch
    Add: 0027-man-Fix-typo-in-fcoemon-documentation.patch
- Add dependency on libhbalinux2 (bnc#873066)
- Correctly handle options when invoking fcoemon (bnc#872732)
  Add: 0029-fcoemon-Correctly-handle-options-in-the-service-file.patch
- Include bnx2fc to SUPPORTED_DRIVERS (bnc#872741)

OBS-URL: https://build.opensuse.org/request/show/229743
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=16
2014-04-18 11:42:07 +00:00

35 lines
872 B
Diff

From f90bbd76499b71a62f1e7c4ec68a62008031ee8e Mon Sep 17 00:00:00 2001
From: Eddie Wai <eddie.wai@broadcom.com>
Date: Wed, 5 Mar 2014 14:42:28 +0000
Subject: FIPVLAN: Really break out of the recv_loop upon fip_recv error
This patch adds additional code to break out of the recv_loop's while
loop upon fip_recv error. This completes the fix from
commit 78ea81aaef57b5b40fdc86335a7e6a432a72ad48.
Without this, we have seen cases where the recv_loop gets
stuck looping indefinitely.
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
fipvlan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fipvlan.c b/fipvlan.c
index 1b8492d..cc71412 100644
--- a/fipvlan.c
+++ b/fipvlan.c
@@ -792,6 +792,8 @@ static void recv_loop(int timeout)
break;
}
}
+ if (i < pfd_len)
+ break;
}
}
--
1.8.1.4