From owner-svn-ports-head@FreeBSD.ORG Thu Oct 2 18:17:49 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8BDC6EB; Thu, 2 Oct 2014 18:17:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99392B9B; Thu, 2 Oct 2014 18:17:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s92IHn6O022282; Thu, 2 Oct 2014 18:17:49 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s92IHnf5022280; Thu, 2 Oct 2014 18:17:49 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201410021817.s92IHnf5022280@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Thu, 2 Oct 2014 18:17:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369842 - in head/emulators/open-vm-tools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2014 18:17:49 -0000 Author: glebius (src committer) Date: Thu Oct 2 18:17:48 2014 New Revision: 369842 URL: https://svnweb.freebsd.org/changeset/ports/369842 QAT: https://qat.redports.org/buildarchive/r369842/ Log: Update for recent ifnet(9) changes in head. Approved by: bapt (blanket) Modified: head/emulators/open-vm-tools/Makefile head/emulators/open-vm-tools/files/patch-modules__freebsd__vmxnet__if_vxn.c Modified: head/emulators/open-vm-tools/Makefile ============================================================================== --- head/emulators/open-vm-tools/Makefile Thu Oct 2 17:55:32 2014 (r369841) +++ head/emulators/open-vm-tools/Makefile Thu Oct 2 18:17:48 2014 (r369842) @@ -3,7 +3,7 @@ PORTNAME= open-vm-tools PORTVERSION= ${BUILD_VER} -PORTREVISION= 7 +PORTREVISION= 8 PORTEPOCH= 1 CATEGORIES= emulators MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-9.4.x Modified: head/emulators/open-vm-tools/files/patch-modules__freebsd__vmxnet__if_vxn.c ============================================================================== --- head/emulators/open-vm-tools/files/patch-modules__freebsd__vmxnet__if_vxn.c Thu Oct 2 17:55:32 2014 (r369841) +++ head/emulators/open-vm-tools/files/patch-modules__freebsd__vmxnet__if_vxn.c Thu Oct 2 18:17:48 2014 (r369842) @@ -1,5 +1,5 @@ ---- ./modules/freebsd/vmxnet/if_vxn.c.orig 2013-09-23 15:51:10.000000000 +0000 -+++ ./modules/freebsd/vmxnet/if_vxn.c 2014-04-23 15:36:44.347844739 +0000 +--- modules/freebsd/vmxnet/if_vxn.c.orig 2013-09-23 19:51:10.000000000 +0400 ++++ modules/freebsd/vmxnet/if_vxn.c 2014-10-02 22:13:31.000000000 +0400 @@ -76,6 +76,10 @@ #include #endif @@ -28,7 +28,19 @@ if (!(m_new->m_flags & M_EXT)) { m_freem(m_new); printf("vxn%d: no memory for tx list\n", VXN_IF_UNIT(ifp)); -@@ -1266,9 +1270,9 @@ +@@ -1067,7 +1071,11 @@ + VMXNET_INC(dd->txDriverNext, dd->txRingLength); + dd->txNumDeferred++; + sc->vxn_tx_pending++; ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); ++#else + ifp->if_opackets++; ++#endif + } + + /* +@@ -1266,9 +1274,9 @@ /* * Allocate a new mbuf cluster to replace the current one */ @@ -40,7 +52,20 @@ if (m_new->m_flags & M_EXT) { m_adj(m_new, ETHER_ALIGN); } else { -@@ -1401,10 +1405,10 @@ +@@ -1286,8 +1294,11 @@ + + sc->vxn_rx_buffptr[dd->rxDriverNext] = m_new; + rre->paddr = (uint32)vtophys(mtod(m_new, caddr_t)); +- ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); ++#else + ifp->if_ipackets++; ++#endif + m->m_pkthdr.rcvif = ifp; + m->m_pkthdr.len = m->m_len = pkt_len; + +@@ -1401,10 +1412,10 @@ * Allocate an mbuf and initialize it to contain a packet header and * internal data. */