Skip to content

Commit

Permalink
net/ena: remove unused offload variables
Browse files Browse the repository at this point in the history
[ upstream commit fa11980449c225a217bf6923e79924edf991cb27 ]

Those variables are being set, but never read. As they seem to be
leftover from the old offloads API and don't have any purpose right
now, they are simply being removed.

Fixes: a4996bd ("ethdev: new Rx/Tx offloads API")

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Artur Rojek <ar@semihalf.com>
Reviewed-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
  • Loading branch information
Gerwand authored and cpaelzer committed Mar 9, 2022
1 parent c3510f9 commit 2ffbbf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ena/ena_ethdev.c
Expand Up @@ -1937,9 +1937,6 @@ static int ena_dev_configure(struct rte_eth_dev *dev)
*/
dev->data->scattered_rx = 1;

adapter->tx_selected_offloads = dev->data->dev_conf.txmode.offloads;
adapter->rx_selected_offloads = dev->data->dev_conf.rxmode.offloads;

return 0;
}

Expand Down
5 changes: 0 additions & 5 deletions drivers/net/ena/ena_ethdev.h
Expand Up @@ -179,11 +179,6 @@ struct ena_adapter {
struct ena_driver_stats *drv_stats;
enum ena_adapter_state state;

uint64_t tx_supported_offloads;
uint64_t tx_selected_offloads;
uint64_t rx_supported_offloads;
uint64_t rx_selected_offloads;

bool link_status;

enum ena_regs_reset_reason_types reset_reason;
Expand Down

0 comments on commit 2ffbbf4

Please sign in to comment.