mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: Shared header for defining MAX_AF_SOCKS
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
12
AF_XDP-interaction/af_xdp_kern_shared.h
Normal file
12
AF_XDP-interaction/af_xdp_kern_shared.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
|
||||
/* Used by both kernel side BPF-progs and userspace programs,
|
||||
* for sharing common DEFINEs.
|
||||
*/
|
||||
#ifndef __AF_XDP_KERN_SHARED_H
|
||||
#define __AF_XDP_KERN_SHARED_H
|
||||
|
||||
/* Assume netdev has no more than 64 queues */
|
||||
#define MAX_AF_SOCKS 64
|
||||
|
||||
#endif /* __AF_XDP_KERN_SHARED_H */
|
||||
Reference in New Issue
Block a user