util: New macro PAD_SIZE.
authorBen Pfaff <blp@nicira.com>
Tue, 11 Mar 2014 06:50:54 +0000 (23:50 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Mar 2014 19:45:12 +0000 (12:45 -0700)
commitf6e984d7949a1d5e2b82683e2ecf6deb4b144e93
treeff548ca50cf0119abf6a596adb656836371b1604
parent0bdc6b84f2d31f050e1f6d6b8f9f95687f14f877
util: New macro PAD_SIZE.

PAD_SIZE(x,y) is a little shorter and may have a more obvious meaning
than ROUND_UP(x,y) - x.

I intend to add more users in an upcoming comment.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/netlink.c
lib/nx-match.c
lib/ofp-actions.c
lib/ofp-actions.h
lib/util.h