From f33769c818cb1f01079405f543b36aa294764112 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 15 May 2026 11:40:00 +0200 Subject: 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 Signed-off-by: Sander Vrijders --- src/lib/frct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/frct.c') 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); -- cgit v1.2.3