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:
parent
b6ae8b050b
commit
0dc809c034
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267170
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user