summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorSathya Perla <sathyap@serverengines.com>2009-06-10 02:21:56 +0000
committerDavid S. Miller <davem@davemloft.net>2009-06-11 02:47:16 -0700
commit76fbb42919396b9bf68c9a03ceb037c971a02e2f (patch)
tree780f561949c82da4e2be24c4caa539ca2d9823ac /drivers/net/benet
parent6811086899f2740c08d0ade26f8b9d705708e0cc (diff)
downloadop-kernel-dev-76fbb42919396b9bf68c9a03ceb037c971a02e2f.zip
op-kernel-dev-76fbb42919396b9bf68c9a03ceb037c971a02e2f.tar.gz
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 <sathyap@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 6487eb4..5aadd71 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;
}
OpenPOWER on IntegriCloud