bnxt_en: Enable MRU enables bit when configuring VNIC MRU.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 1 Jul 2016 22:46:25 +0000 (18:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:52:36 +0000 (14:52 -0400)
For correctness, the MRU enables bit must be set when passing the
MRU to firmware during vnic configuration.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index b489fb6251d613af761a2343f9134585b62ba6e9..28a5aee1f2d9c2c176e1bc55f4b35e83eb330bb8 100644 (file)
@@ -3414,7 +3414,8 @@ static int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id)
        bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_VNIC_CFG, -1, -1);
        /* Only RSS support for now TBD: COS & LB */
        req.enables = cpu_to_le32(VNIC_CFG_REQ_ENABLES_DFLT_RING_GRP |
-                                 VNIC_CFG_REQ_ENABLES_RSS_RULE);
+                                 VNIC_CFG_REQ_ENABLES_RSS_RULE |
+                                 VNIC_CFG_REQ_ENABLES_MRU);
        req.rss_rule = cpu_to_le16(vnic->fw_rss_cos_lb_ctx);
        req.cos_rule = cpu_to_le16(0xffff);
        if (vnic->flags & BNXT_VNIC_RSS_FLAG)