[v2,27/37] net/mvpp2: propagate port-id in udata64

Message ID 20210122191925.24308-28-lironh@marvell.com (mailing list archive)
State Superseded, archived
Delegated to: Jerin Jacob
Headers
Series net/mvpp2: misc updates |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Liron Himi Jan. 22, 2021, 7:19 p.m. UTC
  From: Liron Himi <lironh@marvell.com>

mbuf->port can be override and used for eventdev
so saving the port-id information in another field
that can be queried by application

Signed-off-by: Liron Himi <lironh@marvell.com>
---
 drivers/net/mvpp2/mrvl_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Ferruh Yigit Jan. 26, 2021, 11:48 p.m. UTC | #1
On 1/22/2021 7:19 PM, lironh@marvell.com wrote:
> From: Liron Himi <lironh@marvell.com>
> 
> mbuf->port can be override and used for eventdev
> so saving the port-id information in another field
> that can be queried by application
> 
> Signed-off-by: Liron Himi <lironh@marvell.com>
> ---
>   drivers/net/mvpp2/mrvl_ethdev.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c
> index 79e705497..7b945d2ed 100644
> --- a/drivers/net/mvpp2/mrvl_ethdev.c
> +++ b/drivers/net/mvpp2/mrvl_ethdev.c
> @@ -2702,6 +2702,7 @@ mrvl_rx_pkt_burst(void *rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
>   		mbuf->l2_len = l3_offset;
>   		mbuf->l3_len = l4_offset - l3_offset;
>   
> +		mbuf->udata64 = q->port_id;
>   		if (likely(q->cksum_enabled))
>   			mbuf->ol_flags = mrvl_desc_to_ol_flags(&descs[i]);
>   
> 

'udata64' already removed, so this patch is not valid. And I can see it is 
status is updated as 'Not Applicable' to reflect it but it is still in the mrvl 
tree, I will drop in next-net.
  

Patch

diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c
index 79e705497..7b945d2ed 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -2702,6 +2702,7 @@  mrvl_rx_pkt_burst(void *rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
 		mbuf->l2_len = l3_offset;
 		mbuf->l3_len = l4_offset - l3_offset;
 
+		mbuf->udata64 = q->port_id;
 		if (likely(q->cksum_enabled))
 			mbuf->ol_flags = mrvl_desc_to_ol_flags(&descs[i]);