xref: /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/igc_xdp.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright (c) 2020, Intel Corporation. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _IGC_XDP_H_
562306a36Sopenharmony_ci#define _IGC_XDP_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciint igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog,
862306a36Sopenharmony_ci		     struct netlink_ext_ack *extack);
962306a36Sopenharmony_ciint igc_xdp_setup_pool(struct igc_adapter *adapter, struct xsk_buff_pool *pool,
1062306a36Sopenharmony_ci		       u16 queue_id);
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cistatic inline bool igc_xdp_is_enabled(struct igc_adapter *adapter)
1362306a36Sopenharmony_ci{
1462306a36Sopenharmony_ci	return !!adapter->xdp_prog;
1562306a36Sopenharmony_ci}
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#endif /* _IGC_XDP_H_ */
18

Indexes created Thu Nov 07 10:32:03 CST 2024