From: Intel Date: Wed, 19 Dec 2012 23:00:00 +0000 (+0100) Subject: examples/l3fwd-vf: update X-Git-Tag: spdx-start~11307 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0cbac1a0a8f8f735c7c9aaa2552d4536f496d1a9;p=dpdk.git examples/l3fwd-vf: update Signed-off-by: Intel --- diff --git a/examples/l3fwd-vf/main.c b/examples/l3fwd-vf/main.c index e3a999ae88..be5962dd12 100644 --- a/examples/l3fwd-vf/main.c +++ b/examples/l3fwd-vf/main.c @@ -193,7 +193,7 @@ static struct rte_eth_conf port_conf = { .rx_adv_conf = { .rss_conf = { .rss_key = NULL, - .rss_hf = ETH_RSS_IPV4, + .rss_hf = ETH_RSS_IPV4 | ETH_RSS_IPV6, }, }, .txmode = { @@ -479,9 +479,9 @@ l3fwd_simple_forward(struct rte_mbuf *m, uint8_t portid, lookup_struct_t * l3fwd if (dst_port >= MAX_PORTS || (enabled_port_mask & 1 << dst_port) == 0) dst_port = portid; - /* 00:09:c0:00:00:xx */ + /* 02:00:00:00:00:xx */ tmp = ð_hdr->d_addr.addr_bytes[0]; - *((uint64_t *)tmp) = 0x000000c00900 + (dst_port << 24); + *((uint64_t *)tmp) = 0x000000000002 + ((uint64_t)dst_port << 40); #ifdef DO_RFC_1812_CHECKS /* Update time to live and header checksum */