Hi ,all

Now I am working on VPP and I met a problem. I have a pointer pointing to 
packets receive from my changed DPDK and now I want to change 
vlib_buffer_t->data to my pointer to avoid memory copy, but the errors were 
reported that the vlib_buffer_t->data cannot be used as left value. My code 
looks like:

Uint8_t * pktbuf;
//do assignment to pktbuf
Vlib_buffer_t * b = vlib_get_buffer(vm, tm->rx_buffers[i_rx]);
b->data = pktbuf;

and the error is : error: lvalue required as left operand of assignment
is there is something wrong with my code or vlib_buffer_t is projected from 
assignment?


Best Wishes,
Rujun, Li

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to