From: Sathya Perla Date: Wed, 10 Jun 2009 02:21:56 +0000 (+0000) Subject: be2net: Fix rx stats updation in non-lro path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76fbb42919396b9bf68c9a03ceb037c971a02e2f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git be2net: Fix rx stats updation in non-lro path rx stats are not getting updated when an rx_compl with only one frag is rcvd in non-lro path. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 6487eb4bad10..5aadd71d4613 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -743,7 +743,7 @@ static void skb_fill_rx_data(struct be_adapter *adapter, if (pktsize <= rx_frag_size) { BUG_ON(num_rcvd != 1); - return; + goto done; } /* More frags present for this completion */ @@ -765,6 +765,7 @@ static void skb_fill_rx_data(struct be_adapter *adapter, memset(page_info, 0, sizeof(*page_info)); } +done: be_rx_stats_update(adapter, pktsize, num_rcvd); return; }