summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-12-24 08:52:13 +0000
committeryar <yar@FreeBSD.org>2006-12-24 08:52:13 +0000
commitfd771edb776d00ec8549c44d8f2b9fe1567517e9 (patch)
tree136ce9b4d2b04f236824c387c39a2b8647c331ba
parent1693cd25523bfadbb5bb40d9189a488d1fd2f334 (diff)
downloadFreeBSD-src-fd771edb776d00ec8549c44d8f2b9fe1567517e9.zip
FreeBSD-src-fd771edb776d00ec8549c44d8f2b9fe1567517e9.tar.gz
Note that rev. 1.221 introduced a local workaround for a general problem.
Add a pointer to the relevant PR for future reference. The whole comment will be OK to remove as soon as the general solution is applied. PR: kern/105943
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 6893acd..4ac6bab 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -313,6 +313,10 @@ ether_output(struct ifnet *ifp, struct mbuf *m,
* be to modify if_simloop() to handle the readonly mbuf,
* but performancewise it is mostly equivalent (trading
* extra data copying vs. extra locking).
+ *
+ * XXX This is a local workaround. A number of less
+ * often used kernel parts suffer from the same bug.
+ * See PR kern/105943 for a proposed general solution.
*/
if ((n = m_dup(m, M_DONTWAIT)) != NULL) {
n->m_pkthdr.csum_flags |= csum_flags;
OpenPOWER on IntegriCloud