34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 4db56779dea6479ce2a733525dc412346a48c675 Mon Sep 17 00:00:00 2001
|
|
From: Jens Osterkamp <jens@linux.vnet.ibm.com>
|
|
Date: Wed, 6 Apr 2011 08:34:19 -0700
|
|
Subject: [PATCH 33/51] allow caching of deassociate requests via netlink
|
|
|
|
This patch changes the behaviour in case a new request is received from
|
|
libvirt via netlink while the affected port is down.
|
|
With a recent change, all requests would be rejected. This patch allows at
|
|
least deassociate requests again.
|
|
|
|
Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
|
|
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
|
|
Signed-off-by: Petr Sabata <psabata@redhat.com>
|
|
---
|
|
event_iface.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/event_iface.c b/event_iface.c
|
|
index 815c84f..bdf9095 100644
|
|
--- a/event_iface.c
|
|
+++ b/event_iface.c
|
|
@@ -449,7 +449,7 @@ static int event_if_parse_setmsg(struct nlmsghdr *nlh)
|
|
}
|
|
|
|
/* If the link is down, reject request */
|
|
- if (!port->portEnabled) {
|
|
+ if ((!port->portEnabled) && (profile->mode != VDP_MODE_DEASSOCIATE)) {
|
|
LLDPAD_WARN("%s(%i): Unable to associate, port %s not enabled !\n", __func__,
|
|
__LINE__, ifname);
|
|
ret = -ENXIO;
|
|
--
|
|
1.7.4.4
|
|
|