]> git.baikalelectronics.ru Git - kernel.git/commit
datapath: Rename last_action() as nla_is_last() and move to netlink.h
authorSimon Horman <simon.horman@netronome.com>
Mon, 27 Oct 2014 07:12:16 +0000 (16:12 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 21:07:29 +0000 (17:07 -0400)
commitba03d9394ca78ffd00799ebeaa69e35454d51dbb
tree938da838954b36627289390bfd57ac0bcff6f76a
parenta79efa739ca51bd7ee91b1cf14164287255d595f
datapath: Rename last_action() as nla_is_last() and move to netlink.h

The original motivation for this change was to allow the helper to be used
in files other than actions.c as part of work on an odp select group
action.

It was as pointed out by Thomas Graf that this helper would be best off
living in netlink.h. Furthermore, I think that the generic nature of this
helper means it is best off in netlink.h regardless of if it is used more
than one .c file or not. Thus, I would like it considered independent of
the work on an odp select group action.

Cc: Thomas Graf <tgraf@suug.ch>
Cc: Pravin Shelar <pshelar@nicira.com>
Cc: Andy Zhou <azhou@nicira.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
net/openvswitch/actions.c