]> Git Repo - J-linux.git/blob - drivers/net/ethernet/intel/igc/igc_xdp.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / drivers / net / ethernet / intel / igc / igc_xdp.h
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_ */
This page took 0.02693 seconds and 4 git commands to generate.