diff options
author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-11-28 14:07:34 +0000 |
---|---|---|
committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-11-28 14:07:34 +0000 |
commit | d55913f55588e863afa9ae8d08542fb2ade810e6 (patch) | |
tree | d60943fc7f52051597f2dbd71c87f2439a1f54b8 /sys/dev/netmap/netmap_freebsd.c | |
parent | 006f540e4424fa2a4256d2f8059b07efad817c98 (diff) | |
download | src-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.c | 1 |
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 |