aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid C Somayajulu <davidcs@FreeBSD.org>2018-05-09 20:49:50 +0000
committerDavid C Somayajulu <davidcs@FreeBSD.org>2018-05-09 20:49:50 +0000
commitcf0b39f6047fcd4cb2f357a91253fb771a1b7df7 (patch)
tree8986923b612d479e602496c000e5000b885ca6af
parentf844b0f31fd8038b492db2647f9a67b3fcdf8b10 (diff)
downloadsrc-cf0b39f6047fcd4cb2f357a91253fb771a1b7df7.tar.gz
src-cf0b39f6047fcd4cb2f357a91253fb771a1b7df7.zip
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
Notes
Notes: svn path=/stable/8/; revision=333437
-rw-r--r--sys/dev/bxe/bxe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c
index ac86d2be449e..50529c4bcec9 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@@ -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"
@@ -12003,11 +12003,10 @@ bxe_init_mcast_macs_list(struct bxe_softc *sc,
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;
@@ -12043,6 +12042,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);
}