Skip to content

Commit 99ce105

Browse files
committed
linux/ena: Remove un-used ena_com_get_offload_settings function
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]>
1 parent 7d1dc43 commit 99ce105

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

kernel/linux/common/ena_com/ena_com.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,24 +2630,6 @@ int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu)
26302630
return ret;
26312631
}
26322632

2633-
int ena_com_get_offload_settings(struct ena_com_dev *ena_dev,
2634-
struct ena_admin_feature_offload_desc *offload)
2635-
{
2636-
int ret;
2637-
struct ena_admin_get_feat_resp resp;
2638-
2639-
ret = ena_com_get_feature(ena_dev, &resp,
2640-
ENA_ADMIN_STATELESS_OFFLOAD_CONFIG, 0);
2641-
if (unlikely(ret)) {
2642-
netdev_err(ena_dev->net_device, "Failed to get offload capabilities %d\n", ret);
2643-
return ret;
2644-
}
2645-
2646-
memcpy(offload, &resp.u.offload, sizeof(resp.u.offload));
2647-
2648-
return 0;
2649-
}
2650-
26512633
int ena_com_set_hash_function(struct ena_com_dev *ena_dev)
26522634
{
26532635
struct ena_com_admin_queue *admin_queue = &ena_dev->admin_queue;

kernel/linux/common/ena_com/ena_com.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -789,15 +789,6 @@ int ena_com_get_customer_metrics(struct ena_com_dev *ena_dev, char *buffer, u32
789789
*/
790790
int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, u32 mtu);
791791

792-
/* ena_com_get_offload_settings - Retrieve the device offloads capabilities
793-
* @ena_dev: ENA communication layer struct
794-
* @offlad: offload return value
795-
*
796-
* @return: 0 on Success and negative value otherwise.
797-
*/
798-
int ena_com_get_offload_settings(struct ena_com_dev *ena_dev,
799-
struct ena_admin_feature_offload_desc *offload);
800-
801792
/* ena_com_rss_init - Init RSS
802793
* @ena_dev: ENA communication layer struct
803794
*

0 commit comments

Comments
 (0)