]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299594
authorarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Jun 2016 15:01:08 +0000 (15:01 +0000)
committerarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Jun 2016 15:01:08 +0000 (15:01 +0000)
commit00d1f7615a0266dc35a7b49719148d1b157e2997
treeb31d7ebb4de8914d53c95f57c8dbf0dab0645f04
parentb2955d3ab75da224a17c8eb2781507c7f21c9b1f
MFC r299594

sfxge(4): avoid duplicate delivery of packets when changing multicast
mode with multicast chaining enabled

With multicast chaining, if e.g. a specific multicast filter is
inserted and the multicast mis-match filter is then inserted, both may
match a packet and cause it to be delivered.

Copy the behaviour of the Linux driver, which is to remove the old filters
first, on the basis that customers are more likely to be able to handle
drops than duplicates (see bug49178 comment 4).

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@301342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sfxge/common/hunt_filter.c
sys/dev/sfxge/common/hunt_impl.h