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>
sizeof(struct bnxt_irq), 0);
if (bp->irq_tbl) {
for (i = 0; i < total_vecs; i++) {
- bp->irq_tbl[i].vector = i;
+ bp->irq_tbl[i].vector_idx = i;
snprintf(bp->irq_tbl[i].name, len,
"%s-%d", bp->eth_dev->device->name, i);
bp->irq_tbl[i].handler = bnxt_int_handler;
struct bnxt_irq {
rte_intr_callback_fn handler;
- unsigned int vector;
+ unsigned int vector_idx;
uint8_t requested;
char name[RTE_ETH_NAME_MAX_LEN + 2];
};