datapath: Rename last_action() as nla_is_last() and move to netlink.h
authorSimon Horman <simon.horman@netronome.com>
Sat, 8 Nov 2014 21:53:52 +0000 (13:53 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Mon, 10 Nov 2014 04:03:33 +0000 (20:03 -0800)
commit684b5f5dd127f304155c4619cf0874111da9dcdb
treebe3e0ec22756293f2e9938df6a607ec0927eb971
parente9bbe84b6b51eb9671451504b79c7b79b7250c3b
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>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/actions.c
datapath/linux/compat/include/net/netlink.h