aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2009-12-31 20:29:58 +0000
committerBrooks Davis <brooks@FreeBSD.org>2009-12-31 20:29:58 +0000
commita6fffd6cb0d5239deb08f41b4106b37b8a988280 (patch)
tree5056962dae0f4e2a29ef2bc9e81b2303cf37d6a1 /sys/net/if.c
parent70044f3070d886c741620cb8459a34d547347a78 (diff)
downloadsrc-a6fffd6cb0d5239deb08f41b4106b37b8a988280.tar.gz
src-a6fffd6cb0d5239deb08f41b4106b37b8a988280.zip
The devices that supported EVFILT_NETDEV kqueue filters were removed in
r195175. Remove all definitions, documentation, and usage. fifo_misc.c: Remove all kqueue tests as fifo_io.c performs all those that would have remained. Reviewed by: rwatson MFC after: 3 weeks X-MFC note: don't change vlan_link_state() function signature
Notes
Notes: svn path=/head/; revision=201350
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 7029b9c85ed0..ad77d654c5a1 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1819,7 +1819,7 @@ if_route(struct ifnet *ifp, int flag, int fam)
#endif
}
-void (*vlan_link_state_p)(struct ifnet *, int); /* XXX: private from if_vlan */
+void (*vlan_link_state_p)(struct ifnet *); /* XXX: private from if_vlan */
void (*vlan_trunk_cap_p)(struct ifnet *); /* XXX: private from if_vlan */
/*
@@ -1845,19 +1845,12 @@ do_link_state_change(void *arg, int pending)
{
struct ifnet *ifp = (struct ifnet *)arg;
int link_state = ifp->if_link_state;
- int link;
CURVNET_SET(ifp->if_vnet);
/* Notify that the link state has changed. */
rt_ifmsg(ifp);
- if (link_state == LINK_STATE_UP)
- link = NOTE_LINKUP;
- else if (link_state == LINK_STATE_DOWN)
- link = NOTE_LINKDOWN;
- else
- link = NOTE_LINKINV;
if (ifp->if_vlantrunk != NULL)
- (*vlan_link_state_p)(ifp, link);
+ (*vlan_link_state_p)(ifp);
if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) &&
IFP2AC(ifp)->ac_netgraph != NULL)