ixgbe: minor rework offloading bits fix
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Marchand <david.marchand@6wind.com>
This commit is contained in:
parent
2c90eb650c
commit
1550c20be0
@ -1040,8 +1040,7 @@ ixgbe_rx_scan_hw_ring(struct igb_rx_queue *rxq)
|
||||
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;
|
||||
|
||||
|
||||
@ -1064,11 +1063,10 @@ ixgbe_rx_scan_hw_ring(struct igb_rx_queue *rxq)
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user