1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267170
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));
}