Page MenuHomeFreeBSD

LinuxKPI/OFED: (re)move inetdevice.h implementation
ClosedPublic

Authored by bz on Mar 26 2021, 6:24 PM.
Tags
None
Referenced Files
F171583808: D29434.id.diff
Fri, Sep 11, 10:05 PM
Unknown Object (File)
Thu, Sep 10, 6:14 AM
Unknown Object (File)
Sun, Sep 6, 7:43 PM
Unknown Object (File)
Sat, Sep 5, 1:02 PM
Unknown Object (File)
Fri, Sep 4, 4:46 PM
Unknown Object (File)
Fri, Sep 4, 12:23 PM
Unknown Object (File)
Thu, Sep 3, 10:08 PM
Unknown Object (File)
Wed, Sep 2, 12:17 PM

Details

Summary

The two functions in linux/inetdevice.h are highly FreeBSD/ifnet
specific. This is a result of struct net_device being mapped to
struct ifnet.

The only known consumer of these functions are two files in the
ofed/infiniband code.

As a first step of cleaning up copy linux/inetdevice.h to
rdma/ib_addr_freebsd.h. (It stayed a separate file to preserve
copyright and license of the original file; otherwise it could be
merged into ib_addr.h where more EPOCH/vnet/.. are already used).

Slightly rename the function to not conflict with LinuxKPI
in the future.

Remove the three last, now unneeded, include of inetdevice.h and
zap linux/inetdevice.h to an empty header file with only the forward
include to netdevice.h remaining.

Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-by: ...
X-D-R: D29366 (extracted as further cleanup)
Differential Revision:

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38092
Build 34981: arc lint + arc unit