]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-tc-offloads: Use customary types for buffer.
authorBen Pfaff <blp@ovn.org>
Mon, 27 Nov 2017 21:53:28 +0000 (13:53 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Dec 2017 19:19:53 +0000 (11:19 -0800)
commit40f583684f75afe8676dd44a6671acb7a9ab1e34
treea37c783329dc1f08b702b770a006ff14a6c28efa
parent404682c60a531031b5f090fb41c7c6e1fc13d7c7
netdev-tc-offloads: Use customary types for buffer.

This function uses local array set_buff[] to store Netlink attributes.
It declares set_buff as an array of character pointers, which is a strange
type for a buffer of non-character-pointer objects.  In OVS it is
customary to use an ofpbuf with a stub of uint64_t objecs (to ensure
proper alignment, otherwise uint8_t would be more usual).  This commit
changes to that more usual form.

Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-tc-offloads.c