Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bnxt/bnxt_hwrm.c
Show First 20 Lines • Show All 929 Lines • ▼ Show 20 Lines | bnxt_hwrm_vnic_tpa_cfg(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic, | ||||
req.vnic_id = htole16(vnic->id); | req.vnic_id = htole16(vnic->id); | ||||
req.enables = htole32(HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGG_SEGS | | req.enables = htole32(HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGG_SEGS | | ||||
HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGGS | | HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGGS | | ||||
/* HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGG_TIMER | */ | /* HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MAX_AGG_TIMER | */ | ||||
HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MIN_AGG_LEN); | HWRM_VNIC_TPA_CFG_INPUT_ENABLES_MIN_AGG_LEN); | ||||
/* TODO: Calculate this based on ring size? */ | /* TODO: Calculate this based on ring size? */ | ||||
req.max_agg_segs = htole16(3); | req.max_agg_segs = htole16(3); | ||||
/* Base this in the allocated TPA start size... */ | /* Base this in the allocated TPA start size... */ | ||||
req.max_aggs = htole16(2); | req.max_aggs = htole16(7); | ||||
/* | /* | ||||
* TODO: max_agg_timer? | * TODO: max_agg_timer? | ||||
* req.mag_agg_timer = htole32(XXX); | * req.mag_agg_timer = htole32(XXX); | ||||
*/ | */ | ||||
req.min_agg_len = htole32(0); | req.min_agg_len = htole32(0); | ||||
return hwrm_send_message(softc, &req, sizeof(req)); | return hwrm_send_message(softc, &req, sizeof(req)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 603 Lines • Show Last 20 Lines |