lib/netdev-afxdp-pool.c
/* Note:
 * umem_elem_push* shouldn't overflow because we always pop
 * elem first, then push back to the stack.
 */
umem_elem_push* shouldn't overflow because we always pop
elem first, then push back to the stack.
umem_elem_push * shouldn ' t overflow because we always pop elem first then push back to the stack .
static inline void
umem_elem_push_n__(struct umem_pool *umemp, int n, void **addrs)
{
    void *ptr;
    ovs_assert(umemp->index + n <= umemp->size);
    ptr = &umemp->array[umemp->index];
    memcpy(ptr, addrs, n * sizeof(void *));
    umemp->index += n;
}
static inline void umem_elem_push_n__ ( struct umem_pool * umemp , int n , void * * addrs ) { void * ptr ; ovs_assert ( umemp -> index + n <= umemp -> size ) ; ptr = & umemp -> array [ umemp -> index ] ; memcpy ( ptr , addrs , n * sizeof ( void * ) ) ; umemp -> index += n ; }
Note:
 umem_elem_push* shouldn't overflow because we always pop
 elem first, then push back to the stack.
Note : umem_elem_push * shouldn ' t overflow because we always pop elem first then push back to the stack .