Hi ,every one when I was conducting nic offloading exp,I can not make a x520 nic insert vlan ,nor checksum, here is my rx/tx capability: rx offload capability:9f tx offload capability:203f
with code like this: while(1){ nr_mbufs=rte_eth_rx_burst(0,queue_id,mbufs,32); for(idx=0;idx<nr_mbufs;idx++){ #if 0 buffer=rte_pktmbuf_mtod(mbufs[idx],char*); ip4=(struct ipv4_hdr*)(buffer+14); ip4->hdr_checksum=0; mbufs[idx]->l2_len=14; mbufs[idx]->l3_len=20; mbufs[idx]->ol_flags=PKT_TX_IP_CKSUM|PKT_TX_IPV4; #else mbufs[idx]->vlan_tci=0xef00; mbufs[idx]->ol_flags=PKT_TX_VLAN_PKT; #endif rte_eth_tx_burst(0,queue_id,&mbufs[idx],1); } } does anybody know what;s wrong with my code? Thanks & regards Linc