cxgbe(4): Do not display error messages related to the CLIP table if

it's not in use by TOE or KTLS.

Reviewed by:	jhb@
MFC after:	1 week
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D24046
This commit is contained in:
Navdeep Parhar 2020-03-13 00:12:15 +00:00
parent 797711a84f
commit 7a25fb9963

View File

@ -273,8 +273,12 @@ update_clip_table(struct adapter *sc)
inet_ntop(AF_INET6, &ce->lip, &ip[0],
sizeof(ip));
log(LOG_ERR, "%s: could not add %s (%d)\n",
__func__, ip, rc);
if (sc->flags & KERN_TLS_OK ||
sc->active_ulds != 0) {
log(LOG_ERR,
"%s: could not add %s (%d)\n",
__func__, ip, rc);
}
free(ce, M_CXGBE);
}
next: