Skip to content
Commit 6f37c9f9 authored by Florent Fourcot's avatar Florent Fourcot Committed by David S. Miller
Browse files

Revert "rtnetlink: return EINVAL when request cannot succeed"

This reverts commit b6177d32



ip-link command is testing kernel capability by sending a RTM_NEWLINK
request, without any argument. It accepts everything in reply, except
EOPNOTSUPP and EINVAL (functions iplink_have_newlink / accept_msg)

So we must keep compatiblity here, invalid empty message should not
return EINVAL

Signed-off-by: default avatarFlorent Fourcot <florent.fourcot@wifirst.fr>
Tested-by: default avatarGuillaume Nault <gnault@redhat.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 59359597
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment