Linux Audio

Check our new training course

Loading...
 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
 7int igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog,
 8		     struct netlink_ext_ack *extack);
 9int igc_xdp_setup_pool(struct igc_adapter *adapter, struct xsk_buff_pool *pool,
10		       u16 queue_id);
11
12static inline bool igc_xdp_is_enabled(struct igc_adapter *adapter)
13{
14	return !!adapter->xdp_prog;
15}
16
17#endif /* _IGC_XDP_H_ */