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/bnxt: support port representor data path
[dpdk.git]
/
drivers
/
net
/
octeontx2
/
otx2_mac.c
diff --git
a/drivers/net/octeontx2/otx2_mac.c
b/drivers/net/octeontx2/otx2_mac.c
index
b4bcc61
..
49a700c
100644
(file)
--- a/
drivers/net/octeontx2/otx2_mac.c
+++ b/
drivers/net/octeontx2/otx2_mac.c
@@
-15,7
+15,7
@@
otx2_cgx_mac_addr_set(struct rte_eth_dev *eth_dev, struct rte_ether_addr *addr)
struct otx2_mbox *mbox = dev->mbox;
int rc;
struct otx2_mbox *mbox = dev->mbox;
int rc;
- if (otx2_dev_is_vf(dev))
+ if (otx2_dev_is_vf
_or_sdp
(dev))
return -ENOTSUP;
if (otx2_dev_active_vfs(dev))
return -ENOTSUP;
if (otx2_dev_active_vfs(dev))
@@
-38,7
+38,7
@@
otx2_cgx_mac_max_entries_get(struct otx2_eth_dev *dev)
struct otx2_mbox *mbox = dev->mbox;
int rc;
struct otx2_mbox *mbox = dev->mbox;
int rc;
- if (otx2_dev_is_vf(dev))
+ if (otx2_dev_is_vf
_or_sdp
(dev))
return 0;
otx2_mbox_alloc_msg_cgx_mac_max_entries_get(mbox);
return 0;
otx2_mbox_alloc_msg_cgx_mac_max_entries_get(mbox);
@@
-59,7
+59,7
@@
otx2_nix_mac_addr_add(struct rte_eth_dev *eth_dev, struct rte_ether_addr *addr,
struct cgx_mac_addr_add_rsp *rsp;
int rc;
struct cgx_mac_addr_add_rsp *rsp;
int rc;
- if (otx2_dev_is_vf(dev))
+ if (otx2_dev_is_vf
_or_sdp
(dev))
return -ENOTSUP;
if (otx2_dev_active_vfs(dev))
return -ENOTSUP;
if (otx2_dev_active_vfs(dev))
@@
-76,6
+76,8
@@
otx2_nix_mac_addr_add(struct rte_eth_dev *eth_dev, struct rte_ether_addr *addr,
/* Enable promiscuous mode at NIX level */
otx2_nix_promisc_config(eth_dev, 1);
/* Enable promiscuous mode at NIX level */
otx2_nix_promisc_config(eth_dev, 1);
+ dev->dmac_filter_enable = true;
+ eth_dev->data->promiscuous = 0;
done:
return rc;
done:
return rc;
@@
-89,7
+91,7
@@
otx2_nix_mac_addr_del(struct rte_eth_dev *eth_dev, uint32_t index)
struct cgx_mac_addr_del_req *req;
int rc;
struct cgx_mac_addr_del_req *req;
int rc;
- if (otx2_dev_is_vf(dev))
+ if (otx2_dev_is_vf
_or_sdp
(dev))
return;
req = otx2_mbox_alloc_msg_cgx_mac_addr_del(mbox);
return;
req = otx2_mbox_alloc_msg_cgx_mac_addr_del(mbox);