Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/tom/t4_tom.c
Show First 20 Lines • Show All 1,030 Lines • ▼ Show 20 Lines | calc_options2(struct vi_info *vi, struct conn_params *cp) | ||||
if (cp->rx_coalesce == 1) | if (cp->rx_coalesce == 1) | ||||
opt2 |= V_RX_COALESCE(M_RX_COALESCE); | opt2 |= V_RX_COALESCE(M_RX_COALESCE); | ||||
opt2 |= V_RX_FC_DDP(0) | V_RX_FC_DISABLE(0); | opt2 |= V_RX_FC_DDP(0) | V_RX_FC_DISABLE(0); | ||||
#ifdef USE_DDP_RX_FLOW_CONTROL | #ifdef USE_DDP_RX_FLOW_CONTROL | ||||
if (cp->ulp_mode == ULP_MODE_TCPDDP) | if (cp->ulp_mode == ULP_MODE_TCPDDP) | ||||
opt2 |= F_RX_FC_DDP; | opt2 |= F_RX_FC_DDP; | ||||
#endif | #endif | ||||
if (cp->ulp_mode == ULP_MODE_TLS) | |||||
opt2 |= F_RX_FC_DISABLE; | |||||
return (htobe32(opt2)); | return (htobe32(opt2)); | ||||
} | } | ||||
uint64_t | uint64_t | ||||
select_ntuple(struct vi_info *vi, struct l2t_entry *e) | select_ntuple(struct vi_info *vi, struct l2t_entry *e) | ||||
{ | { | ||||
struct adapter *sc = vi->adapter; | struct adapter *sc = vi->adapter; | ||||
▲ Show 20 Lines • Show All 890 Lines • Show Last 20 Lines |