Searched refs:mfs (Results 1 – 7 of 7) sorted by relevance
374 sp->sp_bb_data = htons((u16) lport->mfs); in fc_lport_flogi_fill()383 cp->cp_rdfs = htons((u16) lport->mfs); in fc_lport_flogi_fill()669 int fc_set_mfs(struct fc_lport *lport, u32 mfs) in fc_set_mfs() argument676 old_mfs = lport->mfs; in fc_set_mfs()678 if (mfs >= FC_MIN_MAX_FRAME) { in fc_set_mfs()679 mfs &= ~3; in fc_set_mfs()680 if (mfs > FC_MAX_FRAME) in fc_set_mfs()681 mfs = FC_MAX_FRAME; in fc_set_mfs()682 mfs -= sizeof(struct fc_frame_header); in fc_set_mfs()683 lport->mfs = mfs; in fc_set_mfs()[all …]
206 unsigned int mfs; in fc_plogi_get_maxframe() local212 mfs = ntohs(flp->fl_csp.sp_bb_data) & FC_SP_BB_DATA_MASK; in fc_plogi_get_maxframe()213 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()214 maxval = mfs; in fc_plogi_get_maxframe()215 mfs = ntohs(flp->fl_cssp[3 - 1].cp_rdfs); in fc_plogi_get_maxframe()216 if (mfs >= FC_SP_MIN_MAX_PAYLOAD && mfs < maxval) in fc_plogi_get_maxframe()217 maxval = mfs; in fc_plogi_get_maxframe()646 rdata->maxframe_size = fc_plogi_get_maxframe(flogi, lport->mfs); in fc_rport_login_complete()917 rdata->maxframe_size = fc_plogi_get_maxframe(plp, lport->mfs); in fc_rport_plogi_resp()1653 rdata->maxframe_size = fc_plogi_get_maxframe(pl, lport->mfs); in fc_rport_recv_plogi_req()
673 u32 mfs; in fcoe_netdev_config() local689 mfs = netdev->mtu; in fcoe_netdev_config()691 mfs = FCOE_MTU; in fcoe_netdev_config()692 FCOE_NETDEV_DBG(netdev, "Supports FCOE_MTU of %d bytes\n", mfs); in fcoe_netdev_config()694 mfs -= (sizeof(struct fcoe_hdr) + sizeof(struct fcoe_crc_eof)); in fcoe_netdev_config()695 if (fc_set_mfs(lport, mfs)) in fcoe_netdev_config()1987 u32 mfs; in fcoe_device_notification() local2013 mfs = netdev->mtu - (sizeof(struct fcoe_hdr) + in fcoe_device_notification()2015 if (mfs >= FC_MIN_MAX_FRAME) in fcoe_device_notification()2016 fc_set_mfs(lport, mfs); in fcoe_device_notification()
336 return fip->lp->mfs + sizeof(struct fc_frame_header) + in fcoe_ctlr_fcoe_size()
288 __be16 mfs; in csio_ln_fdmi_rhba_cbfn() local353 mfs = ln->ln_sparm.csp.sp_bb_data; in csio_ln_fdmi_rhba_cbfn()355 (uint8_t *)&mfs, FC_FDMI_PORT_ATTR_MAXFRAMESIZE_LEN); in csio_ln_fdmi_rhba_cbfn()
743 fc_host_maxframe_size(lp->host) = lp->mfs; in fnic_probe()
265 ofld_req3.rx_max_fc_pay_len = lport->mfs; in bnx2fc_send_session_ofld_req()