lib: fix whitespace
More places with trailing whitespace, and empty blank lines Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
364ea77481
commit
a43a55472f
@ -464,4 +464,3 @@ cirbuf_get_tail(struct cirbuf * cbuf)
|
||||
{
|
||||
return cbuf->buf[cbuf->end];
|
||||
}
|
||||
|
||||
|
@ -561,4 +561,3 @@ cmdline_complete(struct cmdline *cl, const char *buf, int *state,
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -695,4 +695,3 @@ rdline_miniprintf(struct rdline *rdl, const char * buf, unsigned int val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,16 +54,16 @@
|
||||
* foo is exported as a global symbol.
|
||||
*
|
||||
* 2) rename the existing function int foo(char *string) to
|
||||
* int __vsym foo_v20(char *string)
|
||||
* int __vsym foo_v20(char *string)
|
||||
*
|
||||
* 3) Add this macro immediately below the function
|
||||
* VERSION_SYMBOL(foo, _v20, 2.0);
|
||||
* VERSION_SYMBOL(foo, _v20, 2.0);
|
||||
*
|
||||
* 4) Implement a new version of foo.
|
||||
* char foo(int value, int otherval) { ...}
|
||||
* char foo(int value, int otherval) { ...}
|
||||
*
|
||||
* 5) Mark the newest version as the default version
|
||||
* BIND_DEFAULT_SYMBOL(foo, 2.1);
|
||||
* BIND_DEFAULT_SYMBOL(foo, 2.1);
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -226,4 +226,3 @@ rte_fbk_hash_free(struct rte_fbk_hash_table *ht)
|
||||
rte_free(ht);
|
||||
rte_free(te);
|
||||
}
|
||||
|
||||
|
@ -1006,4 +1006,3 @@ rte_lpm_delete_all(struct rte_lpm *lpm)
|
||||
/* Delete all rules form the rules table. */
|
||||
memset(lpm->rules_tbl, 0, sizeof(lpm->rules_tbl[0]) * lpm->max_rules);
|
||||
}
|
||||
|
||||
|
@ -206,4 +206,3 @@ malloc_heap_get_stats(const struct malloc_heap *heap,
|
||||
socket_stats->alloc_count = heap->alloc_count;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -49,17 +49,17 @@
|
||||
#
|
||||
# 3.a) Set the VM to use the launch script
|
||||
#
|
||||
# Set the emulator path contained in the
|
||||
# Set the emulator path contained in the
|
||||
# <emulator><emulator/> tags
|
||||
#
|
||||
# e.g replace <emulator>/usr/bin/qemu-kvm<emulator/>
|
||||
# e.g replace <emulator>/usr/bin/qemu-kvm<emulator/>
|
||||
# with <emulator>/usr/bin/qemu-wrap.py<emulator/>
|
||||
#
|
||||
# 3.b) Set the VM's device's to use vhost-net offload
|
||||
#
|
||||
# <interface type="network">
|
||||
# <model type="virtio"/>
|
||||
# <driver name="vhost"/>
|
||||
# <model type="virtio"/>
|
||||
# <driver name="vhost"/>
|
||||
# <interface/>
|
||||
#
|
||||
# 4. Enable libvirt to access our userpace device file by adding it to
|
||||
@ -229,7 +229,7 @@ def get_vhost_fd():
|
||||
# flags onto the end
|
||||
#############################################
|
||||
def modify_netdev_arg(arg):
|
||||
|
||||
|
||||
global fd_list
|
||||
vhost_in_use = 0
|
||||
s = ''
|
||||
@ -259,7 +259,7 @@ def modify_netdev_arg(arg):
|
||||
|
||||
s+=opt
|
||||
|
||||
return s
|
||||
return s
|
||||
|
||||
|
||||
#############################################
|
||||
@ -364,4 +364,3 @@ def main():
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
@ -615,7 +615,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id,
|
||||
if (unlikely(m == NULL)) {
|
||||
RTE_LOG(ERR, VHOST_DATA,
|
||||
"Failed to allocate memory for mbuf.\n");
|
||||
break;
|
||||
break;
|
||||
}
|
||||
seg_offset = 0;
|
||||
seg_avail = m->buf_len - RTE_PKTMBUF_HEADROOM;
|
||||
|
Loading…
Reference in New Issue
Block a user