fcoe-utils/0033-fipvlan-suppress-warning-interface-already-exists.patch
Tomáš Chvátal 045f8440d4 Accepting request 234122 from home:hreinecke:branches:network:fcoe
- Start fcoemon in foreground from service file (bnc#873269)
  * Add 0030-fcoe.service-Add-foreground-to-prevent-fcoemon-to-be.patch
- Fixup IEEE state machine
  * Add 0031-fcoemon-Fix-IEEE-state-machine.patch
- Fix fipvlan crash during booting (bnc#877275):
  * Add 0032-fipvlan-Fix-crash-in-create_and_start_vlan.patch
  * Add 0033-fipvlan-suppress-warning-interface-already-exists.patch
  * Add 0034-fipvlan-do-not-crash-on-empty-MAC-address-in-lookup_.patch
- Fixup warning messages during booting:
  * Add 0035-fipvlan-fixup-return-value-on-error.patch
  * Add 0036-fipvlan-clean-up-state-machine-for-pfd_add.patch

- Remove obsolete file fcoe.config from sources

OBS-URL: https://build.opensuse.org/request/show/234122
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=18
2014-05-19 13:39:19 +00:00

32 lines
921 B
Diff

From 798a5ff4a205fa26d37447ff77fc27861103440a Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Mon, 12 May 2014 14:59:13 +0200
Subject: fipvlan: suppress warning 'interface already exists'
When fipvlan is called for just the parent interface we should
not select the vlan interface, too, otherwise we'll be getting
those annoying warning messages.
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
fipvlan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fipvlan.c b/fipvlan.c
index 7202f03..163d21e 100644
--- a/fipvlan.c
+++ b/fipvlan.c
@@ -451,7 +451,8 @@ static void rtnl_recv_newlink(struct nlmsghdr *nh)
int i, iff_selected = 0;
for (i = 0; i < config.namec; i++) {
- if (!strcmp(iff->ifname, config.namev[i]))
+ if (!strncmp(iff->ifname, config.namev[i],
+ strlen(config.namev[i])))
iff_selected = 1;
}
if (!iff_selected) {
--
1.7.12.4