git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b815b8
)
net/virtio: remove the redundant computing
author
Zhiyong Yang
<zhiyong.yang@intel.com>
Thu, 23 Feb 2017 07:11:42 +0000
(15:11 +0800)
committer
Yuanhan Liu
<yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 06:58:54 +0000
(08:58 +0200)
The minor change aims to remove the redundant computing and make
it easier to understand the code.
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
drivers/net/virtio/virtio_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/virtio/virtio_rxtx.c
b/drivers/net/virtio/virtio_rxtx.c
index
cab6e8f
..
fcd9e93
100644
(file)
--- a/
drivers/net/virtio/virtio_rxtx.c
+++ b/
drivers/net/virtio/virtio_rxtx.c
@@
-793,7
+793,7
@@
virtio_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
rx_pkts[nb_rx++] = rxm;
- rxvq->stats.bytes += rx
_pkts[nb_rx - 1]
->pkt_len;
+ rxvq->stats.bytes += rx
m
->pkt_len;
virtio_update_packet_stats(&rxvq->stats, rxm);
}