Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
struct igb_rx_entry *rxep;
struct rte_mbuf *mb;
uint16_t pkt_len;
- uint32_t s[LOOK_AHEAD];
- int nb_dd;
+ int s[LOOK_AHEAD], nb_dd;
int i, j, nb_rx = 0;
for (j = LOOK_AHEAD-1; j >= 0; --j)
s[j] = rxdp[j].wb.upper.status_error;
+ /* Compute how many status bits were set */
nb_dd = 0;
- /* add to nd_dd when the status bit is set (LSB) */
- for (j = 0; j < LOOK_AHEAD; ++j) {
+ for (j = 0; j < LOOK_AHEAD; ++j)
nb_dd += s[j] & IXGBE_RXDADV_STAT_DD;
- }
nb_rx += nb_dd;