lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42620?usp=email )
Change subject: octsim: main: reduce msgb_alloc for irqs to 8 bytes ......................................................................
octsim: main: reduce msgb_alloc for irqs to 8 bytes
The message itself is only 3 bytes, but the usb stack might benefit from 8 byte buffers.
Change-Id: I33809d2c1973231627f6da5d9b01e9525f2b38c1 --- M sysmoOCTSIM/main.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/20/42620/1
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c index 7873c86..ea34827 100644 --- a/sysmoOCTSIM/main.c +++ b/sysmoOCTSIM/main.c @@ -330,7 +330,7 @@ { uint8_t statusbytes[2] = {0}; //struct msgb *msg = ccid_msgb_alloc(); - struct msgb *msg = msgb_alloc(300,"IRQ"); + struct msgb *msg = msgb_alloc(8, "IRQ"); struct ccid_rdr_to_pc_notify_slot_change *nsc = (struct ccid_rdr_to_pc_notify_slot_change *)msgb_put(msg, sizeof(*nsc) + sizeof(statusbytes)); nsc->bMessageType = RDR_to_PC_NotifySlotChange;