diff options
author | Guy Harris <gharris@sonic.net> | 2020-05-19 17:39:39 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-05-19 17:39:39 -0700 |
commit | 69e7eacb0abb8a8c92686eb18d92909591758ca8 (patch) | |
tree | 5dc64761a9d9bad91463f9fd914a5510dc551330 /pcap-dpdk.c | |
parent | cc375cfa6a73647560346fab3b6a49042d397c47 (diff) |
dpdk: make the length argument dpdk_gather_data() unsigned.
It's never a negative value, and one call passes a uint32_t, so it
should be unsigned.
Diffstat (limited to 'pcap-dpdk.c')
-rw-r--r-- | pcap-dpdk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-dpdk.c b/pcap-dpdk.c index 4513ffba..60644407 100644 --- a/pcap-dpdk.c +++ b/pcap-dpdk.c @@ -272,7 +272,7 @@ static inline void calculate_timestamp(struct dpdk_ts_helper *helper,struct time 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 ){ |