Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ix_txrx.c
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | ixgbe_isc_txd_encap(void *arg, if_pkt_info_t pi) | ||||
} | } | ||||
if (flags) { | if (flags) { | ||||
txr->tx_rsq[txr->tx_rs_pidx] = pidx_last; | txr->tx_rsq[txr->tx_rs_pidx] = pidx_last; | ||||
txr->tx_rs_pidx = (txr->tx_rs_pidx + 1) & (ntxd - 1); | txr->tx_rs_pidx = (txr->tx_rs_pidx + 1) & (ntxd - 1); | ||||
} | } | ||||
txd->read.cmd_type_len |= htole32(IXGBE_TXD_CMD_EOP | flags); | txd->read.cmd_type_len |= htole32(IXGBE_TXD_CMD_EOP | flags); | ||||
txr->bytes += pi->ipi_len; | txr->bytes += pi->ipi_len; // for AIM | ||||
pi->ipi_new_pidx = i; | pi->ipi_new_pidx = i; | ||||
++txr->total_packets; | ++txr->total_packets; | ||||
txr->tx_bytes = txr->bytes; | |||||
txr->packets = txr->total_packets; // for AIM | |||||
return (0); | return (0); | ||||
} /* ixgbe_isc_txd_encap */ | } /* ixgbe_isc_txd_encap */ | ||||
/************************************************************************ | /************************************************************************ | ||||
* ixgbe_isc_txd_flush | * ixgbe_isc_txd_flush | ||||
************************************************************************/ | ************************************************************************/ | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |