bnxt_en: Fix typo in bnxt_hwrm_set_pause_common().
The typo caused the wrong flow control bit to be set. Reported by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e6ef26991a
commit
49b5c7a125
|
@ -4559,7 +4559,7 @@ bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req)
|
|||
if (bp->link_info.req_flow_ctrl & BNXT_LINK_PAUSE_RX)
|
||||
req->auto_pause |= PORT_PHY_CFG_REQ_AUTO_PAUSE_RX;
|
||||
if (bp->link_info.req_flow_ctrl & BNXT_LINK_PAUSE_TX)
|
||||
req->auto_pause |= PORT_PHY_CFG_REQ_AUTO_PAUSE_RX;
|
||||
req->auto_pause |= PORT_PHY_CFG_REQ_AUTO_PAUSE_TX;
|
||||
req->enables |=
|
||||
cpu_to_le32(PORT_PHY_CFG_REQ_ENABLES_AUTO_PAUSE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue