summaryrefslogtreecommitdiff
path: root/examples/netmap_compat
diff options
context:
space:
mode:
authorStephen Hemminger <shemming@brocade.com>2015-06-04 07:43:25 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-06-12 11:10:10 +0200
commit0e433e5f0891ecd18a694ed733a28e69b1470c25 (patch)
tree580aa01c9849ec5e60f287357d0719f0ff8c76a5 /examples/netmap_compat
parentf3618dcbcff8ae6b2eabf982f4c4fbbc3dd66703 (diff)
downloaddpdk-draft-windows-0e433e5f0891ecd18a694ed733a28e69b1470c25.zip
dpdk-draft-windows-0e433e5f0891ecd18a694ed733a28e69b1470c25.tar.gz
dpdk-draft-windows-0e433e5f0891ecd18a694ed733a28e69b1470c25.tar.xz
examples: fix whitespace
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'examples/netmap_compat')
-rw-r--r--examples/netmap_compat/lib/compat_netmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c
index 856ab6e..d2e079f 100644
--- a/examples/netmap_compat/lib/compat_netmap.c
+++ b/examples/netmap_compat/lib/compat_netmap.c
@@ -550,7 +550,7 @@ tx_sync_ring(struct netmap_ring *ring, uint8_t port, uint16_t ring_number,
burst_size = (uint16_t)RTE_MIN(n_used_slots, RTE_DIM(tx_mbufs));
for (i = 0; i < burst_size; i++) {
- tx_mbufs[i] = rte_pktmbuf_alloc(pool);
+ tx_mbufs[i] = rte_pktmbuf_alloc(pool);
if (tx_mbufs[i] == NULL)
goto err;
@@ -638,7 +638,7 @@ rte_netmap_init(const struct rte_netmap_conf *conf)
port_num = RTE_MAX_ETHPORTS;
port_rings = 2 * conf->max_rings;
port_slots = port_rings * conf->max_slots;
- port_bufs = port_slots;
+ port_bufs = port_slots;
nmif_sz = NETMAP_IF_RING_OFS(port_rings, port_rings, port_slots);
sz = nmif_sz * port_num;
@@ -870,7 +870,7 @@ rte_netmap_poll(struct pollfd *fds, nfds_t nfds, int timeout)
idx = FD_TO_IDX(fds[i].fd);
if ((port = fd_port[idx].port) >= RTE_DIM(ports) ||
- ports[port].fd != idx) {
+ ports[port].fd != idx) {
fds[i].revents |= POLLERR;
ret++;