f-stack/dpdk/drivers/net/ionic/ionic_ethdev.h

33 lines
908 B
C
Raw Normal View History

2023-09-13 12:21:49 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018-2022 Advanced Micro Devices, Inc.
2021-02-05 08:48:47 +00:00
*/
#ifndef _IONIC_ETHDEV_H_
#define _IONIC_ETHDEV_H_
2022-09-06 04:00:10 +00:00
#include <rte_ethdev.h>
2021-02-05 08:48:47 +00:00
#define IONIC_ETH_RSS_OFFLOAD_ALL ( \
2022-09-06 04:00:10 +00:00
RTE_ETH_RSS_IPV4 | \
RTE_ETH_RSS_NONFRAG_IPV4_TCP | \
RTE_ETH_RSS_NONFRAG_IPV4_UDP | \
RTE_ETH_RSS_IPV6 | \
RTE_ETH_RSS_NONFRAG_IPV6_TCP | \
RTE_ETH_RSS_NONFRAG_IPV6_UDP)
2021-02-05 08:48:47 +00:00
#define IONIC_ETH_DEV_TO_LIF(eth_dev) ((struct ionic_lif *) \
(eth_dev)->data->dev_private)
2023-09-13 12:21:49 +00:00
struct ionic_bars;
struct ionic_dev_intf;
int eth_ionic_dev_probe(void *bus_dev, struct rte_device *rte_dev,
struct ionic_bars *bars, const struct ionic_dev_intf *intf,
uint16_t device_id, uint16_t vendor_id);
int eth_ionic_dev_remove(struct rte_device *rte_dev);
void ionic_dev_interrupt_handler(void *param);
2022-09-06 04:00:10 +00:00
int ionic_dev_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete);
2021-02-05 08:48:47 +00:00
#endif /* _IONIC_ETHDEV_H_ */