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

Function ena_com_get_offload_settings

dpdk/drivers/net/ena/base/ena_com.c:2630–2646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628}
2629
2630int 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
2648int ena_com_set_hash_function(struct ena_com_dev *ena_dev)
2649{

Callers

nothing calls this directly

Calls 2

ena_com_get_featureFunction · 0.70
memcpyFunction · 0.50

Tested by

no test coverage detected