datapath: Allow for any level of nesting in flow attributes
authorThomas Graf <tgraf@noironetworks.com>
Tue, 3 Feb 2015 20:53:36 +0000 (21:53 +0100)
committerThomas Graf <tgraf@noironetworks.com>
Tue, 3 Feb 2015 20:57:02 +0000 (21:57 +0100)
commitec959cdcb9f7e1e534ffafaed85790fec8b279ca
tree80a0dd50e03b065981c7896cd99a684f290055c5
parent4b1632249fc13b3a12cc093a88f19096b0a38486
datapath: Allow for any level of nesting in flow attributes

Upstream commit:
    openvswitch: Allow for any level of nesting in flow attributes

    nlattr_set() is currently hardcoded to two levels of nesting. This change
    introduces struct ovs_len_tbl to define minimal length requirements plus
    next level nesting tables to traverse the key attributes to arbitrary depth.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Upstream: 81bfe3 ("openvswitch: Allow for any level of nesting in flow attributes")
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/flow_netlink.c