Remove an alias if_list, use if_link consistently.

Reviewed by:	tuexen
Differential Revision:	https://reviews.freebsd.org/D8075
This commit is contained in:
Kevin Lo 2016-10-06 00:51:27 +00:00
parent 4dea20be45
commit c2b5ba7661
3 changed files with 3 additions and 4 deletions

View File

@ -435,7 +435,7 @@ tbr_timeout(arg)
VNET_FOREACH(vnet_iter) {
CURVNET_SET(vnet_iter);
for (ifp = TAILQ_FIRST(&V_ifnet); ifp;
ifp = TAILQ_NEXT(ifp, if_list)) {
ifp = TAILQ_NEXT(ifp, if_link)) {
/* read from if_snd unlocked */
if (!TBR_IS_ENABLED(&ifp->if_snd))
continue;

View File

@ -313,7 +313,6 @@ struct ifnet {
};
/* for compatibility with other BSDs */
#define if_list if_link
#define if_name(ifp) ((ifp)->if_xname)
/*

View File

@ -208,7 +208,7 @@ sctp_init_ifns_for_vrf(int vrfid)
#endif
IFNET_RLOCK();
TAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_list) {
TAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_link) {
if (sctp_is_desired_interface_type(ifn) == 0) {
/* non desired type */
continue;
@ -361,7 +361,7 @@ void
struct ifaddr *ifa;
IFNET_RLOCK();
TAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_list) {
TAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_link) {
if (!(*pred) (ifn)) {
continue;
}