Patchwork [03/24] petitboot: Increase protocol payload size to 64KiB

login
register
mail settings
Submitter Geoff Levand
Date April 13, 2009, 1:11 a.m.
Message ID <20090413011136.705545745@am.sony.com>
Download mbox | patch
Permalink /patch/25872/
State Accepted
Headers show

Comments

Geoff Levand - April 13, 2009, 1:11 a.m.
Increase the protocol payload size from 8 KiB to 64 KiB.

Udev uses some really long device names for USB mass storage
devices so the config file data can easily excceed the protocol
payload.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 lib/pb-protocol/pb-protocol.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -7,7 +7,7 @@ 
 
 #define PB_SOCKET_PATH "/tmp/petitboot.ui"
 
-#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (8 * 1024)
+#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (64 * 1024)
 
 enum pb_protocol_action {
 	PB_PROTOCOL_ACTION_ADD		= 0x1,