Re: [dpdk-dev] mbuf->packet_type

2020-11-03 Thread Juhamatti Kuusisaari
Hello Levend, The packet type is indeed filled by hw in case there is a support for it. I think your application may be missing a ptype handling function which checks the supported ptype handling of the hw and registers a callback handling in case the hw does not support it. Please see more detai

[dpdk-dev] [PATCH v6] net/pcap: physical interface MAC address support

2018-09-10 Thread Juhamatti Kuusisaari
At the moment, PCAP interfaces use dummy MAC by default. This change adds support for selecting PCAP physical interface MAC with phy_mac=1 devarg. This allows to setup packet flows using the physical interface MAC. Signed-off-by: Juhamatti Kuusisaari --- v6: * Review changes: * Clarified

[dpdk-dev] [PATCH v5] net/pcap: physical interface MAC address support

2018-09-06 Thread Juhamatti Kuusisaari
Support for PCAP physical interface MAC with phy_mac=1 devarg. Signed-off-by: Juhamatti Kuusisaari --- doc/guides/rel_notes/release_18_11.rst | 4 + drivers/net/pcap/rte_eth_pcap.c| 119 +++-- 2 files changed, 118 insertions(+), 5 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH v4] net/pcap: physical interface MAC address support

2018-09-06 Thread Juhamatti Kuusisaari
Support for PCAP physical interface MAC with phy_mac=1 devarg. Signed-off-by: Juhamatti Kuusisaari --- doc/guides/rel_notes/release_18_11.rst | 4 + drivers/net/pcap/rte_eth_pcap.c| 118 +++-- 2 files changed, 117 insertions(+), 5 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH v3] net/pcap: physical interface MAC address support

2018-09-06 Thread Juhamatti Kuusisaari
Support for PCAP physical interface MAC with phy_mac=1 devarg. Signed-off-by: Juhamatti Kuusisaari --- doc/guides/rel_notes/release_18_11.rst | 4 + drivers/net/pcap/rte_eth_pcap.c| 117 +++-- 2 files changed, 116 insertions(+), 5 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH v2] net/pcap: physical interface MAC address support

2018-09-06 Thread Juhamatti Kuusisaari
Support for PCAP physical interface MAC with phy_mac=1 devarg. Signed-off-by: Juhamatti Kuusisaari --- doc/guides/rel_notes/release_18_11.rst | 4 + drivers/net/pcap/rte_eth_pcap.c| 119 +++-- 2 files changed, 118 insertions(+), 5 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH] net/pcap: physical interface MAC address support

2018-09-04 Thread Juhamatti Kuusisaari
Support for PCAP physical interface MAC with phy_mac=1 devarg. Signed-off-by: Juhamatti Kuusisaari --- drivers/net/pcap/rte_eth_pcap.c | 64 ++--- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap

[dpdk-dev] [PATCH v2 1/2] devtools: improve kernel script execution check

2018-04-19 Thread Juhamatti Kuusisaari
Handle properly a case where DPDK_PATCH_PATH is set to point to a directory. Signed-off-by: Juhamatti Kuusisaari --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 7676a6b..2bb5458 100755

[dpdk-dev] [PATCH v2 2/2] devtools: improve kernel script execution check

2018-04-19 Thread Juhamatti Kuusisaari
Handle properly a case where DPDK_MAINTAINER_PATH is set to point to a directory. Signed-off-by: Juhamatti Kuusisaari --- devtools/get-maintainer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/get-maintainer.sh b/devtools/get-maintainer.sh index 1e9eabd

[dpdk-dev] [PATCH] devtools: improve kernel script execution check

2018-04-18 Thread Juhamatti Kuusisaari
Handle properly a case where DPDK_PATCH_PATH is set to point to a directory. Signed-off-by: Juhamatti Kuusisaari --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 7676a6b..2bb5458 100755

[dpdk-dev] [PATCH v2 1/2] net/pcap: physical interface MAC support

2018-04-17 Thread Juhamatti Kuusisaari
Support for PCAP MAC address using physical interface MAC. Support for getting proper link status, speed and duplex. Signed-off-by: Juhamatti Kuusisaari --- config/common_base | 1 + drivers/net/pcap/rte_eth_pcap.c | 52 - 2 files changed

[dpdk-dev] [PATCH v2 2/2] net/pcap: physical interface MAC support

2018-04-17 Thread Juhamatti Kuusisaari
Support for PCAP MAC address using physical interface MAC. Support for getting proper link status, speed and duplex. Signed-off-by: Juhamatti Kuusisaari --- v2: * Fix whitespace --- drivers/net/pcap/rte_eth_pcap.c | 39 ++- 1 file changed, 26 insertions

[dpdk-dev] [PATCH] net/pcap: physical interface MAC support

2018-04-17 Thread Juhamatti Kuusisaari
Support for PCAP MAC address using physical interface MAC. Support for getting proper link status, speed and duplex. Signed-off-by: Juhamatti Kuusisaari --- config/common_base | 1 + drivers/net/pcap/rte_eth_pcap.c | 52 - 2 files changed

[dpdk-dev] [PATCH] lib: change rte_ring dequeue to guarantee ordering before tail update

2016-07-15 Thread Juhamatti Kuusisaari
Consumer queue dequeuing must be guaranteed to be done fully before the tail is updated. This is not guaranteed with a read barrier, changed to a write barrier just before tail update which in practice guarantees correct order of reads and writes. Signed-off-by: Juhamatti Kuusisaari --- lib

[dpdk-dev] [PATCH] lib: move rte_ring read barrier to correct location

2016-07-11 Thread Juhamatti Kuusisaari
ned-off-by: Juhamatti Kuusisaari --- lib/librte_ring/rte_ring.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index eb45e41..a923e49 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -662