summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/if_bxe.c
diff options
context:
space:
mode:
authordavidch <davidch@FreeBSD.org>2011-05-02 23:34:33 +0000
committerdavidch <davidch@FreeBSD.org>2011-05-02 23:34:33 +0000
commit58042dc3340314c998fbccc9cad1798f9a296ed6 (patch)
treeef5757760bd6ba9649b1d9118509fd7f05ef70fc /sys/dev/bxe/if_bxe.c
parentb95b469170112492191da024bef4a529c09c7779 (diff)
downloadFreeBSD-src-58042dc3340314c998fbccc9cad1798f9a296ed6.zip
FreeBSD-src-58042dc3340314c998fbccc9cad1798f9a296ed6.tar.gz
- Fixed a typo in an if() statement when setting flow control for MTU
greater than 5000 bytes. Submitted by: yongari
Diffstat (limited to 'sys/dev/bxe/if_bxe.c')
-rw-r--r--sys/dev/bxe/if_bxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bxe/if_bxe.c b/sys/dev/bxe/if_bxe.c
index a877ba0..05ed747 100644
--- a/sys/dev/bxe/if_bxe.c
+++ b/sys/dev/bxe/if_bxe.c
@@ -3600,7 +3600,7 @@ bxe_initial_phy_init(struct bxe_softc *sc)
* It is recommended to turn off RX flow control for 5771x
* when using jumbo frames for better performance.
*/
- if (!IS_E1HMF(sc) & (sc->mbuf_alloc_size > 5000))
+ if (!IS_E1HMF(sc) && (sc->mbuf_alloc_size > 5000))
sc->link_params.req_fc_auto_adv = FLOW_CTRL_TX;
else
sc->link_params.req_fc_auto_adv = FLOW_CTRL_BOTH;
OpenPOWER on IntegriCloud