cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

igc_xdp.h (470B)


      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_ */