aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/sfc/rx.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c
index a60c7188fdad..32cfe40881cc 100644
--- a/drivers/net/sfc/rx.c
+++ b/drivers/net/sfc/rx.c
@@ -564,7 +564,7 @@ void __efx_rx_packet(struct efx_channel *channel,
564 if (unlikely(efx->loopback_selftest)) { 564 if (unlikely(efx->loopback_selftest)) {
565 efx_loopback_rx_packet(efx, rx_buf->data, rx_buf->len); 565 efx_loopback_rx_packet(efx, rx_buf->data, rx_buf->len);
566 efx_free_rx_buffer(efx, rx_buf); 566 efx_free_rx_buffer(efx, rx_buf);
567 goto done; 567 return;
568 } 568 }
569 569
570 if (rx_buf->skb) { 570 if (rx_buf->skb) {
@@ -580,7 +580,7 @@ void __efx_rx_packet(struct efx_channel *channel,
580 580
581 if (likely(checksummed || rx_buf->page)) { 581 if (likely(checksummed || rx_buf->page)) {
582 efx_rx_packet_lro(channel, rx_buf, checksummed); 582 efx_rx_packet_lro(channel, rx_buf, checksummed);
583 goto done; 583 return;
584 } 584 }
585 585
586 /* We now own the SKB */ 586 /* We now own the SKB */
@@ -601,9 +601,6 @@ void __efx_rx_packet(struct efx_channel *channel,
601 601
602 /* Update allocation strategy method */ 602 /* Update allocation strategy method */
603 channel->rx_alloc_level += RX_ALLOC_FACTOR_SKB; 603 channel->rx_alloc_level += RX_ALLOC_FACTOR_SKB;
604
605done:
606 ;
607} 604}
608 605
609void efx_rx_strategy(struct efx_channel *channel) 606void efx_rx_strategy(struct efx_channel *channel)