svn commit: r366457 - stable/12/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Mon Oct 5 18:47:12 UTC 2020
Author: np
Date: Mon Oct 5 18:47:12 2020
New Revision: 366457
URL: https://svnweb.freebsd.org/changeset/base/366457
Log:
MFC r366244:
cxgbe(4): display an error message when netmap cannot be enabled because
the interface is down.
Sponsored by: Chelsio Communications
Modified:
stable/12/sys/dev/cxgbe/t4_netmap.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_netmap.c Mon Oct 5 18:46:14 2020 (r366456)
+++ stable/12/sys/dev/cxgbe/t4_netmap.c Mon Oct 5 18:47:12 2020 (r366457)
@@ -536,8 +536,11 @@ cxgbe_netmap_on(struct adapter *sc, struct vi_info *vi
MPASS(vi->nnmtxq > 0);
if ((vi->flags & VI_INIT_DONE) == 0 ||
- (ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
+ (ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
+ if_printf(ifp, "cannot enable netmap operation because "
+ "interface is not UP.\n");
return (EAGAIN);
+ }
rxb = &sc->sge.rx_buf_info[0];
for (i = 0; i < SW_ZONE_SIZES; i++, rxb++) {
More information about the svn-src-stable-12
mailing list