On Tue, Apr 14, 2020 at 9:20 AM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote: > > The 'old_fd' parameter used for atomic replacement of XDP programs is > supposed to be an FD, but was left as a u32 from an earlier iteration of > the patch that added it. It was converted to an int when read, so things > worked correctly even with negative values, but better change the > definition to correctly reflect the intention. > > Fixes: bd5ca3ef93cd ("libbpf: Add function to set link XDP fd while specifying old program") > Reported-by: David Ahern <dsahern@xxxxxxxxx> > Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>