File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2033,6 +2033,11 @@ vmxnet3_rq_cleanup(struct vmxnet3_rx_queue *rq,
20332033
20342034 rq -> comp_ring .gen = VMXNET3_INIT_GEN ;
20352035 rq -> comp_ring .next2proc = 0 ;
2036+
2037+ if (xdp_rxq_info_is_reg (& rq -> xdp_rxq ))
2038+ xdp_rxq_info_unreg (& rq -> xdp_rxq );
2039+ page_pool_destroy (rq -> page_pool );
2040+ rq -> page_pool = NULL ;
20362041}
20372042
20382043
@@ -2073,11 +2078,6 @@ static void vmxnet3_rq_destroy(struct vmxnet3_rx_queue *rq,
20732078 }
20742079 }
20752080
2076- if (xdp_rxq_info_is_reg (& rq -> xdp_rxq ))
2077- xdp_rxq_info_unreg (& rq -> xdp_rxq );
2078- page_pool_destroy (rq -> page_pool );
2079- rq -> page_pool = NULL ;
2080-
20812081 if (rq -> data_ring .base ) {
20822082 dma_free_coherent (& adapter -> pdev -> dev ,
20832083 rq -> rx_ring [0 ].size * rq -> data_ring .desc_size ,
You can’t perform that action at this time.
0 commit comments