diff options
author | David Arinzon <darinzon@amazon.com> | 2024-01-01 20:08:52 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-04 03:00:57 +0100 |
commit | 2b02e332c1519572f454838400640f9a4d482de5 (patch) | |
tree | d5537fc61b1fc38c3d21a10ec3d5ccbb229c0721 /drivers/net/ethernet | |
parent | net: ena: Refactor napi functions (diff) | |
download | linux-2b02e332c1519572f454838400640f9a4d482de5.tar.xz linux-2b02e332c1519572f454838400640f9a4d482de5.zip |
net: ena: Add more debug prints to XDP related function
Used for better readability and debugging of XDP
flow.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Link: https://lore.kernel.org/r/20240101190855.18739-9-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_xdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_xdp.c b/drivers/net/ethernet/amazon/ena/ena_xdp.c index dd01b411ca18..c9992ce8d2bf 100644 --- a/drivers/net/ethernet/amazon/ena/ena_xdp.c +++ b/drivers/net/ethernet/amazon/ena/ena_xdp.c @@ -301,6 +301,8 @@ static int ena_xdp_set(struct net_device *netdev, struct netdev_bpf *bpf) } ena_xdp_exchange_program(adapter, prog); + netif_dbg(adapter, drv, adapter->netdev, "Set a new XDP program\n"); + if (is_up && !old_bpf_prog) { rc = ena_up(adapter); if (rc) @@ -309,6 +311,8 @@ static int ena_xdp_set(struct net_device *netdev, struct netdev_bpf *bpf) xdp_features_set_redirect_target(netdev, false); } else if (old_bpf_prog) { xdp_features_clear_redirect_target(netdev); + netif_dbg(adapter, drv, adapter->netdev, "Removing XDP program\n"); + rc = ena_destroy_and_free_all_xdp_queues(adapter); if (rc) return rc; |