Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f4543 commit 3ff2567Copy full SHA for 3ff2567
drivers/firewire/net.c
@@ -479,7 +479,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
479
struct sk_buff *skb, u16 source_node_id,
480
bool is_broadcast, u16 ether_type)
481
{
482
- int status;
+ int status, len;
483
484
switch (ether_type) {
485
case ETH_P_ARP:
@@ -533,13 +533,15 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
533
}
534
skb->protocol = protocol;
535
536
+
537
+ len = skb->len;
538
status = netif_rx(skb);
539
if (status == NET_RX_DROP) {
540
net->stats.rx_errors++;
541
net->stats.rx_dropped++;
542
} else {
543
net->stats.rx_packets++;
- net->stats.rx_bytes += skb->len;
544
+ net->stats.rx_bytes += len;
545
546
547
return 0;
0 commit comments