Skip to content

Commit

Permalink
bnxt_en: set vnic->mru in bnxt_hwrm_vnic_cfg()
Browse files Browse the repository at this point in the history
Set the newly added vnic->mru field in bnxt_hwrm_vnic_cfg().

Signed-off-by: David Wei <dw@davidwei.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Wei authored and David S. Miller committed Aug 11, 2024
1 parent 6e36086 commit d41575f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/broadcom/bnxt/bnxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -6579,7 +6579,8 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
req->dflt_ring_grp = cpu_to_le16(bp->grp_info[grp_idx].fw_grp_id);
req->lb_rule = cpu_to_le16(0xffff);
vnic_mru:
req->mru = cpu_to_le16(bp->dev->mtu + ETH_HLEN + VLAN_HLEN);
vnic->mru = bp->dev->mtu + ETH_HLEN + VLAN_HLEN;
req->mru = cpu_to_le16(vnic->mru);

req->vnic_id = cpu_to_le16(vnic->fw_vnic_id);
#ifdef CONFIG_BNXT_SRIOV
Expand Down

0 comments on commit d41575f

Please sign in to comment.