]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix default link prop regression in nl compat
authorRichard Alpe <richard.alpe@ericsson.com>
Wed, 6 May 2015 11:58:54 +0000 (13:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:40:02 +0000 (16:40 -0400)
commitec739c89acd76a8499c3a79a9f8be0aba33340c4
treeff59ce5ff68dea45a2cbc8a78634fbc46296c363
parent38abc96516d937df493799474c57b2f3e76b6580
tipc: fix default link prop regression in nl compat

Default link properties can be set for media or bearer. This
functionality was missed when introducing the NL compatibility layer.

This patch implements this functionality in the compat netlink
layer. It works the same way as it did in the old API. We search for
media and bearers matching the "link name". If we find a matching
media or bearer the link tolerance, priority or window is used as
default for new links on that media or bearer.

Fixes: f4cb6c58ff9d (tipc: convert legacy nl link prop set to nl compat)
Reported-by: Tomi Ollila <tomi.ollila@iki.fi>
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/netlink_compat.c