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/e1000: remove MTU setting limitation
[dpdk.git]
/
drivers
/
net
/
af_xdp
/
rte_eth_af_xdp.c
diff --git
a/drivers/net/af_xdp/rte_eth_af_xdp.c
b/drivers/net/af_xdp/rte_eth_af_xdp.c
index
703b741
..
3957227
100644
(file)
--- a/
drivers/net/af_xdp/rte_eth_af_xdp.c
+++ b/
drivers/net/af_xdp/rte_eth_af_xdp.c
@@
-19,8
+19,8
@@
#include <bpf/xsk.h>
#include <rte_ethdev.h>
#include <bpf/xsk.h>
#include <rte_ethdev.h>
-#include <
rte_
ethdev_driver.h>
-#include <
rte_
ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
#include <rte_kvargs.h>
#include <rte_bus_vdev.h>
#include <rte_string_fns.h>
#include <rte_kvargs.h>
#include <rte_bus_vdev.h>
#include <rte_string_fns.h>
@@
-1145,7
+1145,8
@@
xsk_configure(struct pmd_internals *internals, struct pkt_rx_queue *rxq,
}
#if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)
}
#if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)
- if (rte_pktmbuf_alloc_bulk(rxq->umem->mb_pool, fq_bufs, reserve_size)) {
+ ret = rte_pktmbuf_alloc_bulk(rxq->umem->mb_pool, fq_bufs, reserve_size);
+ if (ret) {
AF_XDP_LOG(DEBUG, "Failed to get enough buffers for fq.\n");
goto err;
}
AF_XDP_LOG(DEBUG, "Failed to get enough buffers for fq.\n");
goto err;
}