]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: permit bond slave as bearer
authorParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Mon, 28 Aug 2017 15:57:02 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:07:33 +0000 (15:07 -0700)
commita5424aac8e30e43a5b6d8e3f8854315ded8d2ab9
tree004c053b1510454aa4629f4bc230c64799dd377b
parentce92e7d2d6f19963728b0fac1c99a9b554165b76
tipc: permit bond slave as bearer

For a bond slave device as a tipc bearer, the dev represents the bond
interface and orig_dev represents the slave in tipc_l2_rcv_msg().
Since we decode the tipc_ptr from bonding device (dev), we fail to
find the bearer and thus tipc links are not established.

In this commit, we register the tipc protocol callback per device and
look for tipc bearer from both the devices.

Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/bearer.h