net/bnxt: fix FW version query
[dpdk.git] / drivers / net / ionic / ionic_ethdev.h
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
2  * Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved.
3  */
4
5 #ifndef _IONIC_ETHDEV_H_
6 #define _IONIC_ETHDEV_H_
7
8 #define IONIC_ETH_RSS_OFFLOAD_ALL ( \
9         ETH_RSS_IPV4 | \
10         ETH_RSS_NONFRAG_IPV4_TCP | \
11         ETH_RSS_NONFRAG_IPV4_UDP | \
12         ETH_RSS_IPV6 | \
13         ETH_RSS_NONFRAG_IPV6_TCP | \
14         ETH_RSS_NONFRAG_IPV6_UDP)
15
16 #define IONIC_ETH_DEV_TO_LIF(eth_dev) ((struct ionic_lif *) \
17         (eth_dev)->data->dev_private)
18 #define IONIC_ETH_DEV_TO_ADAPTER(eth_dev) \
19         (IONIC_ETH_DEV_TO_LIF(eth_dev)->adapter)
20
21 #endif /* _IONIC_ETHDEV_H_ */
22