It's never a negative value, and one call passes a uint32_t, so it
should be unsigned.
timeradd(&(helper->start_time), &cur_time, ts);
}
timeradd(&(helper->start_time), &cur_time, ts);
}
-static uint32_t dpdk_gather_data(unsigned char *data, int len, struct rte_mbuf *mbuf)
+static uint32_t dpdk_gather_data(unsigned char *data, uint32_t len, struct rte_mbuf *mbuf)
{
uint32_t total_len = 0;
while (mbuf && (total_len+mbuf->data_len) < len ){
{
uint32_t total_len = 0;
while (mbuf && (total_len+mbuf->data_len) < len ){