]> git.baikalelectronics.ru Git - kernel.git/commit
team: Publish team_port_get_rcu()
authorPetr Machata <petrm@mellanox.com>
Tue, 10 Jul 2018 07:02:57 +0000 (10:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:10:19 +0000 (23:10 -0700)
commit67fb4345311025e93787814ea1697d5ae6cec60e
treeb3a8e6eb8e593482d31c1ac0cc45b3d970a1065e
parent2cf84c090e78e5fa4a53a2b49b9b96abdc71d64a
team: Publish team_port_get_rcu()

A follow-up patch adds a new entry point, team_port_dev_txable(). Making
it an ordinary exported function would mean that any module that may
need the service in one of the supported configurations also
unconditionally needs to pull in the team module, whether or not the
user actually intends to create team interfaces.

To prevent that, team_port_dev_txable() is defined in if_team.h, and
therefore all dependencies of that function also need to be
publicly-visible.

Therefore move team_port_get_rcu() from team.c to if_team.h.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
include/linux/if_team.h