cnic: Set fp_hsi_ver as part of CLIENT_SETUP ramrod
authorManish Rangankar <mrangankar@marvell.com>
Tue, 5 Nov 2019 05:51:12 +0000 (21:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:25:14 +0000 (18:25 -0800)
The new FW has added extra validation for HSI version to
make FW backward compatible with older VF drivers. Hence
set fp_hsi_ver to Fast Path HSI version of the FW in use.

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c

index 155599dcee76deac2ad51999a3d9c70986f02dea..61ab7d21f6bd6a634889ad6357abff4f8ee3a0d9 100644 (file)
@@ -5208,6 +5208,8 @@ static void cnic_init_rings(struct cnic_dev *dev)
                cnic_init_bnx2x_tx_ring(dev, data);
                cnic_init_bnx2x_rx_ring(dev, data);
 
+               data->general.fp_hsi_ver =  ETH_FP_HSI_VERSION;
+
                l5_data.phy_address.lo = udev->l2_buf_map & 0xffffffff;
                l5_data.phy_address.hi = (u64) udev->l2_buf_map >> 32;