From: Michael Chan Date: Fri, 1 Jul 2016 22:46:25 +0000 (-0400) Subject: bnxt_en: Enable MRU enables bit when configuring VNIC MRU. X-Git-Tag: v4.1.12-92~10^2~57 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c260a284c7e723141c1827b6ab55eeef313d5d98;p=users%2Fjedix%2Flinux-maple.git bnxt_en: Enable MRU enables bit when configuring VNIC MRU. Orabug: 24567991 For correctness, the MRU enables bit must be set when passing the MRU to firmware during vnic configuration. Signed-off-by: Michael Chan Signed-off-by: David S. Miller (cherry picked from commit 550feebf5cb075f7576b3cfe9bcf05abc1ffb8cd) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index bbf3cf7d7100a..1cbd35aecd78d 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -3432,7 +3432,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)