File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
drivers/net/ethernet/hisilicon Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,9 @@ static int hip04_rx_poll(struct napi_struct *napi, int budget)
585585 u16 len ;
586586 u32 err ;
587587
588+ /* clean up tx descriptors */
589+ tx_remaining = hip04_tx_reclaim (ndev , false);
590+
588591 while (cnt && !last ) {
589592 buf = priv -> rx_buf [priv -> rx_head ];
590593 skb = build_skb (buf , priv -> rx_buf_size );
@@ -645,8 +648,7 @@ static int hip04_rx_poll(struct napi_struct *napi, int budget)
645648 }
646649 napi_complete_done (napi , rx );
647650done :
648- /* clean up tx descriptors and start a new timer if necessary */
649- tx_remaining = hip04_tx_reclaim (ndev , false);
651+ /* start a new timer if necessary */
650652 if (rx < budget && tx_remaining )
651653 hip04_start_tx_timer (priv );
652654
You can’t perform that action at this time.
0 commit comments