move netmap_getna() to a freebsd-specific file

This commit is contained in:
Luigi Rizzo 2014-06-06 16:23:08 +00:00
parent b6ae8b050b
commit 0dc809c034
2 changed files with 8 additions and 6 deletions

View file

@ -223,6 +223,14 @@ generic_xmit_frame(struct ifnet *ifp, struct mbuf *m,
}
#if __FreeBSD_version >= 1100005
struct netmap_adapter *
netmap_getna(if_t ifp)
{
return (NA((struct ifnet *)ifp));
}
#endif /* __FreeBSD_version >= 1100005 */
/*
* The following two functions are empty until we have a generic
* way to extract the info from the ifp

View file

@ -811,9 +811,3 @@ generic_netmap_attach(struct ifnet *ifp)
return retval;
}
struct netmap_adapter *
netmap_getna(if_t ifp)
{
return (NA((struct ifnet *)ifp));
}