Re: [PATCH v3] lib/net: add MPLS insert and strip functionality

2023-02-24 Thread Stephen Hemminger
On Fri, 24 Feb 2023 16:25:21 +0500 Tanzeel-inline wrote: > + oh = rte_pktmbuf_mtod(*m, struct rte_ether_hdr *); > + nh = (struct rte_ether_hdr *)(void *) > + rte_pktmbuf_prepend(*m, sizeof(struct rte_mpls_hdr)); Don't need void * cast. Can cast result of prepend (char *) to e

[PATCH v3] lib/net: add MPLS insert and strip functionality

2023-02-24 Thread Tanzeel-inline
From: Tanzeel Ahmed This patch is new version of [PATCH] lib/net: added push MPLS header API. I have also added the MPLS strip functionality to address the question asked in last patch. > You should explain why you add this function. None of the foundational NICs currently supports MPLS insertio

[PATCH v3] lib/net: add MPLS insert and strip functionality

2023-02-24 Thread Tanzeel-inline
From: Tanzeel Ahmed This patch is new version of [PATCH] lib/net: added push MPLS header API. I have also added the MPLS strip functionality to address the question asked in last patch. > You should explain why you add this function. None of the foundational NICs currently supports MPLS insertio