Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (c) 2021, Intel Corporation. */
0003 
0004 #ifndef _STMMAC_XDP_H_
0005 #define _STMMAC_XDP_H_
0006 
0007 #define STMMAC_MAX_RX_BUF_SIZE(num) (((num) * PAGE_SIZE) - XDP_PACKET_HEADROOM)
0008 #define STMMAC_RX_DMA_ATTR  (DMA_ATTR_SKIP_CPU_SYNC | DMA_ATTR_WEAK_ORDERING)
0009 
0010 int stmmac_xdp_setup_pool(struct stmmac_priv *priv, struct xsk_buff_pool *pool,
0011               u16 queue);
0012 int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,
0013             struct netlink_ext_ack *extack);
0014 
0015 #endif /* _STMMAC_XDP_H_ */