Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: move to new pool_foreach macros
[vpp.git]
/
src
/
plugins
/
avf
/
device.c
diff --git
a/src/plugins/avf/device.c
b/src/plugins/avf/device.c
index
c6bf2df
..
ffd372d
100644
(file)
--- a/
src/plugins/avf/device.c
+++ b/
src/plugins/avf/device.c
@@
-1307,10
+1307,10
@@
avf_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
* during suspend */
vec_reset_length (dev_pointers);
/* *INDENT-OFF* */
* during suspend */
vec_reset_length (dev_pointers);
/* *INDENT-OFF* */
- pool_foreach_index (i, am->devices
,
+ pool_foreach_index (i, am->devices
)
{
vec_add1 (dev_pointers, avf_get_device (i));
{
vec_add1 (dev_pointers, avf_get_device (i));
- }
);
+ }
vec_foreach_index (i, dev_pointers)
{
vec_foreach_index (i, dev_pointers)
{
@@
-1519,7
+1519,7
@@
avf_create_if (vlib_main_t * vm, avf_create_if_args_t * args)
return;
/* *INDENT-OFF* */
return;
/* *INDENT-OFF* */
- pool_foreach (adp, am->devices
, (
{
+ pool_foreach (adp, am->devices
)
{
if ((*adp)->pci_addr.as_u32 == args->addr.as_u32)
{
args->rv = VNET_API_ERROR_ADDRESS_IN_USE;
if ((*adp)->pci_addr.as_u32 == args->addr.as_u32)
{
args->rv = VNET_API_ERROR_ADDRESS_IN_USE;
@@
-1528,7
+1528,7
@@
avf_create_if (vlib_main_t * vm, avf_create_if_args_t * args)
&args->addr, "pci address in use");
return;
}
&args->addr, "pci address in use");
return;
}
- }
));
+ }
/* *INDENT-ON* */
pool_get (am->devices, adp);
/* *INDENT-ON* */
pool_get (am->devices, adp);