Tested-by: Xiao, Qimai <[email protected]> Regards, Xiao Qimai
> -----Original Message----- > From: dev <[email protected]> On Behalf Of Chenbo Xia > Sent: Wednesday, August 5, 2020 1:42 AM > To: [email protected] > Cc: [email protected]; [email protected]; > [email protected]; > [email protected]; [email protected] > Subject: [dpdk-dev] [PATCH] net/bnxt: fix variable size of port id > > Currenly the variable size of ethdev port id is 8 bits. This patch > standarizes it > to 16 bits. > > Fixes: 769de16872ab ("net/bnxt: fix port default rule create/destroy") > Cc: [email protected] > > Reported-by: Yinan Wang <[email protected]> > Signed-off-by: Chenbo Xia <[email protected]> > --- > drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c > b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c > index 9fb1a028f..ff5aed3d7 100644 > --- a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c > +++ b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c > @@ -397,7 +397,7 @@ void > bnxt_ulp_destroy_df_rules(struct bnxt *bp, bool global) { > struct bnxt_ulp_df_rule_info *info; > - uint8_t port_id; > + uint16_t port_id; > > if (!BNXT_TRUFLOW_EN(bp) || > BNXT_ETH_DEV_IS_REPRESENTOR(bp->eth_dev)) > -- > 2.17.1

