Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2018 14:07:35 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341144 - head/sys/dev/netmap
Message-ID:  <201811281407.wASE7ZvZ006455@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Wed Nov 28 14:07:34 2018
New Revision: 341144
URL: https://svnweb.freebsd.org/changeset/base/341144

Log:
  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.
  
  Reviewed by:	np
  Approved by:	gnn (mentor)
  MFC after:	3 days
  Differential Revision:	https://reviews.freebsd.org/D17987

Modified:
  head/sys/dev/netmap/netmap_freebsd.c

Modified: head/sys/dev/netmap/netmap_freebsd.c
==============================================================================
--- head/sys/dev/netmap/netmap_freebsd.c	Wed Nov 28 13:54:39 2018	(r341143)
+++ head/sys/dev/netmap/netmap_freebsd.c	Wed Nov 28 14:07:34 2018	(r341144)
@@ -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?201811281407.wASE7ZvZ006455>