| 1569 | } |
| 1570 | |
| 1571 | static void |
| 1572 | ut_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 | |
| 1598 | static int |
| 1599 | test_device_configure_invalid_dev_id(void) |
nothing calls this directly
no test coverage detected