git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: fix build with GCC 11
[dpdk.git]
/
drivers
/
net
/
nfb
/
nfb_rxmode.c
diff --git
a/drivers/net/nfb/nfb_rxmode.c
b/drivers/net/nfb/nfb_rxmode.c
index
3327c82
..
2d0b613
100644
(file)
--- a/
drivers/net/nfb/nfb_rxmode.c
+++ b/
drivers/net/nfb/nfb_rxmode.c
@@
-54,7
+54,8
@@
nfb_eth_promiscuous_get(struct rte_eth_dev *dev)
struct nc_rxmac_status status;
status.mac_filter = RXMAC_MAC_FILTER_PROMISCUOUS;
struct nc_rxmac_status status;
status.mac_filter = RXMAC_MAC_FILTER_PROMISCUOUS;
- nc_rxmac_read_status(internals->rxmac[0], &status);
+ if (internals->max_rxmac > 0)
+ nc_rxmac_read_status(internals->rxmac[0], &status);
return (status.mac_filter == RXMAC_MAC_FILTER_PROMISCUOUS);
}
return (status.mac_filter == RXMAC_MAC_FILTER_PROMISCUOUS);
}
@@
-102,7
+103,9
@@
nfb_eth_allmulticast_get(struct rte_eth_dev *dev)
struct nc_rxmac_status status;
status.mac_filter = RXMAC_MAC_FILTER_PROMISCUOUS;
struct nc_rxmac_status status;
status.mac_filter = RXMAC_MAC_FILTER_PROMISCUOUS;
- nc_rxmac_read_status(internals->rxmac[0], &status);
+
+ if (internals->max_rxmac > 0)
+ nc_rxmac_read_status(internals->rxmac[0], &status);
return (status.mac_filter == RXMAC_MAC_FILTER_TABLE_BCAST_MCAST);
}
return (status.mac_filter == RXMAC_MAC_FILTER_TABLE_BCAST_MCAST);
}