[ovs-git] [openvswitch/ovs] 6da061: datapath: Backport "openvswitch: Fix mask generati...

GitHub noreply at github.com
Fri Sep 18 00:12:53 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6da061f4bffef15abf438d4d9dda51773dbcc18f
      https://github.com/openvswitch/ovs/commit/6da061f4bffef15abf438d4d9dda51773dbcc18f
  Author: Jesse Gross <jesse at nicira.com>
  Date:   2015-09-17 (Thu, 17 Sep 2015)

  Changed paths:
    M datapath/flow_netlink.c

  Log Message:
  -----------
  datapath: Backport "openvswitch: Fix mask generation for nested attributes."

Upstream commit:
    openvswitch: Fix mask generation for nested attributes.

    Masks were added to OVS flows in a way that was backwards compatible
    with userspace programs that did not generate masks. As a result, it is
    possible that we may receive flows that do not have a mask and we need
    to synthesize one.

    Generating a mask requires iterating over attributes and descending into
    nested attributes. For each level we need to know the size to generate the
    correct mask. We do this with a linked table of attribute types.

    Although the logic to handle these nested attributes was there in concept,
    there are a number of bugs in practice. Examples include incomplete links
    between tables, variable length attributes being treated as nested and
    missing sanity checks.

    Signed-off-by: Jesse Gross <jesse at nicira.com>
    Acked-by: Pravin B Shelar <pshelar at nicira.com>
    Signed-off-by: David S. Miller <davem at davemloft.net>

Upstream: 982b5270 ("openvswitch: Fix mask generation for nested attributes.")
Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>




More information about the git mailing list