DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/octeontx: fix max Rx packet length corruption
@ 2021-01-26  8:52 skori
  2021-01-28 19:16 ` Harman Kalra
  0 siblings, 1 reply; 3+ messages in thread
From: skori @ 2021-01-26  8:52 UTC (permalink / raw)
  To: Harman Kalra; +Cc: dev, Sunil Kumar Kori, stable

From: Sunil Kumar Kori <skori@marvell.com>

Maximum Rx packet length is getting updated twice which
corrupts actual value.

Fixes: 3151e6a687a3 ("net/octeontx: support MTU")
Cc: stable@dpdk.org

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
---
 drivers/net/octeontx/octeontx_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
index 81779885d..5836dbe09 100644
--- a/drivers/net/octeontx/octeontx_ethdev.c
+++ b/drivers/net/octeontx/octeontx_ethdev.c
@@ -867,7 +867,6 @@ octeontx_dev_info(struct rte_eth_dev *dev,
 
 	dev_info->max_mac_addrs =
 				octeontx_bgx_port_mac_entries_get(nic->port_id);
-	dev_info->max_rx_pktlen = PKI_MAX_PKTLEN;
 	dev_info->max_rx_queues = 1;
 	dev_info->max_tx_queues = PKO_MAX_NUM_DQ;
 	dev_info->min_rx_bufsize = 0;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/octeontx: fix max Rx packet length corruption
  2021-01-26  8:52 [dpdk-dev] [PATCH] net/octeontx: fix max Rx packet length corruption skori
@ 2021-01-28 19:16 ` Harman Kalra
  2021-02-04 11:00   ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Harman Kalra @ 2021-01-28 19:16 UTC (permalink / raw)
  To: skori; +Cc: dev, stable

On Tue, Jan 26, 2021 at 02:22:43PM +0530, skori@marvell.com wrote:
> From: Sunil Kumar Kori <skori@marvell.com>
> 
> Maximum Rx packet length is getting updated twice which
> corrupts actual value.
> 
> Fixes: 3151e6a687a3 ("net/octeontx: support MTU")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Sunil Kumar Kori <skori@marvell.com>

Thanks for fixing.

Acked-by: Harman Kalra <hkalra@marvell.com>

> ---
>  drivers/net/octeontx/octeontx_ethdev.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
> index 81779885d..5836dbe09 100644
> --- a/drivers/net/octeontx/octeontx_ethdev.c
> +++ b/drivers/net/octeontx/octeontx_ethdev.c
> @@ -867,7 +867,6 @@ octeontx_dev_info(struct rte_eth_dev *dev,
>  
>  	dev_info->max_mac_addrs =
>  				octeontx_bgx_port_mac_entries_get(nic->port_id);
> -	dev_info->max_rx_pktlen = PKI_MAX_PKTLEN;
>  	dev_info->max_rx_queues = 1;
>  	dev_info->max_tx_queues = PKO_MAX_NUM_DQ;
>  	dev_info->min_rx_bufsize = 0;
> -- 
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/octeontx: fix max Rx packet length corruption
  2021-01-28 19:16 ` Harman Kalra
@ 2021-02-04 11:00   ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2021-02-04 11:00 UTC (permalink / raw)
  To: Harman Kalra, Ferruh Yigit; +Cc: Sunil Kumar Kori, dpdk-dev, dpdk stable

On Fri, Jan 29, 2021 at 12:46 AM Harman Kalra <hkalra@marvell.com> wrote:
>
> On Tue, Jan 26, 2021 at 02:22:43PM +0530, skori@marvell.com wrote:
> > From: Sunil Kumar Kori <skori@marvell.com>
> >
> > Maximum Rx packet length is getting updated twice which
> > corrupts actual value.
> >
> > Fixes: 3151e6a687a3 ("net/octeontx: support MTU")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
>
> Thanks for fixing.
>
> Acked-by: Harman Kalra <hkalra@marvell.com>

Applied to dpdk-next-net-mrvl/for-main. Thanks



>
> > ---
> >  drivers/net/octeontx/octeontx_ethdev.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
> > index 81779885d..5836dbe09 100644
> > --- a/drivers/net/octeontx/octeontx_ethdev.c
> > +++ b/drivers/net/octeontx/octeontx_ethdev.c
> > @@ -867,7 +867,6 @@ octeontx_dev_info(struct rte_eth_dev *dev,
> >
> >       dev_info->max_mac_addrs =
> >                               octeontx_bgx_port_mac_entries_get(nic->port_id);
> > -     dev_info->max_rx_pktlen = PKI_MAX_PKTLEN;
> >       dev_info->max_rx_queues = 1;
> >       dev_info->max_tx_queues = PKO_MAX_NUM_DQ;
> >       dev_info->min_rx_bufsize = 0;
> > --
> > 2.25.1
> >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-04 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26  8:52 [dpdk-dev] [PATCH] net/octeontx: fix max Rx packet length corruption skori
2021-01-28 19:16 ` Harman Kalra
2021-02-04 11:00   ` Jerin Jacob

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git