[PATCH 4/18] iseries_veth: Fix broken promiscuous handling
Michael Ellerman <michael <at> ellerman.id.au>
2005-09-01 01:29:02 GMT
Due to a logic bug, once promiscuous mode is enabled in the iseries_veth
driver it is never disabled.
The driver keeps two flags, promiscuous and all_mcast which have exactly the
same effect. This is because we only ever receive packets destined for us,
or multicast packets. So consolidate them into one promiscuous flag for
simplicity.
Signed-off-by: Michael Ellerman <michael <at> ellerman.id.au>
---
drivers/net/iseries_veth.c | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
Index: veth-dev2/drivers/net/iseries_veth.c
===================================================================
--- veth-dev2.orig/drivers/net/iseries_veth.c
+++ veth-dev2/drivers/net/iseries_veth.c
<at> <at> -159,7 +159,6 <at> <at> struct veth_port {
rwlock_t mcast_gate;
int promiscuous;
- int all_mcast;
int num_mcast;
u64 mcast_addr[VETH_MAX_MCAST];
};
<at> <at> -756,17 +755,15 <at> <at> static void veth_set_multicast_list(stru
write_lock_irqsave(&port->mcast_gate, flags);
(Continue reading)