Commit 40206dd98f066d596d4280558fc5f798165861c7

Authored by Wei Liu
Committed by David S. Miller
1 parent 073862ba5d

xen-netfront: correct MAX_TX_TARGET calculation.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/xen-netfront.c
... ... @@ -68,7 +68,7 @@
68 68  
69 69 #define NET_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE)
70 70 #define NET_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE)
71   -#define TX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256)
  71 +#define TX_MAX_TARGET min_t(int, NET_TX_RING_SIZE, 256)
72 72  
73 73 struct netfront_stats {
74 74 u64 rx_packets;