Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/ipsec-secgw: fix width of variables
[ upstream commit 6b9dabfdffee7ff1efa83e9548b4063fab0819c5 ] 'rte_eth_rx_burst' returns uint16_t. The same value need to be passed to 'process_packets' functions which performs further processing. Having this function use 'uint8_t' can result in issues when MAX_PKT_BURST is larger. The route functions (route4_pkts & route6_pkts) take uint8_t as the argument. The caller can pass larger values as the field that is passed is of type uint32_t. And the function can work with uint32_t as it loops through the packets and sends it out. Using uint8_t can result in silent packet drops. Fixes: 4fbfa6c ("examples/ipsec-secgw: update eth header during route lookup") Signed-off-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@huawei.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
- Loading branch information