[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100812115430.2b5d8683@starbug.prg01.itonis.net>
Date: Thu, 12 Aug 2010 11:54:30 +0200
From: Jindrich Makovicka <makovick@...il.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] forcedeth: reconfigure multicast packet filter only when
needed
Currently, the forcedeth driver reconfigures the packet filter every
time a multicast stream is (un-)subscribed. As the receiving has to be
stopped and started in this case, any multicast subscription can cause
packet loss, allowing userspace applications to disrupt incoming
traffic.
With the following patch, nv_set_multicast first checks the cached
state of the packet filter, and skips the reconfiguration if the state
does not change. With the default settings, this can reduce some
useless reconfiguration attempts. When switched to promiscuous mode,
all reconfigurations are skipped with the patch, which can be used to
mitigate packet loss problems when receiving and re-subscribing many
multicasts simultaneously on a single machine.
Signed-off-by: Jindrich Makovicka <makovick@...il.com>
--
Jindrich Makovicka
View attachment "forcedeth.c.diff" of type "text/x-patch" (2213 bytes)
Powered by blists - more mailing lists