From: frank.blaschka@de.ibm.com
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
Einar Lueck <elelueck@de.ibm.com>
Subject: [patch 2/4] [PATCH] qeth: support VIPA add/del in offline mode
Date: Wed, 08 Dec 2010 13:57:59 +0100 [thread overview]
Message-ID: <20101208125844.490694187@de.ibm.com> (raw)
In-Reply-To: 20101208125757.726629855@de.ibm.com
[-- Attachment #1: 605-qeth-vipa-offline.diff --]
[-- Type: text/plain, Size: 907 bytes --]
From: Einar Lueck <elelueck@de.ibm.com>
Only work through the IP adddress to do list if the card is UP or
SOFTSETUP. Enables to configure VIPA add/del in offline mode.
Signed-off-by: Einar Lueck <elelueck@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---
drivers/s390/net/qeth_l3_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -456,8 +456,11 @@ static void qeth_l3_set_ip_addr_list(str
QETH_CARD_TEXT(card, 2, "sdiplist");
QETH_CARD_HEX(card, 2, &card, sizeof(void *));
- if (card->options.sniffer)
+ if ((card->state != CARD_STATE_UP &&
+ card->state != CARD_STATE_SOFTSETUP) || card->options.sniffer) {
return;
+ }
+
spin_lock_irqsave(&card->ip_lock, flags);
tbd_list = card->ip_tbd_list;
card->ip_tbd_list = kmalloc(sizeof(struct list_head), GFP_ATOMIC);
next prev parent reply other threads:[~2010-12-08 12:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-08 12:57 [patch 0/4] s390: qeth patches for net-next frank.blaschka
2010-12-08 12:57 ` [patch 1/4] [PATCH] qeth: support ipv6 query arp cache for HiperSockets frank.blaschka
2010-12-08 12:57 ` frank.blaschka [this message]
2010-12-08 12:58 ` [patch 3/4] [PATCH] qeth: l3 add vlan hdr in passthru frames frank.blaschka
2010-12-08 12:58 ` [patch 4/4] [PATCH] qeth: buffer count imbalance frank.blaschka
2010-12-10 22:29 ` [patch 0/4] s390: qeth patches for net-next David Miller
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=20101208125844.490694187@de.ibm.com \
--to=frank.blaschka@de.ibm.com \
--cc=davem@davemloft.net \
--cc=elelueck@de.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.