Skip to content

Commit

Permalink
linux/ena: Remove un-used ena_com_get_offload_settings function
Browse files Browse the repository at this point in the history
For `ena_com_get_offload_settings`, drivers no longer use this
function and are using `ena_com_get_feature` API for
`ENA_ADMIN_STATELESS_OFFLOAD_CONFIG` directly
(This is done for various features).

Signed-off-by: David Arinzon <[email protected]>
  • Loading branch information
davidarinzon committed Jan 2, 2025
1 parent 7d1dc43 commit 99ce105
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
18 changes: 0 additions & 18 deletions kernel/linux/common/ena_com/ena_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -2630,24 +2630,6 @@ int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu)
return ret;
}

int ena_com_get_offload_settings(struct ena_com_dev *ena_dev,
struct ena_admin_feature_offload_desc *offload)
{
int ret;
struct ena_admin_get_feat_resp resp;

ret = ena_com_get_feature(ena_dev, &resp,
ENA_ADMIN_STATELESS_OFFLOAD_CONFIG, 0);
if (unlikely(ret)) {
netdev_err(ena_dev->net_device, "Failed to get offload capabilities %d\n", ret);
return ret;
}

memcpy(offload, &resp.u.offload, sizeof(resp.u.offload));

return 0;
}

int ena_com_set_hash_function(struct ena_com_dev *ena_dev)
{
struct ena_com_admin_queue *admin_queue = &ena_dev->admin_queue;
Expand Down
9 changes: 0 additions & 9 deletions kernel/linux/common/ena_com/ena_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,15 +789,6 @@ int ena_com_get_customer_metrics(struct ena_com_dev *ena_dev, char *buffer, u32
*/
int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu);

/* ena_com_get_offload_settings - Retrieve the device offloads capabilities
* @ena_dev: ENA communication layer struct
* @offlad: offload return value
*
* @return: 0 on Success and negative value otherwise.
*/
int ena_com_get_offload_settings(struct ena_com_dev *ena_dev,
struct ena_admin_feature_offload_desc *offload);

/* ena_com_rss_init - Init RSS
* @ena_dev: ENA communication layer struct
*
Expand Down

0 comments on commit 99ce105

Please sign in to comment.