iavf.h (208a21107ef0ae86c92078caf84ce80053e73f7a) iavf.h (2723f3b5d4ff5853503aae368c6b165b57fac651)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2013 - 2018 Intel Corporation. */
3
4#ifndef _IAVF_H_
5#define _IAVF_H_
6
7#include <linux/module.h>
8#include <linux/pci.h>

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

244};
245
246#define IAVF_RESET_WAIT_MS 10
247#define IAVF_RESET_WAIT_DETECTED_COUNT 500
248#define IAVF_RESET_WAIT_COMPLETE_COUNT 2000
249
250/* board specific private data structure */
251struct iavf_adapter {
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2013 - 2018 Intel Corporation. */
3
4#ifndef _IAVF_H_
5#define _IAVF_H_
6
7#include <linux/module.h>
8#include <linux/pci.h>

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

244};
245
246#define IAVF_RESET_WAIT_MS 10
247#define IAVF_RESET_WAIT_DETECTED_COUNT 500
248#define IAVF_RESET_WAIT_COMPLETE_COUNT 2000
249
250/* board specific private data structure */
251struct iavf_adapter {
252 struct workqueue_struct *wq;
253 struct work_struct reset_task;
254 struct work_struct adminq_task;
255 struct delayed_work client_task;
256 wait_queue_head_t down_waitqueue;
257 wait_queue_head_t vc_waitqueue;
258 struct iavf_q_vector *q_vectors;
259 struct list_head vlan_filter_list;
260 struct list_head mac_filter_list;

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

271 u32 tx_timeout_count;
272 u32 tx_desc_count;
273
274 /* RX */
275 struct iavf_ring *rx_rings;
276 u64 hw_csum_rx_error;
277 u32 rx_desc_count;
278 int num_msix_vectors;
252 struct work_struct reset_task;
253 struct work_struct adminq_task;
254 struct delayed_work client_task;
255 wait_queue_head_t down_waitqueue;
256 wait_queue_head_t vc_waitqueue;
257 struct iavf_q_vector *q_vectors;
258 struct list_head vlan_filter_list;
259 struct list_head mac_filter_list;

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

270 u32 tx_timeout_count;
271 u32 tx_desc_count;
272
273 /* RX */
274 struct iavf_ring *rx_rings;
275 u64 hw_csum_rx_error;
276 u32 rx_desc_count;
277 int num_msix_vectors;
279 int num_iwarp_msix;
280 int iwarp_base_vector;
278 int num_rdma_msix;
279 int rdma_base_vector;
281 u32 client_pending;
282 struct iavf_client_instance *cinst;
283 struct msix_entry *msix_entries;
284
285 u32 flags;
286#define IAVF_FLAG_RX_CSUM_ENABLED BIT(0)
287#define IAVF_FLAG_PF_COMMS_FAILED BIT(3)
288#define IAVF_FLAG_RESET_PENDING BIT(4)

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

379 * enum virtchnl_link_speed above should be considered the legacy way of
380 * storing/communicating link speeds.
381 */
382 u32 link_speed_mbps;
383
384 enum virtchnl_ops current_op;
385#define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \
386 (_a)->vf_res->vf_cap_flags & \
280 u32 client_pending;
281 struct iavf_client_instance *cinst;
282 struct msix_entry *msix_entries;
283
284 u32 flags;
285#define IAVF_FLAG_RX_CSUM_ENABLED BIT(0)
286#define IAVF_FLAG_PF_COMMS_FAILED BIT(3)
287#define IAVF_FLAG_RESET_PENDING BIT(4)

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

378 * enum virtchnl_link_speed above should be considered the legacy way of
379 * storing/communicating link speeds.
380 */
381 u32 link_speed_mbps;
382
383 enum virtchnl_ops current_op;
384#define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \
385 (_a)->vf_res->vf_cap_flags & \
387 VIRTCHNL_VF_OFFLOAD_IWARP : \
386 VIRTCHNL_VF_OFFLOAD_RDMA : \
388 0)
389#define CLIENT_ENABLED(_a) ((_a)->cinst)
390/* RSS by the PF should be preferred over RSS via other methods. */
391#define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \
392 VIRTCHNL_VF_OFFLOAD_RSS_PF)
393#define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \
394 VIRTCHNL_VF_OFFLOAD_RSS_AQ)
395#define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \

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

455/* lan device, used by client interface */
456struct iavf_device {
457 struct list_head list;
458 struct iavf_adapter *vf;
459};
460
461/* needed by iavf_ethtool.c */
462extern char iavf_driver_name[];
387 0)
388#define CLIENT_ENABLED(_a) ((_a)->cinst)
389/* RSS by the PF should be preferred over RSS via other methods. */
390#define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \
391 VIRTCHNL_VF_OFFLOAD_RSS_PF)
392#define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \
393 VIRTCHNL_VF_OFFLOAD_RSS_AQ)
394#define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \

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

454/* lan device, used by client interface */
455struct iavf_device {
456 struct list_head list;
457 struct iavf_adapter *vf;
458};
459
460/* needed by iavf_ethtool.c */
461extern char iavf_driver_name[];
462extern struct workqueue_struct *iavf_wq;
463
464static inline const char *iavf_state_str(enum iavf_state_t state)
465{
466 switch (state) {
467 case __IAVF_STARTUP:
468 return "__IAVF_STARTUP";
469 case __IAVF_REMOVE:
470 return "__IAVF_REMOVE";

--- 121 unchanged lines hidden ---
463
464static inline const char *iavf_state_str(enum iavf_state_t state)
465{
466 switch (state) {
467 case __IAVF_STARTUP:
468 return "__IAVF_STARTUP";
469 case __IAVF_REMOVE:
470 return "__IAVF_REMOVE";

--- 121 unchanged lines hidden ---