[dpdk-stable] [PATCH v2 1/3] net: fix variable size of ethdev port id
Ed Czeck
ed.czeck at atomicrules.com
Tue Sep 29 20:51:07 CEST 2020
On Fri, Sep 25, 2020 at 1:41 AM Chenbo Xia <chenbo.xia at intel.com> wrote:
>
> The ethdev port id should be 16 bits now. This patch changes the
> variable size of port id in some net drivers from 8 bits to 16
> bits.
>
> Fixes: cf18d4def295 ("net/ark: provide API for hardware modules UDM and DDM")
> Fixes: 09b23f8b9df6 ("net/bnxt: fix port stop process and cleanup resources")
> Fixes: 769de16872ab ("net/bnxt: fix port default rule create/destroy")
> Fixes: 50370662b727 ("net/ice: support device and queue ops")
> Fixes: a50d7cbbdad7 ("net/qede: support registers dump")
> Cc: stable at dpdk.org
>
> Signed-off-by: Chenbo Xia <chenbo.xia at intel.com>
> ---
> drivers/net/ark/ark_udm.h | 2 +-
> drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 2 +-
> drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 6 +++---
> drivers/net/ice/ice_rxtx.h | 4 ++--
> drivers/net/qede/base/bcm_osal.h | 2 +-
> drivers/net/qede/qede_regs.c | 2 +-
> 6 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/net/ark/ark_udm.h b/drivers/net/ark/ark_udm.h
> index 5846c825b..32eb82faa 100644
> --- a/drivers/net/ark/ark_udm.h
> +++ b/drivers/net/ark/ark_udm.h
> @@ -19,7 +19,7 @@
> struct ark_rx_meta {
> uint64_t timestamp;
> uint64_t user_data;
> - uint8_t port;
> + uint16_t port;
> uint8_t dst_queue;
> uint16_t pkt_len;
> };
NACK - this struct correlates with an identical structure in the
hardware module. The C-level cannot be changed without a hardware
update. For the net/ark driver we will be content with 8-bit port
ids.
Ed.
More information about the stable
mailing list