Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2018 20:18:23 +0000 (UTC)
From:      David C Somayajulu <davidcs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r333431 - stable/10/sys/dev/bxe
Message-ID:  <201805092018.w49KINHV060577@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidcs
Date: Wed May  9 20:18:23 2018
New Revision: 333431
URL: https://svnweb.freebsd.org/changeset/base/333431

Log:
  MFC r333004
  Fix Issue with adding MUltiCast Addresses. When multicast addresses are
  added/deleted, the delete the multicast addresses previously programmed
  in HW and reprogram the new set of multicast addresses.
  
  Submitted by:Vaishali.Kulkarni@cavium.com

Modified:
  stable/10/sys/dev/bxe/bxe.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/bxe/bxe.c
==============================================================================
--- stable/10/sys/dev/bxe/bxe.c	Wed May  9 20:12:59 2018	(r333430)
+++ stable/10/sys/dev/bxe/bxe.c	Wed May  9 20:18:23 2018	(r333431)
@@ -27,7 +27,7 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#define BXE_DRIVER_VERSION "1.78.90"
+#define BXE_DRIVER_VERSION "1.78.91"
 
 #include "bxe.h"
 #include "ecore_sp.h"
@@ -12039,11 +12039,10 @@ bxe_init_mcast_macs_list(struct bxe_softc             
         ECORE_LIST_PUSH_TAIL(&mc_mac->link, &p->mcast_list);
 
         BLOGD(sc, DBG_LOAD,
-              "Setting MCAST %02X:%02X:%02X:%02X:%02X:%02X\n",
+              "Setting MCAST %02X:%02X:%02X:%02X:%02X:%02X and mc_count %d\n",
               mc_mac->mac[0], mc_mac->mac[1], mc_mac->mac[2],
-              mc_mac->mac[3], mc_mac->mac[4], mc_mac->mac[5]);
-
-        mc_mac++;
+              mc_mac->mac[3], mc_mac->mac[4], mc_mac->mac[5], mc_count);
+       mc_mac++;
     }
 
     p->mcast_list_len = mc_count;
@@ -12079,6 +12078,7 @@ bxe_set_mc_list(struct bxe_softc *sc)
     rc = ecore_config_mcast(sc, &rparam, ECORE_MCAST_CMD_DEL);
     if (rc < 0) {
         BLOGE(sc, "Failed to clear multicast configuration: %d\n", rc);
+        /* Manual backport parts of FreeBSD upstream r284470. */
         BXE_MCAST_UNLOCK(sc);
         return (rc);
     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805092018.w49KINHV060577>