Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2018 11:50:52 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341361 - stable/12/sys/dev/netmap
Message-ID:  <201812011150.wB1BoqDq090136@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Sat Dec  1 11:50:52 2018
New Revision: 341361
URL: https://svnweb.freebsd.org/changeset/base/341361

Log:
  MFC r341144
  
  netmap: set IFCAP_NETMAP in if_capabilities
  
  Revision r307394 removed (by mistake) the code that sets IFCAP_NETMAP
  in if_capabilities on netmap_attach. This patch reverts this change.
  
  Differential Revision:	https://reviews.freebsd.org/D17987

Modified:
  stable/12/sys/dev/netmap/netmap_freebsd.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/netmap/netmap_freebsd.c
==============================================================================
--- stable/12/sys/dev/netmap/netmap_freebsd.c	Sat Dec  1 09:59:32 2018	(r341360)
+++ stable/12/sys/dev/netmap/netmap_freebsd.c	Sat Dec  1 11:50:52 2018	(r341361)
@@ -1549,6 +1549,7 @@ out:
 void
 nm_os_onattach(struct ifnet *ifp)
 {
+	ifp->if_capabilities |= IFCAP_NETMAP;
 }
 
 void



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