From: jerry <jerry.lilijun@huawei.com>
To: Wei Liu <wei.liu2@citrix.com>, Ian Campbell <Ian.Campbell@citrix.com>
Cc: "qianhuibin@huawei.com" <qianhuibin@huawei.com>,
liuyongan@huawei.com, wangfuhai@huawei.com,
Jan Beulich <JBeulich@suse.com>,
qinchuanyu@huawei.com, xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: netback BUG_ON when using copy_skb=1
Date: Fri, 1 Nov 2013 10:53:27 +0800 [thread overview]
Message-ID: <527317A7.1010500@huawei.com> (raw)
In-Reply-To: <20131031153242.GA8193@zion.uk.xensource.com>
On 2013/10/31 23:32, Wei Liu wrote:
> On Thu, Oct 31, 2013 at 03:17:11PM +0000, Ian Campbell wrote:
>> On Mon, 2013-10-28 at 11:43 +0000, Wei Liu wrote:
>>> On Sat, Oct 26, 2013 at 04:32:08PM +0800, jerry wrote:
>>> [...]
>>>>
>>>> The patch is as follows:
>>>> --- drivers/xen/netback/xenbus.c.old 2013-10-26 16:23:07.000000000 +0800
>>>> +++ drivers/xen/netback/xenbus.c 2013-10-26 16:23:31.000000000 +0800
>>>> @@ -156,9 +156,6 @@
>>>> if (err)
>>>> goto fail;
>>>>
>>>> - /* This kicks hotplug scripts, so do it immediately. */
>>>> - backend_create_netif(be);
>>>> -
>>>> return 0;
>>>>
>>>> abort_transaction:
>>>>
>>>> Do you have some ideas?
>>>>
>>>
>>> My gut feeling is that this sort of change is regression-prone but we
>>> have to live with that.
>>>
>>
>> This thread/fix doesn't apply to upstream netback, which doesn't have
>> copy_skb mode, right?
>>
>
> No, it's SuSE kernel.
Yes, I am using SuSE11 SP2 kernel. The two mainly points in my other emails can be concluded as follows:
1) If testing with copy_skb mode enabled, some grant copy operations in another RX netbk tread will failed.
This error will introduce packet retransmit and sometimes VM get crashed.
Now I have no appropriate solution to fix the problem. So I have to turn off copy_skb mode.
2) If that's disabled, the vif can't be disconnected when VM is destroyed and its sending packets have not been consumed.
Fortunately I found those packets was cached in another abnormal vif's qdisc queues.
My solution is keeping vif TX queue started when its set to up. So packets are dropped if vif is created, but not connected.
The fix patch is shown as follow:
--- drivers/xen/netback/interface.c.old 2013-10-29 11:46:36.000000000 +0800
+++ drivers/xen/netback/interface.c 2013-10-29 11:46:47.000000000 +0800
@@ -111,8 +111,8 @@
netif_t *netif = netdev_priv(dev);
if (netback_carrier_ok(netif)) {
__netif_up(netif);
- netif_start_queue(dev);
}
+ netif_start_queue(dev);
return 0;
}
>
>>> In any case, does upstream changeset ea732dff5c (xen-netback: Handle
>>> backend state transitions in a more robust way) useful to you?
>>>
>>>
>>> Wei.
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xen.org
>>> http://lists.xen.org/xen-devel
>>
>
> .
>
prev parent reply other threads:[~2013-11-01 2:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 4:13 netback BUG_ON when using copy_skb=1 jerry
2013-10-16 11:10 ` Jan Beulich
2013-10-17 7:41 ` jerry
2013-10-17 8:00 ` Jan Beulich
2013-10-17 10:26 ` jerry
2013-10-17 12:11 ` Jan Beulich
2013-10-22 1:18 ` jerry
2013-10-22 7:11 ` Jan Beulich
2013-10-26 8:32 ` jerry
2013-10-28 7:43 ` Jan Beulich
2013-10-29 4:04 ` jerry
2013-10-28 11:43 ` Wei Liu
2013-10-31 15:17 ` Ian Campbell
2013-10-31 15:32 ` Wei Liu
2013-11-01 2:53 ` jerry [this message]
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=527317A7.1010500@huawei.com \
--to=jerry.lilijun@huawei.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=liuyongan@huawei.com \
--cc=qianhuibin@huawei.com \
--cc=qinchuanyu@huawei.com \
--cc=wangfuhai@huawei.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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).