Skip to content

Commit

Permalink
net/igc: remove use of uint type
Browse files Browse the repository at this point in the history
[ upstream commit f17c5d7 ]

Improve portability (especially with musl libc)
by replacing the non-standard type 'uint' with 'size_t'.

Fixes: 746664d ("net/igc: support flow API")

Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
tmonjalo authored and steevenlee committed May 8, 2021
1 parent 6bee873 commit c8f64e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/igc/igc_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ igc_parse_action_rss(struct rte_eth_dev *dev,
* Return the pointer of the flow, or NULL for failed
**/
static inline struct rte_flow *
igc_alloc_flow(const void *filter, enum igc_filter_type type, uint inbytes)
igc_alloc_flow(const void *filter, enum igc_filter_type type, size_t inbytes)
{
/* allocate memory, 8 bytes boundary aligned */
struct rte_flow *flow = rte_malloc("igc flow filter",
Expand Down

0 comments on commit c8f64e2

Please sign in to comment.