Frames that are not considered for LRO should not be counted in LRO statistics.

Reviewed by:	gnn@, hselasky@, gallatin@
MFC after:	1 week
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D10430
This commit is contained in:
Navdeep Parhar 2017-04-24 22:31:56 +00:00
parent 5477372324
commit ea9a92f112
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317389

View File

@ -953,8 +953,6 @@ tcp_lro_queue_mbuf(struct lro_ctrl *lc, struct mbuf *mb)
/* check if packet is not LRO capable */
if (__predict_false(mb->m_pkthdr.csum_flags == 0 ||
(lc->ifp->if_capenable & IFCAP_LRO) == 0)) {
lc->lro_flushed++;
lc->lro_queued++;
/* input packet to network layer */
(*lc->ifp->if_input) (lc->ifp, mb);