examples: fix whitespace
[dpdk.git] / examples / netmap_compat / lib / compat_netmap.c
index 856ab6e..d2e079f 100644 (file)
@@ -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++;