Skip to content

Commit

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

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 bluca committed Feb 28, 2022
1 parent d609358 commit 39f6adb
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
Original file line number Diff line number Diff line change
Expand Up @@ -2023,9 +2023,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
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,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 39f6adb

Please sign in to comment.