From: Mintz Yuval Date: Wed, 15 Feb 2012 02:10:29 +0000 (+0000) Subject: bnx2x: notify cnic of address of info-to-the-mcp X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~479 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ea1d1ac59591d13942e10fd1c50e9ea6cf161dfb;p=users%2Fjedix%2Flinux-maple.git bnx2x: notify cnic of address of info-to-the-mcp (cherry picked from commit 82fa848c117e57f0b3fd848f2aaf3f6859f42201) Signed-off-by: Yuval Mintz Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index d447456fc89e9..6877d3226e4cf 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c @@ -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;