git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: fix FreeBSD build
[dpdk.git]
/
app
/
test
/
test_link_bonding.c
diff --git
a/app/test/test_link_bonding.c
b/app/test/test_link_bonding.c
index
388cf11
..
3229660
100644
(file)
--- a/
app/test/test_link_bonding.c
+++ b/
app/test/test_link_bonding.c
@@
-83,7
+83,7
@@
#define MAX_PKT_BURST (512)
#define DEF_PKT_BURST (16)
#define MAX_PKT_BURST (512)
#define DEF_PKT_BURST (16)
-#define BONDED_DEV_NAME ("unit_test_bond
ed_device
")
+#define BONDED_DEV_NAME ("unit_test_bond
_dev
")
#define INVALID_SOCKET_ID (-1)
#define INVALID_PORT_ID (-1)
#define INVALID_SOCKET_ID (-1)
#define INVALID_PORT_ID (-1)
@@
-4020,16
+4020,14
@@
test_close_bonded_device(void)
return 0;
}
return 0;
}
-static
int
+static
void
testsuite_teardown(void)
{
testsuite_teardown(void)
{
- if (test_params->pkt_eth_hdr != NULL) {
- free(test_params->pkt_eth_hdr);
- test_params->pkt_eth_hdr = NULL;
- }
+ free(test_params->pkt_eth_hdr);
+ test_params->pkt_eth_hdr = NULL;
/* Clean up and remove slaves from bonded device */
/* Clean up and remove slaves from bonded device */
- re
turn re
move_slaves_and_stop_bonded_device();
+ remove_slaves_and_stop_bonded_device();
}
static void
}
static void
@@
-4993,7
+4991,7
@@
static struct unit_test_suite link_bonding_test_suite = {
TEST_CASE(test_reconfigure_bonded_device),
TEST_CASE(test_close_bonded_device),
TEST_CASE(test_reconfigure_bonded_device),
TEST_CASE(test_close_bonded_device),
-
{ NULL, NULL, NULL, NULL, NULL }
/**< NULL terminate unit test array */
+
TEST_CASES_END()
/**< NULL terminate unit test array */
}
};
}
};
@@
-5004,8
+5002,4
@@
test_link_bonding(void)
return unit_test_suite_runner(&link_bonding_test_suite);
}
return unit_test_suite_runner(&link_bonding_test_suite);
}
-static struct test_command link_bonding_cmd = {
- .command = "link_bonding_autotest",
- .callback = test_link_bonding,
-};
-REGISTER_TEST_COMMAND(link_bonding_cmd);
+REGISTER_TEST_COMMAND(link_bonding_autotest, test_link_bonding);