]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: do not output confusing error message
authorJiri Benc <jbenc@redhat.com>
Thu, 27 Apr 2017 19:24:36 +0000 (21:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:30:13 +0000 (22:30 -0400)
commit5b8c449b57762690554e97d9a7dbcd02fca79e88
treed67b515cb3a68a29cf5132a94f1be454fc6c5264
parent313b0fd0ec8616b7aeb48fee57997fe035799118
vxlan: do not output confusing error message

The message "Cannot bind port X, err=Y" creates only confusion. In metadata
based mode, failure of IPv6 socket creation is okay if IPv6 is disabled and
no error message should be printed. But when IPv6 tunnel was requested, such
failure is fatal. The vxlan_socket_create does not know when the error is
harmless and when it's not.

Instead of passing such information down to vxlan_socket_create, remove the
message completely. It's not useful. We propagate the error code up to the
user space and the port number comes from the user space. There's nothing in
the message that the process creating vxlan interface does not know.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c