projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6811086
)
be2net: Fix rx stats updation in non-lro path
author
Sathya Perla
<sathyap@serverengines.com>
Wed, 10 Jun 2009 02:21:56 +0000
(
02:21
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Jun 2009 09:47:16 +0000
(
02:47
-0700)
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>
drivers/net/benet/be_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/benet/be_main.c
b/drivers/net/benet/be_main.c
index 6487eb4bad107c00e82601f109696ed1b460919b..5aadd71d4613c97b74739653f2d63f85dbaca9b2 100644
(file)
--- 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;
}