Michael, Many thanks for your patch. I've been testing your first one successfully for a few days now, and the functionality you've added is most welcome.
I made the appropriate changes to the cluster code below the section you changed, but ring clusters have been extremely crashy (with or without your code update), so I haven't had much success with it. I have yet to find a cost-effective load-balancer out there that will do the same hashing as PF_RING's clustering, so I'm very interested in getting it functional. Is anybody else having any luck with the ring clusters? --Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stiller Sent: Monday, January 29, 2007 4:55 AM To: [email protected] Subject: Re: [Ntop-misc] Get PF_RING to work with bonding? On Thu, 2007-01-25 at 14:59 +0100, Michael Stiller wrote: > The following small patch enables PF_RING to work with bonding devices. I made a better looking patch. The first one was done in a hurry. Sorry for that. --- ring_packet.c.orig 2007-01-29 11:45:13.000000000 +0100 +++ ring_packet.c 2007-01-26 10:49:16.000000000 +0100 @@ -780,7 +779,7 @@ if((pfr != NULL) && (pfr->cluster_id == 0 /* No cluster */) && (pfr->ring_slots != NULL) - && (pfr->ring_netdev == skb->dev)) { + && ((pfr->ring_netdev == skb->dev) || ((skb->dev->flags & IFF_SLAVE) && pfr->ring_netdev == skb->dev->master))) { /* We've found the ring where the packet can be stored */ read_lock(&ring_mgmt_lock); add_skb_to_ring(skb, pfr, recv_packet, real_skb); _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
