bnx2x: Fix failure to configure VF multicast filters
authorNarender Kumar <narender.kumar@qlogic.com>
Thu, 24 Apr 2014 16:29:54 +0000 (19:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Apr 2014 16:15:27 +0000 (12:15 -0400)
Commit 2dc33bbc "bnx2x: Remove the sriov VFOP mechanism" caused a regression,
preventing VFs from configuring multicast filters.

Signed-off-by: Naredner Kumar <narender.kumar@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c

index eefe8f528309ba31ff561ccb7bd061730bb713b0..81cc2d9831c2192edcf414fa90dd4aa5962285aa 100644 (file)
@@ -612,6 +612,7 @@ int bnx2x_vf_mcast(struct bnx2x *bp, struct bnx2x_virtf *vf,
                }
 
                /* add new mcasts */
+               mcast.mcast_list_len = mc_num;
                rc = bnx2x_config_mcast(bp, &mcast, BNX2X_MCAST_CMD_ADD);
                if (rc)
                        BNX2X_ERR("Faled to add multicasts\n");