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
examples/ipv4_multicast: update
[dpdk.git]
/
examples
/
dpdk_qat
/
main.c
diff --git
a/examples/dpdk_qat/main.c
b/examples/dpdk_qat/main.c
index
2a4a0ec
..
62507fd
100644
(file)
--- a/
examples/dpdk_qat/main.c
+++ b/
examples/dpdk_qat/main.c
@@
-30,7
+30,6
@@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * version: DPDK.L.1.2.3-3
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-170,10
+169,11
@@
static struct rte_eth_conf port_conf = {
.rx_adv_conf = {
.rss_conf = {
.rss_key = NULL,
.rx_adv_conf = {
.rss_conf = {
.rss_key = NULL,
- .rss_hf = ETH_RSS_IPV4,
+ .rss_hf = ETH_RSS_IPV4
| ETH_RSS_IPV6
,
},
},
.txmode = {
},
},
.txmode = {
+ .mq_mode = ETH_DCB_NONE,
},
};
},
};
@@
-319,6
+319,7
@@
nic_tx_send_packet(struct rte_mbuf *pkt, uint8_t port)
static inline uint8_t
get_output_port(uint8_t input_port)
{
static inline uint8_t
get_output_port(uint8_t input_port)
{
+ RTE_BUILD_BUG_ON((RTE_MAX_ETHPORTS & 1) != 0);
return (uint8_t)(input_port ^ 1);
}
return (uint8_t)(input_port ^ 1);
}
@@
-493,10
+494,10
@@
static void
print_usage(const char *prgname)
{
printf ("%s [EAL options] -- -p PORTMASK [--no-promisc]"
print_usage(const char *prgname)
{
printf ("%s [EAL options] -- -p PORTMASK [--no-promisc]"
- " [--config
(port,queue,lcore)[,(port,queue,lcore]]
\n"
+ " [--config
'(port,queue,lcore)[,(port,queue,lcore)]'
\n"
" -p PORTMASK: hexadecimal bitmask of ports to configure\n"
" --no-promisc: disable promiscuous mode (default is ON)\n"
" -p PORTMASK: hexadecimal bitmask of ports to configure\n"
" --no-promisc: disable promiscuous mode (default is ON)\n"
- " --config
(port,queue,lcore)
: rx queues configuration\n",
+ " --config
'(port,queue,lcore)'
: rx queues configuration\n",
prgname);
}
prgname);
}
@@
-796,7
+797,7
@@
MAIN(int argc, char **argv)
fflush(stdout);
ret = rte_eth_rx_queue_setup(portid, queueid, nb_rxd,
fflush(stdout);
ret = rte_eth_rx_queue_setup(portid, queueid, nb_rxd,
- socketid, &rx_conf, pktmbuf_pool[socketid]);
+ socketid, &rx_conf, pktmbuf_pool[socketid]);
if (ret < 0)
rte_panic("rte_eth_rx_queue_setup: err=%d,"
"port=%d\n", ret, portid);
if (ret < 0)
rte_panic("rte_eth_rx_queue_setup: err=%d,"
"port=%d\n", ret, portid);