mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
6d198a89c0
Add a new test for testing shared umem feature. This is accomplished by adding a new XDP program and using the multiple sockets. The new XDP program redirects the packets based on the destination MAC address. Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20230927135241.2287547-9-tushar.vyavahare@intel.com
13 lines
212 B
C
13 lines
212 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef XSK_XDP_COMMON_H_
|
|
#define XSK_XDP_COMMON_H_
|
|
|
|
#define MAX_SOCKETS 2
|
|
|
|
struct xdp_info {
|
|
__u64 count;
|
|
} __attribute__((aligned(32)));
|
|
|
|
#endif /* XSK_XDP_COMMON_H_ */
|