vhost: reserve few more space for future extension
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 30 Apr 2016 05:28:21 +0000 (13:28 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:43:01 +0000 (09:43 +0200)
commit004b8ca8b5282b65233e839d6dc0ea8823026c7f
tree867ab2858036d67568f7568f5905992ea878183d
parentf0fa04e35e5e5df6ddf78b8818a7b34f74fadb61
vhost: reserve few more space for future extension

"virtio_net_device_ops" is the only left open struct that an application
can access, therefore, it's the only place that might introduce potential
ABI break in future for extension.

So, do some reservation for it. 5 should be pretty enough, considering
that we have barely touched it for a long while. Another reason to
choose 5 is for cache alignment: 5 makes the struct 64 bytes for 64 bit
machine.

With this, it's confidence to say that we might be able to be free from
the ABI violation forever.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
lib/librte_vhost/rte_virtio_net.h