Skip to content

Commit

Permalink
be2net: Fix rx stats updation in non-lro path
Browse files Browse the repository at this point in the history
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 <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Jun 11, 2009
1 parent 6811086 commit 76fbb42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;
}
Expand Down

0 comments on commit 76fbb42

Please sign in to comment.