numam-dpdk/drivers/net/bnxt/bnxt_irq.h
Ajit Khaparde 87a8fa1287 net/bnxt: rename a member to avoid conflict
Address build issues with Clang and without glibc on ppc64le.
Vector can be a keyword and should not be used in code.
Renaming it to avoid conflict.

Reported-by: Piotr Kubaj <pkubaj@freebsd.org>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2021-03-12 07:13:49 +01:00

25 lines
538 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2021 Broadcom
* All rights reserved.
*/
#ifndef _BNXT_IRQ_H_
#define _BNXT_IRQ_H_
struct bnxt_irq {
rte_intr_callback_fn handler;
unsigned int vector_idx;
uint8_t requested;
char name[RTE_ETH_NAME_MAX_LEN + 2];
};
struct bnxt;
int bnxt_free_int(struct bnxt *bp);
void bnxt_disable_int(struct bnxt *bp);
void bnxt_enable_int(struct bnxt *bp);
int bnxt_setup_int(struct bnxt *bp);
int bnxt_request_int(struct bnxt *bp);
void bnxt_int_handler(void *param);
#endif