mana.h (1ec5617432abc3efeec36c4e584a700f6c7e46f9) mana.h (0266a177631d4c6b963b5b12dd986a8c5abdbf06)
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright (c) 2021, Microsoft Corporation. */
3
4#ifndef _MANA_H
5#define _MANA_H
6
7#include "gdma.h"
8#include "hw_channel.h"

--- 398 unchanged lines hidden (view full) ---

407u32 mana_run_xdp(struct net_device *ndev, struct mana_rxq *rxq,
408 struct xdp_buff *xdp, void *buf_va, uint pkt_len);
409struct bpf_prog *mana_xdp_get(struct mana_port_context *apc);
410void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog);
411int mana_bpf(struct net_device *ndev, struct netdev_bpf *bpf);
412
413extern const struct ethtool_ops mana_ethtool_ops;
414
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright (c) 2021, Microsoft Corporation. */
3
4#ifndef _MANA_H
5#define _MANA_H
6
7#include "gdma.h"
8#include "hw_channel.h"

--- 398 unchanged lines hidden (view full) ---

407u32 mana_run_xdp(struct net_device *ndev, struct mana_rxq *rxq,
408 struct xdp_buff *xdp, void *buf_va, uint pkt_len);
409struct bpf_prog *mana_xdp_get(struct mana_port_context *apc);
410void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog);
411int mana_bpf(struct net_device *ndev, struct netdev_bpf *bpf);
412
413extern const struct ethtool_ops mana_ethtool_ops;
414
415/* A CQ can be created not associated with any EQ */
416#define GDMA_CQ_NO_EQ 0xffff
417
415struct mana_obj_spec {
416 u32 queue_index;
417 u64 gdma_region;
418 u32 queue_size;
419 u32 attached_eq;
420 u32 modr_ctx_id;
421};
422

--- 226 unchanged lines hidden ---
418struct mana_obj_spec {
419 u32 queue_index;
420 u64 gdma_region;
421 u32 queue_size;
422 u32 attached_eq;
423 u32 modr_ctx_id;
424};
425

--- 226 unchanged lines hidden ---