[ovs-git] [openvswitch/ovs] b1b401: ofpbuf: Make offset calculation more consistent.

GitHub noreply at github.com
Mon Mar 7 19:05:20 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: b1b401391a910a72b6d683712139084ae1025e1c
      https://github.com/openvswitch/ovs/commit/b1b401391a910a72b6d683712139084ae1025e1c
  Author: Jarno Rajahalme <jarno at ovn.org>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M lib/ofpbuf.c

  Log Message:
  -----------
  ofpbuf: Make offset calculation more consistent.

Use the same method of offset calculation in
ofpbuf_clone_with_headroom() as in ofpbuf_resize__().

Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Joe Stringer <joe at ovn.org>


  Commit: 742c06cc8861aec292e2fafd1d161c7b7929fd81
      https://github.com/openvswitch/ovs/commit/742c06cc8861aec292e2fafd1d161c7b7929fd81
  Author: Jarno Rajahalme <jarno at ovn.org>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M lib/ofpbuf.c

  Log Message:
  -----------
  ofpbuf: Rename 'data_delta' to 'xxx_offset'

Using more accurate and descriptive variable names improves code
readability.

Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Joe Stringer <joe at ovn.org>


  Commit: aacaeb373079bf774770c0f7f183873a6ce9bbb4
      https://github.com/openvswitch/ovs/commit/aacaeb373079bf774770c0f7f183873a6ce9bbb4
  Author: Jarno Rajahalme <jarno at ovn.org>
  Date:   2016-03-07 (Mon, 07 Mar 2016)

  Changed paths:
    M lib/ofpbuf.c

  Log Message:
  -----------
  ofpbuf: Fix setting of 'msg' in ofpbuf_clone_with_headroom()

Commit 38876d31 fixed setting 'msg' when resizing an ofpbuf, but
failed to fix the same issue in ofpbuf_clone_with_headroom().  Without
this fix the newly cloned ofpbuf's 'msg', if non-NULL, will point to
the buffer of the original ofpbuf.

Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Joe Stringer <joe at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/674da62d386c...aacaeb373079


More information about the git mailing list