Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2017 20:01:28 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326775 - head/sys/net
Message-ID:  <201712112001.vBBK1SDo022919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Mon Dec 11 20:01:28 2017
New Revision: 326775
URL: https://svnweb.freebsd.org/changeset/base/326775

Log:
  Increment encap_pad_mbuf_fail when m_dup() fails in padding
  
  Previously, the counter was only incremented when m_append() failed.  Since
  the function can also fail on m_dup() now, increment the counter there as
  well.
  
  Sponsored by:	Limelight Networks

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Mon Dec 11 19:21:39 2017	(r326774)
+++ head/sys/net/iflib.c	Mon Dec 11 20:01:28 2017	(r326775)
@@ -3127,6 +3127,7 @@ iflib_ether_pad(device_t dev, struct mbuf **m_head, ui
 		if (new_head == NULL) {
 			m_freem(*m_head);
 			device_printf(dev, "cannot pad short frame, m_dup() failed");
+			DBG_COUNTER_INC(encap_pad_mbuf_fail);
 			return ENOMEM;
 		}
 		m_freem(*m_head);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712112001.vBBK1SDo022919>