MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ut_teardown_rx_inject

Function ut_teardown_rx_inject

dpdk/app/test/test_cryptodev.c:1571–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569}
1570
1571static void
1572ut_teardown_rx_inject(void)
1573{
1574 struct crypto_testsuite_params *ts_params = &testsuite_params;
1575 void *sec_ctx;
1576 int ret;
1577
1578 if (rte_eth_dev_count_avail() != 0) {
1579 ret = rte_eth_dev_reset(0);
1580 if (ret)
1581 printf("Could not reset eth port 0");
1582
1583 }
1584
1585 ut_teardown();
1586
1587 sec_ctx = rte_cryptodev_get_sec_ctx(ts_params->valid_devs[0]);
1588 if (sec_ctx == NULL)
1589 return;
1590
1591 ret = rte_security_rx_inject_configure(sec_ctx, 0, false);
1592 if (ret) {
1593 printf("Could not disable Rx inject offload");
1594 return;
1595 }
1596}
1597
1598static int
1599test_device_configure_invalid_dev_id(void)

Callers

nothing calls this directly

Calls 6

rte_eth_dev_count_availFunction · 0.85
rte_eth_dev_resetFunction · 0.85
ut_teardownFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected