[PATCH] net/tap: fix the overflow of the network interface index.

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Tue Oct 4 16:34:36 CEST 2022


On 7/21/22 18:19, Stephen Hemminger wrote:
> On Thu, 21 Jul 2022 11:13:01 +0000
> Alex Kiselev <alex at bisonrouter.com> wrote:
> 
>> On Linux and most other systems, network interface index is a 32-bit
>> integer.  Indexes overflowing the 16-bit integer are frequently seen
>> when used inside a Docker container.
>>
>> Signed-off-by: Alex Kiselev <alex at bisonrouter.com>
> 
> Looks good, Linux API is inconsistent in use of signed vs unsigned
> int for the ifindex. But negative values are never used/returned.
> 
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>

Fixes: 7c25284e30c2 ("net/tap: add netlink back-end for flow API")
Fixes: 2bc06869cd94 ("net/tap: add remote netdevice traffic capture")
Cc: stable at dpdk.org

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list