svn commit: r301949 - stable/10/sys/netinet
Sepherosa Ziehau
sephe at FreeBSD.org
Thu Jun 16 04:21:28 UTC 2016
Author: sephe
Date: Thu Jun 16 04:21:27 2016
New Revision: 301949
URL: https://svnweb.freebsd.org/changeset/base/301949
Log:
MFC 297265
tcp/lro: Return TCP_LRO_NO_ENTRIES if we are short of LRO entries.
So that callers could react accordingly.
Reviewed by: gallatin (no objection)
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5695
Modified:
stable/10/sys/netinet/tcp_lro.c
stable/10/sys/netinet/tcp_lro.h
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/tcp_lro.c
==============================================================================
--- stable/10/sys/netinet/tcp_lro.c Thu Jun 16 03:25:26 2016 (r301948)
+++ stable/10/sys/netinet/tcp_lro.c Thu Jun 16 04:21:27 2016 (r301949)
@@ -570,7 +570,7 @@ tcp_lro_rx(struct lro_ctrl *lc, struct m
/* Try to find an empty slot. */
if (SLIST_EMPTY(&lc->lro_free))
- return (TCP_LRO_CANNOT);
+ return (TCP_LRO_NO_ENTRIES);
/* Start a new segment chain. */
le = SLIST_FIRST(&lc->lro_free);
Modified: stable/10/sys/netinet/tcp_lro.h
==============================================================================
--- stable/10/sys/netinet/tcp_lro.h Thu Jun 16 03:25:26 2016 (r301948)
+++ stable/10/sys/netinet/tcp_lro.h Thu Jun 16 04:21:27 2016 (r301949)
@@ -90,6 +90,7 @@ void tcp_lro_flush_inactive(struct lro_c
void tcp_lro_flush(struct lro_ctrl *, struct lro_entry *);
int tcp_lro_rx(struct lro_ctrl *, struct mbuf *, uint32_t);
+#define TCP_LRO_NO_ENTRIES -2
#define TCP_LRO_CANNOT -1
#define TCP_LRO_NOT_SUPPORTED 1
More information about the svn-src-stable-10
mailing list