Message ID | 20210225182250.1149592-15-thomas@monjalon.net (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Alpine/musl build support | expand |
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
> -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: Friday, February 26, 2021 02:23 > To: dev@dpdk.org > Cc: ncopa@alpinelinux.org; stable@dpdk.org; David Marchand <david.marchand@redhat.com>; Guo, Jia > <jia.guo@intel.com>; Wang, Haiyue <haiyue.wang@intel.com>; Yigit, Ferruh <ferruh.yigit@intel.com>; > Zhang, AlvinX <alvinx.zhang@intel.com> > Subject: [PATCH v5 14/17] net/igc: remove use of uint type > > Improve portability (especially with musl libc) > by replacing the non-standard type 'uint' with 'size_t'. > > Fixes: 746664d546fb ("net/igc: support flow API") > Cc: stable@dpdk.org > > Suggested-by: David Marchand <david.marchand@redhat.com> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net> > --- > drivers/net/igc/igc_flow.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Haiyue Wang <haiyue.wang@intel.com> > 2.30.1
diff --git a/drivers/net/igc/igc_flow.c b/drivers/net/igc/igc_flow.c index 1bb64d323c..66053060af 100644 --- a/drivers/net/igc/igc_flow.c +++ b/drivers/net/igc/igc_flow.c @@ -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",
Improve portability (especially with musl libc) by replacing the non-standard type 'uint' with 'size_t'. Fixes: 746664d546fb ("net/igc: support flow API") Cc: stable@dpdk.org Suggested-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net> --- drivers/net/igc/igc_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)