Branch: refs/heads/next
Home: https://github.com/Linaro/odp
Commit: 88e124e13900109e0d0aec1981417382f357c98a
https://github.com/Linaro/odp/commit/88e124e13900109e0d0aec1981417382f357c98a
Author: Maxim Uvarov
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M configure
Balasubramanian Manoharan(bala-manoharan) replied on github web page:
platform/linux-generic/include/odp/api/std_types.h
line 6
@@ -29,6 +29,8 @@ extern "C" {
typedef int odp_bool_t;
+typedef uint16_t odp_percent_t;
+
/**
Comment:
Currently, I have followed the syntax existing in api-next.
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/odp_classification.c
line 5
@@ -190,6 +190,8 @@ int odp_cls_capability(odp_cls_capability_t *capability)
capability->supported_terms.bit.tcp_sport = 1;
capability->supported_terms.bit.sip_addr
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
include/odp/api/spec/crypto.h
line 35
@@ -381,8 +394,15 @@ typedef struct odp_crypto_op_param_t {
/** Pointer to ADD */
uint8_t *ptr;
- /** AAD length in bytes. Use odp_crypto_auth_cap
GBalakrishna replied on github web page:
include/odp/api/spec/crypto.h
line 35
@@ -381,8 +394,15 @@ typedef struct odp_crypto_op_param_t {
/** Pointer to ADD */
uint8_t *ptr;
- /** AAD length in bytes. Use odp_crypto_auth_capability() for
-
muvarov replied on github web page:
helper/include/odp/helper/chksum.h
line 21
@@ -44,21 +44,7 @@ typedef enum {
*/
static inline odp_u16sum_t odph_chksum(void *buffer, int len)
{
- uint16_t *buf = (uint16_t *)buffer;
- uint32_t sum = 0;
- uint16_t result;
-
- for (sum
Dmitry Eremin-Solenikov(lumag) replied on github web page:
helper/include/odp/helper/chksum.h
line 21
@@ -44,21 +44,7 @@ typedef enum {
*/
static inline odp_u16sum_t odph_chksum(void *buffer, int len)
{
- uint16_t *buf = (uint16_t *)buffer;
- uint32_t sum = 0;
- uint16_t resu
muvarov replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 5
@@ -1079,7 +1079,7 @@ static int dpdk_input_queues_config(pktio_entry_t
*pktio_entry,
const odp_pktin_queue_param_t *p)
{
odp_pktin_mode_t mode = pktio_entry->s.param.in_mod
From: Dmitry Eremin-Solenikov
Add AES-GMAC-ESP testcase based on draft-mcgrew-gcm-test-01.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base
From: Dmitry Eremin-Solenikov
Add check through auth capabilities, verifying that key length is
supported.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288
From: Dmitry Eremin-Solenikov
Implement AES-GMAC on top of OpenSSL AES-GCM with all text going into
AAD part.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/
From: Dmitry Eremin-Solenikov
Implement AES-GMAC-ESP support.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base sha: d22c949cc466bf28de559855
From: Dmitry Eremin-Solenikov
Add AES-GMAC test vector based on draft-mcgrew-gcm-test-01.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base s
From: Dmitry Eremin-Solenikov
Add AES-GMAC declarations to support RFC4543.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base sha: d22c949cc4
From: Dmitry Eremin-Solenikov
Some paths during odp_ipsec_sa_create() can lead to SA leakage. Fix
them by always releasing SA in error case.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: http
From: Dmitry Eremin-Solenikov
Reusing IV block with GCM results in disastrous consequences. Use
counter instead of random-generated IV to remove possibility for IV
reuse.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linar
This is an example of AES-GMAC(-ESP) implementation. Plaintext is passed as
normal packet, IV/salt are passed according to the rest of API. This
incorporates one commit from #243.
github
/** Email created from pull request 288 (lumag:gmac)
** https://gith
updated
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/include/odp_crypto_internal.h
line 9
@@ -51,7 +51,10 @@ struct odp_crypto_generic_session {
uint8_t key[EVP_MAX_KEY_LENGTH];
uint32_t key_length;
uint32_t bytes
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
test/validation/api/crypto/test_vectors.h
line 33
@@ -361,6 +361,39 @@ static crypto_test_reference_t aes_gcm_reference[] = {
}
};
+static crypto_test_reference_t aes_gmac_reference[] = {
+ {
+ .auth_k
- where to set CONFIG_RTE_LIBRTE_MLX5_PMD ? I believe in DPDK we set it
whilie compiling. How to set it for ODP??
- with mellanox NICs, it is not required to explicitly bind the interface
to dpdk. I can use portID "0,1" with dpdk example. Is it the same way to
specify with ODP-DPDK l2fwd example
https://bugs.linaro.org/show_bug.cgi?id=3411
--- Comment #1 from Maxim Uvarov ---
https://github.com/Linaro/odp/commit/0e04be4851ecc94da8b4cac3c576260c0518c936
refs/heads/master
2017-11-08T22:32:30+03:00
Petri Savolainen petri.savolai...@linaro.org
linux-gen: crypto: fix openssl_lock pointer type
Branch: refs/heads/master
Home: https://github.com/Linaro/odp
Commit: 0e04be4851ecc94da8b4cac3c576260c0518c936
https://github.com/Linaro/odp/commit/0e04be4851ecc94da8b4cac3c576260c0518c936
Author: Petri Savolainen
Date: 2017-11-08 (Wed, 08 Nov 2017)
Changed paths:
M pla
Branch: refs/heads/master
Home: https://github.com/Linaro/odp
Commit: d59c00c5f0255a5f1fc462332eef291bb2993f64
https://github.com/Linaro/odp/commit/d59c00c5f0255a5f1fc462332eef291bb2993f64
Author: Dmitry Eremin-Solenikov
Date: 2017-11-08 (Wed, 08 Nov 2017)
Changed paths:
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/odp_packet.c
line 56
@@ -2252,6 +2252,63 @@ int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr,
layer, ethtype);
}
+int odp_packet_parse(odp_packet_t pkt, uint32_t off
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
include/odp/api/spec/packet.h
line 124
@@ -1140,6 +1179,82 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Packet parse parameters
+ */
+typedef struct odp_packet_parse_param_t {
+ /** Proto
Dmitry Eremin-Solenikov(lumag) replied on github web page:
platform/linux-generic/include/odp_buffer_internal.h
line 4
@@ -104,17 +104,10 @@ struct odp_buffer_hdr_t {
/* User area pointer */
void*uarea_addr;
- /* User area size */
Comment:
This is not planned untill T
nagarahalli replied on github web page:
platform/linux-generic/include/odp_buffer_internal.h
line 4
@@ -104,17 +104,10 @@ struct odp_buffer_hdr_t {
/* User area pointer */
void*uarea_addr;
- /* User area size */
Comment:
It is about 2.0 merge to master, it will happen
Dmitry Eremin-Solenikov(lumag) replied on github web page:
platform/linux-generic/include/odp_buffer_internal.h
line 4
@@ -104,17 +104,10 @@ struct odp_buffer_hdr_t {
/* User area pointer */
void*uarea_addr;
- /* User area size */
Comment:
@nagarahalli Any reason why
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 70
@@ -1372,10 +1382,10 @@ static int dpdk_recv(pktio_entry_t *pktio_entry, int
index,
if (!pkt_dpdk->lockless_rx)
odp_ticketlock_lock(&pkt_dpdk->rx_lock[index]);
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 39
@@ -1135,6 +1135,13 @@ static void dpdk_init_capability(pktio_entry_t
*pktio_entry,
rte_eth_dev_info_get(pkt_dpdk->port_id, dev_info);
capa->max_input_queues = RTE_MIN(dev
Dmitry Eremin-Solenikov(lumag) replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 39
@@ -1135,6 +1135,13 @@ static void dpdk_init_capability(pktio_entry_t
*pktio_entry,
rte_eth_dev_info_get(pkt_dpdk->port_id, dev_info);
capa->max_input_queues = RTE_MIN(dev_info->
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 58
@@ -1249,10 +1253,16 @@ static int dpdk_open(odp_pktio_t id ODP_UNUSED,
pkt_dpdk->vdev_sysc_promisc = 1;
rte_eth_promiscuous_disable(pkt_dpdk->port_id);
- i
On 11/08/17 19:32, gyanesh patra wrote:
> I am not sure what you mean. Can you please elaborate?
>
> As i mentioned before I am able to run dpdk examples. Hence the drivers
> are available and working fine.
> I configured ODP & ODP-DPDK with "LDFLAGS=-libverbs" and compiled to
> work with mellanox
From: Dmitry Eremin-Solenikov
Some paths during odp_ipsec_sa_create() can lead to SA leakage. Fix
them by always releasing SA in error case.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
From: Dmitry Eremin-Solenikov
Split count expiration check into two phases:
- optional precheck, run before crypto, which fails only if hard limit
is already breached
- update, run after crypto in INBOUND case, so that limits will not be
updated for packets failing ICV check.
Signed-off-
From: Dmitry Eremin-Solenikov
Verify that odp_packet_has_error() returns true for IPsec packets with
error status in result.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https
From: Dmitry Eremin-Solenikov
Generated outer header should have frag_offset = 0, MF = 0. Change code
accordingly.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.
security fix for GCM mode: proper IV generation
implementation of 32-bit replay window support
implementation of PIPELINE_CLS support
github
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Pa
From: Dmitry Eremin-Solenikov
Separate function returning destination queue from cos_t instance.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pul
From: Dmitry Eremin-Solenikov
Check that IP packet length from the header is not bogus.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.pat
From: Dmitry Eremin-Solenikov
Add new ipsec_err error flag, which is set by IPsec code if there was an
error during IPsec packet processing. This allow application code to
quickly check packets using odp_packet_has_error() function and use fast
path if there was none.
Signed-off-by: Dmitry Eremi
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Provide function mapping from odp_cos_t to internal cos_t type.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/2
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://github.com/Linaro/odp/pull/243
** Patch: https://github.com/Linaro/odp/pull/243.patch
** Base sha: d22c949cc466bf28de559855a1cb525740578137
From: Dmitry Eremin-Solenikov
Reusing IV block with GCM results in disastrous consequences. Use
counter instead of random-generated IV to remove possibility for IV
reuse.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 243 (lumag:ipsec-packet-impl-3)
** https://g
From: Balasubramanian Manoharan
linux-generic does not support random early detection and back pressure
Signed-off-by: Balasubramanian Manoharan
---
/** Email created from pull request 277 (bala-manoharan:RED)
** https://github.com/Linaro/odp/pull/277
** Patch: https://github.com/Linaro/odp/p
From: Balasubramanian Manoharan
odp_percent_t is used to express values which are percentages
Signed-off-by: Balasubramanian Manoharan
---
/** Email created from pull request 277 (bala-manoharan:RED)
** https://github.com/Linaro/odp/pull/277
** Patch: https://github.com/Linaro/odp/pull/277.pa
From: Balasubramanian Manoharan
Adds random early detection and Back pressure feature to CoS
Signed-off-by: Balasubramanian Manoharan
---
/** Email created from pull request 277 (bala-manoharan:RED)
** https://github.com/Linaro/odp/pull/277
** Patch: https://github.com/Linaro/odp/pull/277.pat
From: Balasubramanian Manoharan
odp_threshold_t is used to configure different threshold types
Signed-off-by: Balasubramanian Manoharan
---
/** Email created from pull request 277 (bala-manoharan:RED)
** https://github.com/Linaro/odp/pull/277
** Patch: https://github.com/Linaro/odp/pull/277.p
adds RED and BP configuration to both pool and queue parameters
github
/** Email created from pull request 277 (bala-manoharan:RED)
** https://github.com/Linaro/odp/pull/277
** Patch: https://github.com/Linaro/odp/pull/277.patch
** Base sha: d22c949cc466b
From: Dmitry Eremin-Solenikov
Add AES-GMAC-ESP testcase based on draft-mcgrew-gcm-test-01.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base
From: Dmitry Eremin-Solenikov
Implement AES-GMAC on top of OpenSSL AES-GCM with all text going into
AAD part.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/
From: Dmitry Eremin-Solenikov
Add check through auth capabilities, verifying that key length is
supported.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288
From: Dmitry Eremin-Solenikov
Some paths during odp_ipsec_sa_create() can lead to SA leakage. Fix
them by always releasing SA in error case.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: http
From: Dmitry Eremin-Solenikov
Add AES-GMAC declarations to support RFC4543.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base sha: d22c949cc4
This is an example of AES-GMAC(-ESP) implementation. Plaintext is passed as
normal packet, IV/salt are passed according to the rest of API. This
incorporates one commit from #243.
github
/** Email created from pull request 288 (lumag:gmac)
** https://gith
From: Dmitry Eremin-Solenikov
Implement AES-GMAC-ESP support.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base sha: d22c949cc466bf28de559855
From: Dmitry Eremin-Solenikov
Add AES-GMAC test vector based on draft-mcgrew-gcm-test-01.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linaro/odp/pull/288
** Patch: https://github.com/Linaro/odp/pull/288.patch
** Base s
DES-CBC (not 3DES-CBC) support is invalid (DES should use 8 bytes key,
not 24 bytes), it is not covered by testsuite and DES is
cracable/deprecated/etc since long ago. Stop providing single-key DES
support. In case one really needs it, it can be emulated through
supplying same key triple times to 3
From: Dmitry Eremin-Solenikov
DES-CBC (not 3DES-CBC) support is invalid (DES should use 8 bytes key,
not 24 bytes), it is not covered by testsuite and DES is
cracable/deprecated/etc since long ago. Stop providing single-key DES
support. In case one really needs it, it can be emulated through
supp
From: Dmitry Eremin-Solenikov
Reusing IV block with GCM results in disastrous consequences. Use
counter instead of random-generated IV to remove possibility for IV
reuse.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 288 (lumag:gmac)
** https://github.com/Linar
nagarahalli replied on github web page:
platform/linux-generic/include/odp_buffer_internal.h
line 4
@@ -104,17 +104,10 @@ struct odp_buffer_hdr_t {
/* User area pointer */
void*uarea_addr;
- /* User area size */
Comment:
This change is done already in 2.0.
> Dmitry E
nagarahalli replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 70
@@ -1372,10 +1382,10 @@ static int dpdk_recv(pktio_entry_t *pktio_entry, int
index,
if (!pkt_dpdk->lockless_rx)
odp_ticketlock_lock(&pkt_dpdk->rx_lock[index]);
/**
-* ixgbe_
Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org
github
/** Email created from pull request 285 (muvarov:devel/next_upversion)
** https://github.com/Linaro/odp/pull/285
** Patch: https://github.com/Linaro/odp/pull/285.patch
** Base sha: b61de566190e19c
From: Maxim Uvarov
Signed-off-by: Maxim Uvarov
---
/** Email created from pull request 285 (muvarov:devel/next_upversion)
** https://github.com/Linaro/odp/pull/285
** Patch: https://github.com/Linaro/odp/pull/285.patch
** Base sha: b61de566190e19cc79531fdca737787cc359584b
** Merge commit sha
I am not sure what you mean. Can you please elaborate?
As i mentioned before I am able to run dpdk examples. Hence the drivers are
available and working fine.
I configured ODP & ODP-DPDK with "LDFLAGS=-libverbs" and compiled to work
with mellanox. I followed the same while compiling dpdk too.
Is
is Mellanox pmd compiled in?
Maxim.
On 11/08/17 17:58, gyanesh patra wrote:
> Hi,
> I am trying to run ODP & ODP-DPDK examples on our server with mellanox 100G
> NICs. I am using the odp_l2fwd example. While running the example, I am
> facing some issues.
> -> When I run "ODP" example using the i
muvarov replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 44
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m->ol_fl
bogdanPricope replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 75
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m-
muvarov replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 44
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m->ol_fl
bogdanPricope replied on github web page:
example/generator/odp_generator.c
line 32
@@ -811,21 +809,14 @@ static int gen_recv_thread(void *arg)
continue;
for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) {
pkt = odp_packet_from_event(events[i
bogdanPricope replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 44
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m-
muvarov replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 44
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m->ol_fl
muvarov replied on github web page:
platform/linux-generic/pktio/dpdk.c
line 75
@@ -337,39 +337,62 @@ static struct rte_mempool_ops ops_stack = {
MEMPOOL_REGISTER_OPS(ops_stack);
-#define HAS_IP4_CSUM_FLAG(m, f) ((m->ol_flags & PKT_RX_IP_CKSUM_MASK) == f)
+#define IP4_CSUM_RESULT(m) (m->ol_fl
muvarov replied on github web page:
example/generator/odp_generator.c
line 32
@@ -811,21 +809,14 @@ static int gen_recv_thread(void *arg)
continue;
for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) {
pkt = odp_packet_from_event(events[i]);
-
muvarov replied on github web page:
include/odp/api/spec/packet.h
line 59
@@ -1140,6 +1179,82 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Packet parse parameters
+ */
+typedef struct odp_packet_parse_param_t {
+ /** Protocol header at parse starting po
muvarov replied on github web page:
include/odp/api/spec/packet.h
@@ -1140,6 +1185,48 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Parse packet
+ *
+ * Parse protocol headers in packet data. Parsing starts at 'offset', which
+ * is the first header byte of pr
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
include/odp/api/spec/packet.h
line 74
@@ -1140,6 +1179,82 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Packet parse parameters
+ */
+typedef struct odp_packet_parse_param_t {
+ /** Protoc
Dmitry Eremin-Solenikov(lumag) replied on github web page:
include/odp/api/spec/packet.h
line 74
@@ -1140,6 +1179,82 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Packet parse parameters
+ */
+typedef struct odp_packet_parse_param_t {
+ /** Protocol head
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
include/odp/api/spec/packet.h
line 83
@@ -1140,6 +1179,82 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t
dst_offset,
*/
/**
+ * Packet parse parameters
+ */
+typedef struct odp_packet_parse_param_t {
+ /** Protoc
Dmitry Eremin-Solenikov(lumag) replied on github web page:
include/odp/api/spec/packet.h
@@ -71,6 +71,51 @@ extern "C" {
* Packet is red
*/
+/**
+ * Protocol
+ */
+typedef enum odp_proto_t {
+ /** No protocol defined */
+ ODP_PROTO_NONE = 0,
+
+ /** Ethernet (including VL
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
include/odp/api/spec/packet.h
@@ -71,6 +71,51 @@ extern "C" {
* Packet is red
*/
+/**
+ * Protocol
+ */
+typedef enum odp_proto_t {
+ /** No protocol defined */
+ ODP_PROTO_NONE = 0,
+
+ /** Ethernet (inclu
Dmitry Eremin-Solenikov(lumag) replied on github web page:
platform/linux-generic/include/odp/api/std_types.h
line 6
@@ -29,6 +29,8 @@ extern "C" {
typedef int odp_bool_t;
+typedef uint16_t odp_percent_t;
+
/**
Comment:
No, `odp_bool_t` exact implementation is not part of the spec, as it i
Balasubramanian Manoharan(bala-manoharan) replied on github web page:
platform/linux-generic/include/odp/api/std_types.h
line 6
@@ -29,6 +29,8 @@ extern "C" {
typedef int odp_bool_t;
+typedef uint16_t odp_percent_t;
+
/**
Comment:
They typedef for odp_bool_t is still under platform/linux-g
Dmitry Eremin-Solenikov(lumag) replied on github web page:
platform/linux-generic/include/odp/api/plat/packet_inlines.h
line 5
@@ -21,6 +21,9 @@
/** @internal Inline function offsets */
extern const _odp_packet_inline_offset_t _odp_packet_inline;
+/** @internal Pool inline function offsets */
Matias Elo(matiaselo) replied on github web page:
platform/linux-generic/include/odp/api/plat/packet_inlines.h
line 5
@@ -21,6 +21,9 @@
/** @internal Inline function offsets */
extern const _odp_packet_inline_offset_t _odp_packet_inline;
+/** @internal Pool inline function offsets */
+extern c
muvarov replied on github web page:
configure.ac
line 14
@@ -36,10 +36,10 @@ AM_SILENT_RULES([yes])
# 3. if interfaces were removed, then use C+1:0:0
##
-ODP_LIBSO_VERSION=115:0:2
+ODP_LIBSO_VERSION=116:0:3
Comment:
@lum
Dmitry Eremin-Solenikov(lumag) replied on github web page:
configure.ac
line 14
@@ -36,10 +36,10 @@ AM_SILENT_RULES([yes])
# 3. if interfaces were removed, then use C+1:0:0
##
-ODP_LIBSO_VERSION=115:0:2
+ODP_LIBSO_VERSION=
muvarov replied on github web page:
configure.ac
line 14
@@ -36,10 +36,10 @@ AM_SILENT_RULES([yes])
# 3. if interfaces were removed, then use C+1:0:0
##
-ODP_LIBSO_VERSION=115:0:2
+ODP_LIBSO_VERSION=116:0:3
Comment:
@lum
Dmitry Eremin-Solenikov(lumag) replied on github web page:
configure.ac
line 14
@@ -36,10 +36,10 @@ AM_SILENT_RULES([yes])
# 3. if interfaces were removed, then use C+1:0:0
##
-ODP_LIBSO_VERSION=115:0:2
+ODP_LIBSO_VERSION=
From: Dmitry Eremin-Solenikov
During mass-move of tests I forgot to update odp_l2fwd example to point
to new locattion. Fix that now.
Signed-off-by: Dmitry Eremin-Solenikov
---
/** Email created from pull request 286 (lumag:l2fwd-fix)
** https://github.com/Linaro/odp/pull/286
** Patch: https:
During mass-move of tests I forgot to update odp_l2fwd example to point
to new locattion. Fix that now.
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsoleni...@linaro.org
github
/** Email created from pull request 286 (lumag:l2fwd-fix)
** https://gith
During mass-move of tests I forgot to update odp_l2fwd example to point
to new locattion. Fix that now.
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsoleni...@linaro.org
github
/** Email created from pull request 286 (lumag:l2fwd-fix)
** https://gith
From: Matias Elo
Not calling packet_parse_layer() when packet input parsing is disabled
removes two unnecessary function calls from fast path.
Signed-off-by: Matias Elo
---
/** Email created from pull request 287 (matiaselo:fix/dpdk_pktio)
** https://github.com/Linaro/odp/pull/287
** Patch: h
1 - 100 of 137 matches
Mail list logo