This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Non multi-cast eth drv is only a warning
- From: Jonathan Larmour <jlarmour at jifvik dot org>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 7 Feb 2003 00:27:00 GMT
- Subject: Non multi-cast eth drv is only a warning
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/eth/current/ChangeLog,v
retrieving revision 1.38
diff -u -5 -p -r1.38 ChangeLog
--- ChangeLog 14 Aug 2002 13:20:13 -0000 1.38
+++ ChangeLog 7 Feb 2003 00:26:59 -0000
@@ -1,5 +1,10 @@
+2003-02-07 Jonathan Larmour <jifl@eCosCentric.com>
+
+ * src/net/eth_drv.c: If driver can't set multi-cast, indicate it's
+ only a warning.
+
2002-08-14 Gary Thomas <gthomas@ecoscentric.com>
* cdl/eth_drivers.cdl: CYGNUM_IO_ETH_DRIVERS_SG_LIST_SIZE
needs to be global (used by all drivers, not just NET).
Index: src/net/eth_drv.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/eth/current/src/net/eth_drv.c,v
retrieving revision 1.25
diff -u -5 -p -r1.25 eth_drv.c
--- src/net/eth_drv.c 13 Aug 2002 15:55:54 -0000 1.25
+++ src/net/eth_drv.c 7 Feb 2003 00:26:59 -0000
@@ -572,11 +572,12 @@ eth_drv_ioctl(struct ifnet *ifp, u_long
}
}
// Note: drivers may behave like IFF_ALLMULTI if the list is
// more than their hardware can handle, e.g. some can only handle 1.
if ((sc->funs->control)(sc, mode, &mc_list, sizeof(mc_list))) {
- diag_printf("Driver can't set multi-cast mode\n");
+ diag_printf( "[%s] Warning: Driver can't set multi-cast mode\n",
+ __FUNCTION__ );
error = EINVAL;
}
break;
}
#endif