Changeset View
Changeset View
Standalone View
Standalone View
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Show First 20 Lines • Show All 1,611 Lines • ▼ Show 20 Lines | #ifdef MAC | ||||
mac_ifnet_create_mbuf(ifp, m); | mac_ifnet_create_mbuf(ifp, m); | ||||
#endif | #endif | ||||
/* Allow monitor mode to claim this frame, after stats are updated. */ | /* Allow monitor mode to claim this frame, after stats are updated. */ | ||||
if (ifp->if_flags & IFF_MONITOR) { | if (ifp->if_flags & IFF_MONITOR) { | ||||
if_printf(ifp, "discard frame at IFF_MONITOR\n"); | if_printf(ifp, "discard frame at IFF_MONITOR\n"); | ||||
m_freem(m); | m_freem(m); | ||||
return; | return; | ||||
} | } | ||||
/* Direct packet to correct FIB based on interface config */ | |||||
M_SETFIB(m, ifp->if_fib); | |||||
/* | /* | ||||
* Dispatch frame to upper layer. | * Dispatch frame to upper layer. | ||||
*/ | */ | ||||
switch (proto) { | switch (proto) { | ||||
#ifdef INET | #ifdef INET | ||||
case ETHERTYPE_IP: | case ETHERTYPE_IP: | ||||
isr = NETISR_IP; | isr = NETISR_IP; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |