Subject: Re: [netatalk-admins] please help getting netatalk to work!
From: Ignacio REGUERO (Ignacio.Reguero@cern.ch)
Date: Thu Jan 29 1998 - 11:34:38 EST
Hello,
I believe that you have the same problem with Multicast on the
EtherExpress Pro 100B that I had. Here follows a description of the
problem and my solution.
cheers ...Ignacio...
On Mon, 26 Jan 1998, Ignacio REGUERO wrote:
>
> Date: Mon, 26 Jan 1998 10:58:53 +0100 (MET)
> From: Ignacio REGUERO <reguero@mail.cern.ch>
> To: linux-eepro100@cesdis1.gsfc.nasa.gov
> Cc: David.Foster@cern.ch, Mike.Gerard@cern.ch
> Subject: Re: Interface restarts
>
> Hello,
> The timeouts in my case seem to be produced by delays introduced by the
> calculation of the multicast filter so I have done a little modification
> to the eepro100 driver like the following
>
> ---------------------------------------------------------
> set_rx_mode(struct device *dev)
> {
> struct speedo_private *sp = (struct speedo_private *)dev->priv;
> int ioaddr = dev->base_addr;
> char new_rx_mode;
> unsigned long flags;
> int entry, i;
>
> if (dev->flags & IFF_PROMISC) { /* Set
> promiscuous. */
> new_rx_mode = 3;
> } else if (dev->flags & IFF_ALLMULTI) {
> new_rx_mode = 1;
> } else {
> /* new_rx_mode = 0; */
> new_rx_mode = 1; /* Too many to filter perfectly --
> accept all multicasts. */
> }
> ---------------------------------------------------------
>
> This sort of modification was suggested in a related case for Tulip boards
> by Donald Becker (original mail follows).
>
> This is working fine for me but I wonder if there is a cleaner solution
> for this multicast with Netatalk problem...
>
> Best Regards
>
> Ignacio Reguero: ignacio.reguero@cern.ch
> CERN, European Laboratory for Particle Physics,
> IT Division, CH-1211 Geneva 23. Switzerland.
>
> -----------------------------------------------------------------------
> Return-Path: <majordom@cesdis1.gsfc.nasa.gov>
> Received: from www2.w3-design.com (www2.w3-design.com [206.83.161.164])
> by argonaut.w3-design.com (8.8.5/8.8.5) with ESMTP id OAA00419
> for <jeff@argonaut.w3-design.com>; Mon, 3 Nov 1997 14:04:53 -0800
> Received: from cesdis (new.gsfc.nasa.gov [128.183.38.51]) by
> www2.w3-design.com
> (8.7.5/8.6.9) with SMTP id OAA13742 for <jeff@w3-design.com>; Mon, 3 Nov
> 1997 14
> :05:36 -0800 (PST)
> Received: by cesdis (4.1/SMI-4.1)
> id AA08204; Mon, 3 Nov 97 14:32:01 EST
> Received: from beowulf.gsfc.nasa.gov by cesdis (4.1/SMI-4.1)
> id AA08197; Mon, 3 Nov 97 14:31:48 EST
> Received: by beowulf.gsfc.nasa.gov (4.1/SMI-4.1)
> id AA07101; Mon, 3 Nov 97 14:37:32 EST
> Date: Mon, 3 Nov 1997 14:37:30 -0500 (EST)
> From: Donald Becker <becker@cesdis1.gsfc.nasa.gov>
> X-Sender: becker@beowulf
> To: Jeff Wiegley <jeff@w3-design.com>
> Cc: linux-tulip@cesdis1.gsfc.nasa.gov
> Subject: Re: tulip multicast and netatalk?
> In-Reply-To: <345E21DE.D0CC7212@w3-design.com>
> Message-Id: <Pine.SUN.3.91.971103142917.6958H-100000@beowulf>
> Mime-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Sender: owner-linux-tulip@cesdis1.gsfc.nasa.gov
> Precedence: bulk
>
> On Mon, 3 Nov 1997, Jeff Wiegley wrote:
>
> > Subject: tulip multicast and netatalk?
> >
> > Just having a little prroblem with netatalk and the netatalk people
> > indicate that it is a tulip driver problem.
>
> Every single Linux driver that uses a multicast filter (as opposed to
> Rx-all-multicast when any multicast packets are desired) seems to be
> having
> a problem with netatalk.
>
> Since they all use different multicast filter schemes, I'm starting to
> think
> it's a problem with netatalk, not a problem with my drivers.
>
> > I asked the question on the netatalk mailing list about why this is
> > so and received this reply...
> >
> > > The caveat (for the DEC tulip based cards) is that the driver has
> > > difficulties with multicast. Upgrade to a newer kernel, and/or upgrade
> > > the tulip driver explicitly. Or you could force the card into
> promiscuous
> > > mode (not ideal or recommended, but it works). It's not that bad.
>
> Ask them about the EEPro100 driver then... it seems to have problems with
> multicast as well. And it computes the multicast filter internally, so
> the
> driver could only pass a corrupt multicast address list.
>
> > Is this true? how do I fix it? I am using the
> >
> > "tulip.c:v0.83 10/19/97 becker@cesdis.gsfc.nasa.gov"
> >
> > driver version with kernel version 2.0.29+ISS patch.
> >
> > Other than that I can't quite figure out how to get promiscuous mode
> > enabled and I can't figure out why this would be good/bad.
>
> A patch is to always turn on the Rx-all-multicast flag:
>
> In set_multicast_list():
>
> printk(KERN_INFO "%s: Promiscuous mode enabled.\n", dev->name);
> tp->csr6 |= 0xC0;
> - } else if ((dev->mc_count > 1000) || (dev->flags &
> IFF_ALLMULTI)) {
> + } else if ((dev->mc_count > 0) || (dev->flags & IFF_ALLMULTI)) {
> /* Too many to filter perfectly -- accept all multicasts.
> */
> outl(csr6 | 0x0080, ioaddr + CSR6);
>
> This is evil, and wastes the *excellent* multicast filter of the Tulip,
> but..
>
> Donald Becker
> becker@cesdis.gsfc.nasa.gov
> USRA-CESDIS, Center of Excellence in Space Data and Information Sciences.
> Code 930.5, Goddard Space Flight Center, Greenbelt, MD. 20771
> 301-286-0882
> http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html
> -----------------------------------------------------------------------
>
> On Thu, 22 Jan 1998, Ignacio REGUERO wrote:
>
> > Hello,
> > I am running RedHat 5.0 (Linux 2.0.32) which seems to include the latest
> > version of the Intel EtherExpress Pro 100 driver (v0.36) and since I
> > installed the Netatalk Appletalk support package I get restarts of the
> > ethernet interface as follows:
> >
> >
> > Jan 22 17:05:28 pcdisir atalkd[1877]: as_timer gateway 41088.28 down
> > Jan 22 17:10:28 pcdisir atalkd[1877]: as_timer gateway 41088.28 down
> > Jan 22 17:10:34 pcdisir kernel: eth0: Transmit timed out: status 0050
> > command 0000.
> > Jan 22 17:10:34 pcdisir kernel: eth0: Tx timeout fill index 8419
> > scavenge index 8404.
> > Jan 22 17:10:34 pcdisir kernel: Tx queue 0000a000 0000a000 400ca000
> > 0000a000 00000000 0000a000 0000a000 0000a000 0000a000 0000a000 0000a000
> > 0000a000 0000a000 0000a000 0000a000 0000a000.
> > Jan 22 17:10:34 pcdisir kernel: Rx ring 00000003 c0000003 00000003
> > 00000003 00000003 00000003 00000003 00000003 00000003 00000003 00000003
> > 00000003 00000003 00000003 00000003 00000003.
> > Jan 22 17:10:34 pcdisir kernel: eth0: Trying to restart the transmitter...
> >
> >
> > It seems that the Appletalk traffic is creating some problem...
> >
> > Any idea?
> >
> >
> > Thank you & Best Regards
> >
> >
> >
> > Ignacio Reguero: ignacio.reguero@cern.ch
> > CERN, European Laboratory for Particle Physics,
> > IT Division, CH-1211 Geneva 23. Switzerland.
> >
> >
>
>
Ignacio Reguero: ignacio.reguero@cern.ch
CERN, European Laboratory for Particle Physics,
IT Division, CH-1211 Geneva 23. Switzerland.
On Tue, 27 Jan 1998, System Administrator wrote:
> Hi,
>
> I'm trying desperatly to get netatalk to work so a mac workstation can
> access our linux webserver (cygnus.intergrafix.net) files. However, it is
> being very difficult. I have tried both the .rpm and .tar.gz versions of
> netatalk with the same results on bootup. I'll try to give you as much
> detail as possible.
>
> If i let atalkd make my atalkd.conf, on bootup I get:
> starting appletalk daemons:Net (0) not in net-range (65280-65534)
> atalkdbind: Cannot assign requested address
> bind: Cannot assign requested address
>
> And in /var/log/messages:
> papd[648]: restart (1.4b2)
> afpd[650]: main: atp_open: Cannot assign requested address
>
> If I put nothing in the atalkd.conf, on bootup I get:
> starting appletalk daemons: atalkd,
> nbp_rgstr: Connection timed out
> Can't register cygnus:Workstation@*
> nbp_rgstr: Connection timed out
> Can't register cygnus:netatalk@*
> nbprgstr papd afpd
>
> And in /var/log/messages:
> atalkd[660]: restart (1.4b2)
> atalkd[660]: zip_getnetinfo for eth0
> last message repeated 2 times
> atalkd[660]: as_timer multiple interfaces, no seed
> atalkd[660]: as_timer can't configure eth0
> atalkd[660]: as_timer waiting for router
> atalkd[660]: ready 0/0/0
> papd[672]: restart (1.4b2)
> afpd[674]: Can't register cygnus:AFPServer@*
>
> Then my ethernet card (onboard Intel EtherExpress Pro 100) goes nuts with
> eth0: Tx timeout: Transmit timed out
> eth0: Trying to restart the transmitter...
>
> My ethernet is on eth0 and i'm using ip aliasing for virtual domains, so i
> have eth0:1 eth0:2 eth0:3, etc..
>
> 'ifconfig eth0' reports
> eth0 Link encap: 10Mbps Ethernet HWaddr 00:A0:C9:60:50:0A
> inet addr: 206.245.154.68 Bcast:206.245.154.127 Mask:255.255.255.192
> EtherTalk Phase 2 addr:65280/160
> UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
>
> RX packets: etc, etc..
> TX packets: etc, etc..
> Interrupt: etc, etc..
>
> PLEASE help if possible. Thanx.
>
> -Cygnus
> ---------------------------------------------------------------------------
> Anthony J. Biacco Network Administrator/Engineer
> .-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
> "The only way to predict the future, is to invent it."
> .-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
> admin@intergrafix.net cygnus@ncohafmuta.com
> http://cygnus.ncohafmuta.com/
> ---------------------------------------------------------------------------
>
>
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:30:38 EST