From: "Jan Beulich" <JBeulich@novell.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error
Date: Mon, 23 May 2011 12:44:47 +0100 [thread overview]
Message-ID: <4DDA64CF0200007800042D8E@vpn.id2.novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
Make the code in netfront_accel_enqueue_skb_multi() match that in
netfront_accel_enqueue_skb_single().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- a/drivers/xen/sfc_netfront/accel_vi.c
+++ b/drivers/xen/sfc_netfront/accel_vi.c
@@ -518,6 +518,8 @@ netfront_accel_enqueue_skb_multi(netfron
}
rc = ef_vi_transmitv(&vnic->vi, iovecs, state.buffers, dma_id);
+ /* We checked for space already, so it really should succeed */
+ BUG_ON(rc != 0);
/* Track number of tx fastpath stats */
vnic->netdev_stats.fastpath_tx_bytes += skb->len;
[-- Attachment #2: xen-sfc-netfront-gcc46.patch --]
[-- Type: text/plain, Size: 628 bytes --]
Subject: xen/sfc_netfront: fix an unused variable error
Make the code in netfront_accel_enqueue_skb_multi() match that in
netfront_accel_enqueue_skb_single().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- a/drivers/xen/sfc_netfront/accel_vi.c
+++ b/drivers/xen/sfc_netfront/accel_vi.c
@@ -518,6 +518,8 @@ netfront_accel_enqueue_skb_multi(netfron
}
rc = ef_vi_transmitv(&vnic->vi, iovecs, state.buffers, dma_id);
+ /* We checked for space already, so it really should succeed */
+ BUG_ON(rc != 0);
/* Track number of tx fastpath stats */
vnic->netdev_stats.fastpath_tx_bytes += skb->len;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2011-05-23 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4DDA64CF0200007800042D8E@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/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).