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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to