WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable er

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Mon, 23 May 2011 12:44:47 +0100
Delivery-date: Mon, 23 May 2011 04:45:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Make the code in netfront_accel_enqueue_skb_multi() match that in
netfront_accel_enqueue_skb_single().

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- 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: xen-sfc-netfront-gcc46.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error, Jan Beulich <=