Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_listen.c
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | if (!settings.offload) | ||||
return (0); | return (0); | ||||
/* Don't start a hardware listener for any loopback address. */ | /* Don't start a hardware listener for any loopback address. */ | ||||
if (inp->inp_vflag & INP_IPV6 && IN6_IS_ADDR_LOOPBACK(&inp->in6p_laddr)) | if (inp->inp_vflag & INP_IPV6 && IN6_IS_ADDR_LOOPBACK(&inp->in6p_laddr)) | ||||
return (0); | return (0); | ||||
if (!(inp->inp_vflag & INP_IPV6) && | if (!(inp->inp_vflag & INP_IPV6) && | ||||
IN_LOOPBACK(ntohl(inp->inp_laddr.s_addr))) | IN_LOOPBACK(ntohl(inp->inp_laddr.s_addr))) | ||||
return (0); | return (0); | ||||
if (sc->flags & KERN_TLS_OK) | |||||
return (0); | |||||
#if 0 | #if 0 | ||||
ADAPTER_LOCK(sc); | ADAPTER_LOCK(sc); | ||||
if (IS_BUSY(sc)) { | if (IS_BUSY(sc)) { | ||||
log(LOG_ERR, "%s: listen request ignored, %s is busy", | log(LOG_ERR, "%s: listen request ignored, %s is busy", | ||||
__func__, device_get_nameunit(sc->dev)); | __func__, device_get_nameunit(sc->dev)); | ||||
goto done; | goto done; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 965 Lines • Show Last 20 Lines |