1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2019 Intel Corporation. */
7 struct xdp_ring_offset_v1 {
13 struct xdp_mmap_offsets_v1 {
14 struct xdp_ring_offset_v1 rx;
15 struct xdp_ring_offset_v1 tx;
16 struct xdp_ring_offset_v1 fr;
17 struct xdp_ring_offset_v1 cr;
20 static inline struct xdp_sock *xdp_sk(struct sock *sk)
22 return (struct xdp_sock *)sk;