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/sfc: implement device callback to Rx burst of packets
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ethdev.c
diff --git
a/drivers/net/sfc/sfc_ethdev.c
b/drivers/net/sfc/sfc_ethdev.c
index
1aec388
..
7cb12ac
100644
(file)
--- a/
drivers/net/sfc/sfc_ethdev.c
+++ b/
drivers/net/sfc/sfc_ethdev.c
@@
-311,6
+311,7
@@
sfc_eth_dev_init(struct rte_eth_dev *dev)
ether_addr_copy(from, &dev->data->mac_addrs[0]);
dev->dev_ops = &sfc_eth_dev_ops;
+ dev->rx_pkt_burst = &sfc_recv_pkts;
sfc_adapter_unlock(sa);
@@
-348,6
+349,7
@@
sfc_eth_dev_uninit(struct rte_eth_dev *dev)
dev->data->mac_addrs = NULL;
dev->dev_ops = NULL;
+ dev->rx_pkt_burst = NULL;
sfc_kvargs_cleanup(sa);