Commit e05c4ad3ed874ee4f5e2c969e55d318ec654332c

Authored by Yan, Zheng
Committed by David S. Miller
1 parent 814fd609fa

mcast: Fix source address selection for multicast listener report

Should check use count of include mode filter instead of total number
of include mode filters.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -767,7 +767,7 @@
767 767 break;
768 768 for (i=0; i<nsrcs; i++) {
769 769 /* skip inactive filters */
770   - if (pmc->sfcount[MCAST_INCLUDE] ||
  770 + if (psf->sf_count[MCAST_INCLUDE] ||
771 771 pmc->sfcount[MCAST_EXCLUDE] !=
772 772 psf->sf_count[MCAST_EXCLUDE])
773 773 continue;
... ... @@ -1059,7 +1059,7 @@
1059 1059 break;
1060 1060 for (i=0; i<nsrcs; i++) {
1061 1061 /* skip inactive filters */
1062   - if (pmc->mca_sfcount[MCAST_INCLUDE] ||
  1062 + if (psf->sf_count[MCAST_INCLUDE] ||
1063 1063 pmc->mca_sfcount[MCAST_EXCLUDE] !=
1064 1064 psf->sf_count[MCAST_EXCLUDE])
1065 1065 continue;