numam-dpdk/drivers
David Marchand 646d3f20aa net/bonding: fix packet count type for LACP
Caught by code review, those variables are supposed to be on 16bits to
avoid endless loops in the (unlikely?) case where the application asks
for receiving more than 256 packets and the accumulated num_rx_total
count reaches 256:

uint16_t num_rx_total = 0;
uint8_t j, k;

j = num_rx_total;
num_rx_total += rte_eth_rx_burst();

for (k = j; k < 2 && k < num_rx_total; k++)
	rte_prefetch0(rte_pktmbuf_mtod(bufs[k], void *));

while (j < num_rx_total) {
	j++;
}

Fixes: 46fb436836 ("bond: add mode 4")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-03-21 21:09:16 +01:00
..
baseband bb/turbo_sw: update for FlexRAN 18.09 2018-12-19 11:19:10 +01:00
bus build/freebsd: rename macro BSDPAPP to FREEBSD 2019-03-12 23:01:14 +01:00
common common/cpt: fix null auth only 2019-03-06 17:28:35 +01:00
compress build: improve dependency handling 2019-02-27 12:13:54 +01:00
crypto build/linux: rename macro from LINUXAPP to LINUX 2019-03-12 17:31:22 +01:00
event event/opdl: replace sprintf with snprintf 2019-03-15 06:46:50 +01:00
mempool eal/linux: rename linuxapp to linux 2019-03-12 17:31:13 +01:00
net net/bonding: fix packet count type for LACP 2019-03-21 21:09:16 +01:00
raw eal/linux: rename linuxapp to linux 2019-03-12 17:31:13 +01:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: improve dependency handling 2019-02-27 12:13:54 +01:00