]> Pileus Git - ~andy/linux/commit
drbd: Introduce protocol version 100 headers
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 30 Mar 2011 14:00:17 +0000 (16:00 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:45:10 +0000 (16:45 +0100)
commit0c8e36d9b843be56e4e43d4ef3c3eb6a97205599
tree5f593c0b3c4a4052382fa2d23dff87281786e2ad
parente658983af6e62304be785cd6b0ae756723057395
drbd: Introduce protocol version 100 headers

The 8 byte header finally becomes too small. With the protocol 100 header we
have 16 bit for the volume number, proper 32 bit for the data length, and
32 bit for further extensions in the future.

Previous versions of drbd are using version 80 headers for all packets
short enough for protocol 80.  They support both header versions in
worker context, but only version 80 headers in asynchronous context.
For backwards compatibility, continue to use version 80 headers for
short packets before protocol version 100.

From protocol version 100 on, use the same header version for all
packets.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
include/linux/drbd.h
include/linux/drbd_genl.h
include/linux/drbd_limits.h