| 2628 | } |
| 2629 | |
| 2630 | int ena_com_get_offload_settings(struct ena_com_dev *ena_dev, |
| 2631 | struct ena_admin_feature_offload_desc *offload) |
| 2632 | { |
| 2633 | int ret; |
| 2634 | struct ena_admin_get_feat_resp resp; |
| 2635 | |
| 2636 | ret = ena_com_get_feature(ena_dev, &resp, |
| 2637 | ENA_ADMIN_STATELESS_OFFLOAD_CONFIG, 0); |
| 2638 | if (unlikely(ret)) { |
| 2639 | ena_trc_err(ena_dev, "Failed to get offload capabilities %d\n", ret); |
| 2640 | return ret; |
| 2641 | } |
| 2642 | |
| 2643 | memcpy(offload, &resp.u.offload, sizeof(resp.u.offload)); |
| 2644 | |
| 2645 | return 0; |
| 2646 | } |
| 2647 | |
| 2648 | int ena_com_set_hash_function(struct ena_com_dev *ena_dev) |
| 2649 | { |
nothing calls this directly
no test coverage detected