xen-netfront: correct MAX_TX_TARGET calculation.
authorWei Liu <wei.liu2@citrix.com>
Thu, 26 Jan 2012 07:23:23 +0000 (07:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2012 18:48:35 +0000 (13:48 -0500)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c

index fa67905..698b905 100644 (file)
@@ -68,7 +68,7 @@ struct netfront_cb {
 
 #define NET_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE)
 #define NET_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE)
-#define TX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256)
+#define TX_MAX_TARGET min_t(int, NET_TX_RING_SIZE, 256)
 
 struct netfront_stats {
        u64                     rx_packets;