]> Git Repo - linux.git/blobdiff - drivers/net/ethernet/intel/ice/ice_lib.c
Merge tag 'pci-v5.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[linux.git] / drivers / net / ethernet / intel / ice / ice_lib.c
index ebbb8f54871c91bb624389448922774cfef99a7d..3df67486d42d981d829d0989b0a4f9d461e1e8af 100644 (file)
@@ -7,6 +7,7 @@
 #include "ice_lib.h"
 #include "ice_fltr.h"
 #include "ice_dcb_lib.h"
+#include "ice_devlink.h"
 
 /**
  * ice_vsi_type_str - maps VSI type enum to string equivalents
@@ -1755,7 +1756,7 @@ int ice_vsi_cfg_xdp_txqs(struct ice_vsi *vsi)
                return ret;
 
        for (i = 0; i < vsi->num_xdp_txq; i++)
-               vsi->xdp_rings[i]->xsk_umem = ice_xsk_umem(vsi->xdp_rings[i]);
+               vsi->xdp_rings[i]->xsk_pool = ice_xsk_pool(vsi->xdp_rings[i]);
 
        return ret;
 }
@@ -2616,8 +2617,10 @@ int ice_vsi_release(struct ice_vsi *vsi)
         * PF that is running the work queue items currently. This is done to
         * avoid check_flush_dependency() warning on this wq
         */
-       if (vsi->netdev && !ice_is_reset_in_progress(pf->state))
+       if (vsi->netdev && !ice_is_reset_in_progress(pf->state)) {
                unregister_netdev(vsi->netdev);
+               ice_devlink_destroy_port(vsi);
+       }
 
        if (test_bit(ICE_FLAG_RSS_ENA, pf->flags))
                ice_rss_clean(vsi);
This page took 0.031893 seconds and 4 git commands to generate.