aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_freebsd.c
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2018-11-28 14:07:34 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2018-11-28 14:07:34 +0000
commitd55913f55588e863afa9ae8d08542fb2ade810e6 (patch)
treed60943fc7f52051597f2dbd71c87f2439a1f54b8 /sys/dev/netmap/netmap_freebsd.c
parent006f540e4424fa2a4256d2f8059b07efad817c98 (diff)
downloadsrc-d55913f55588e863afa9ae8d08542fb2ade810e6.tar.gz
src-d55913f55588e863afa9ae8d08542fb2ade810e6.zip
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
Notes
Notes: svn path=/head/; revision=341144
Diffstat (limited to 'sys/dev/netmap/netmap_freebsd.c')
-rw-r--r--sys/dev/netmap/netmap_freebsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/netmap/netmap_freebsd.c b/sys/dev/netmap/netmap_freebsd.c
index 5472cfef99bf..18752071d695 100644
--- a/sys/dev/netmap/netmap_freebsd.c
+++ b/sys/dev/netmap/netmap_freebsd.c
@@ -1549,6 +1549,7 @@ out:
void
nm_os_onattach(struct ifnet *ifp)
{
+ ifp->if_capabilities |= IFCAP_NETMAP;
}
void