xref: /linux/drivers/net/ethernet/intel/libeth/priv.h (revision 26ce8eb0bb7d47c5fb36f7c12f34e4a320f14cac)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (C) 2025 Intel Corporation */
3 
4 #ifndef __LIBETH_PRIV_H
5 #define __LIBETH_PRIV_H
6 
7 #include <linux/types.h>
8 
9 /* XDP */
10 
11 struct skb_shared_info;
12 struct xdp_frame_bulk;
13 
14 struct libeth_xdp_ops {
15 	void	(*bulk)(const struct skb_shared_info *sinfo,
16 			struct xdp_frame_bulk *bq, bool frags);
17 };
18 
19 void libeth_attach_xdp(const struct libeth_xdp_ops *ops);
20 
21 static inline void libeth_detach_xdp(void)
22 {
23 	libeth_attach_xdp(NULL);
24 }
25 
26 #endif /* __LIBETH_PRIV_H */
27