diff options
author | Calvin <calvin.ference@gmail.com> | 2016-08-19 16:23:14 -0400 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-08-22 21:03:43 +0000 |
commit | 71e97c631a52fc7fbb8b18b37cbdbfbebedee853 (patch) | |
tree | fc6ee1e6c4d37a129190a1cf8787125381852341 /vnet/vnet/pg/output.c | |
parent | aba0fe494d0dd7800d116152b27b629dfea273b8 (diff) |
VPP-267: Style cleanup for vnet/vnet/pg
Change-Id: I6c8bf1dfee7db4b658c2afa4888bcd52b03808fd
Signed-off-by: Calvin <calvin.ference@gmail.com>
Diffstat (limited to 'vnet/vnet/pg/output.c')
-rw-r--r-- | vnet/vnet/pg/output.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/vnet/vnet/pg/output.c b/vnet/vnet/pg/output.c index 5ce3f903508..2de06acaea5 100644 --- a/vnet/vnet/pg/output.c +++ b/vnet/vnet/pg/output.c @@ -43,16 +43,14 @@ #include <vnet/ethernet/ethernet.h> uword -pg_output (vlib_main_t * vm, - vlib_node_runtime_t * node, - vlib_frame_t * frame) +pg_output (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) { - pg_main_t * pg = &pg_main; - u32 * buffers = vlib_frame_args (frame); + pg_main_t *pg = &pg_main; + u32 *buffers = vlib_frame_args (frame); uword n_buffers = frame->n_vectors; uword n_left = n_buffers; - vnet_interface_output_runtime_t * rd = (void *) node->runtime_data; - pg_interface_t * pif = pool_elt_at_index (pg->interfaces, rd->dev_instance); + vnet_interface_output_runtime_t *rd = (void *) node->runtime_data; + pg_interface_t *pif = pool_elt_at_index (pg->interfaces, rd->dev_instance); if (pif->pcap_file_name != 0) { @@ -62,7 +60,8 @@ pg_output (vlib_main_t * vm, u32 bi0 = buffers[0]; buffers++; - pcap_add_buffer (&pif->pcap_main, vm, bi0, ETHERNET_MAX_PACKET_BYTES); + pcap_add_buffer (&pif->pcap_main, vm, bi0, + ETHERNET_MAX_PACKET_BYTES); } pcap_write (&pif->pcap_main); } @@ -70,3 +69,11 @@ pg_output (vlib_main_t * vm, vlib_buffer_free_no_next (vm, vlib_frame_args (frame), n_buffers); return n_buffers; } + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |