summaryrefslogtreecommitdiff
path: root/src/lib/frct.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-05-15 11:40:00 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-05-20 08:17:06 +0200
commitf33769c818cb1f01079405f543b36aa294764112 (patch)
treec986f184c429ef79ed166c848f748084a725a36a /src/lib/frct.c
parentab476259d875e8352a4ef23c2d25b0e67161c771 (diff)
downloadouroboros-f33769c818cb1f01079405f543b36aa294764112.tar.gz
ouroboros-f33769c818cb1f01079405f543b36aa294764112.zip
lib: Use push/pop for ssm_pk_buff ops
Renames the allocation for head/tail to push/pop instead of alloc/release as it's simpler and shorter. Took this approach insted of adopting the kernel's push/pull/put/trim. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/frct.c')
-rw-r--r--src/lib/frct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/frct.c b/src/lib/frct.c
index 4d14362e..c0fdd703 100644
--- a/src/lib/frct.c
+++ b/src/lib/frct.c
@@ -700,7 +700,7 @@ static int __frcti_snd(struct frcti * frcti,
timerwheel_move();
- pci = (struct frct_pci *) ssm_pk_buff_head_alloc(spb, FRCT_PCILEN);
+ pci = (struct frct_pci *) ssm_pk_buff_push(spb, FRCT_PCILEN);
if (pci == NULL)
return -ENOMEM;
@@ -813,7 +813,7 @@ static void __frcti_rcv(struct frcti * frcti,
clock_gettime(PTHREAD_COND_CLOCK, &now);
- pci = (struct frct_pci *) ssm_pk_buff_head_release(spb, FRCT_PCILEN);
+ pci = (struct frct_pci *) ssm_pk_buff_pop(spb, FRCT_PCILEN);
idx = ssm_pk_buff_get_off(spb);
seqno = ntoh32(pci->seqno);