virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Jens Osterkamp <jens@linux.vnet.ibm.com>
To: e1000-eedc@lists.sourceforge.net,
	virtualization@lists.linux-foundation.org, evb@yahoogroups.com
Cc: chrisw@redhat.com, Jens Osterkamp <jens@linux.vnet.ibm.com>
Subject: [PATCH 03/10] BUGFIX: check for existence of ifup
Date: Mon, 22 Nov 2010 16:50:50 +0100	[thread overview]
Message-ID: <1290441057-16729-4-git-send-email-jens@linux.vnet.ibm.com> (raw)
In-Reply-To: <1290441057-16729-1-git-send-email-jens@linux.vnet.ibm.com>

added an additional check for existence of the ifup operation.
If it does not exist, just skip it.

Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
---
 config.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/config.c b/config.c
index 5cfac83..26afe3b 100644
--- a/config.c
+++ b/config.c
@@ -370,8 +370,10 @@ void init_ports(void)
 		} else if (check_link_status(p->if_name)) {
 			add_adapter(p->if_name);
 
-			LIST_FOREACH(np, &lldp_head, lldp)
-				np->ops->lldp_mod_ifup(p->if_name);
+			LIST_FOREACH(np, &lldp_head, lldp) {
+				if (np->ops->lldp_mod_ifup)
+					np->ops->lldp_mod_ifup(p->if_name);
+			}
 			set_lldp_port_enable_state(p->if_name, 1);
 		}
 		p++;
-- 
1.7.2.3

  parent reply	other threads:[~2010-11-22 15:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 15:50 implementation of IEEE 802.1Qbg in lldpad Jens Osterkamp
2010-11-22 15:50 ` [PATCH 01/10] consolidation of MIN and MAX macros in common.h Jens Osterkamp
2010-11-22 15:50 ` [PATCH 02/10] implementation of IEEE 802.1Qbg in lldpad, part 1 Jens Osterkamp
2010-11-22 15:50 ` Jens Osterkamp [this message]
2010-11-22 15:50 ` [PATCH 04/10] implementation of IEEE 802.1Qbg in lldpad, part 2 Jens Osterkamp
2010-11-22 15:50 ` [PATCH 05/10] VDP commandline interface Jens Osterkamp
2010-11-22 15:50 ` [PATCH 06/10] add libnl dependency to configure.ac Jens Osterkamp
2010-11-22 15:50 ` [PATCH 07/10] use connect instead of bind Jens Osterkamp
2010-11-22 15:50 ` [PATCH 08/10] lldpad support for libvirt netlink message Jens Osterkamp
2010-11-22 15:50 ` [PATCH 09/10] do not use macv[tap/lan] interfaces as ports Jens Osterkamp
2010-11-22 15:50 ` [PATCH 10/10] implement VDP keepalive Jens Osterkamp
  -- strict thread matches above, loose matches on Subject: below --
2010-08-25 12:27 implementation of IEEE 802.1Qbg in lldpad Jens Osterkamp
2010-08-25 12:27 ` [PATCH 03/10] BUGFIX: check for existence of ifup Jens Osterkamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290441057-16729-4-git-send-email-jens@linux.vnet.ibm.com \
    --to=jens@linux.vnet.ibm.com \
    --cc=chrisw@redhat.com \
    --cc=e1000-eedc@lists.sourceforge.net \
    --cc=evb@yahoogroups.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).