]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: notify cnic of address of info-to-the-mcp
authorMintz Yuval <yuvalmin@broadcom.com>
Wed, 15 Feb 2012 02:10:29 +0000 (02:10 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:47:45 +0000 (22:47 +0800)
(cherry picked from commit 82fa848c117e57f0b3fd848f2aaf3f6859f42201)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_main.c

index d447456fc89e99d172247fb38cd907033367ad57..6877d3226e4cf928bdeda6a29ae330ac19019e0f 100644 (file)
@@ -7063,6 +7063,11 @@ int bnx2x_alloc_mem(struct bnx2x *bp)
        BNX2X_PCI_ALLOC(bp->slowpath, &bp->slowpath_mapping,
                        sizeof(struct bnx2x_slowpath));
 
+#ifdef BCM_CNIC
+       /* write address to which L5 should insert its values */
+       bp->cnic_eth_dev.addr_drv_info_to_mcp = &bp->slowpath->drv_info_to_mcp;
+#endif
+
        /* Allocated memory for FW statistics  */
        if (bnx2x_alloc_fw_stats_mem(bp))
                goto alloc_mem_err;