1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2020, Intel Corporation. */ 3 4 #ifndef _IGC_XDP_H_ 5 #define _IGC_XDP_H_ 6 7 int igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog, 8 struct netlink_ext_ack *extack); 9 int igc_xdp_setup_pool(struct igc_adapter *adapter, struct xsk_buff_pool *pool, 10 u16 queue_id); 11 12 static inline bool igc_xdp_is_enabled(struct igc_adapter *adapter) 13 { 14 return !!adapter->xdp_prog; 15 } 16 17 #endif /* _IGC_XDP_H_ */ 18