]> 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)
commit7a1ef489be749c5705c246bc75f37a65ead1988c
tree938da838954b36627289390bfd57ac0bcff6f76a
parentba1cd99538a4a1726ecd284dddb94815dd7f27d0
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