Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76fbb429 authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller
Browse files

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: default avatarSathya Perla <sathyap@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 68110868
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}