Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 314 @@ -742,6 +809,23 @@ 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

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 125 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 322 @@ -742,6 +809,23 @@ 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

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -426,6 +430,96 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, uint8_t *l3_proto_v4, + uint

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 33 @@ -116,6 +126,10 @@ static args_t *args; /** Barrier to sync threads execution */ static odp_barrier_t barrier; +/** Packet processing function types */ +typedef odp_packet_t (*setup_pkt_ref_t)(odp_pool_t, odp

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 88 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PROTOS(m) (

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PRO

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PROTOS(m) (

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: example/generator/odp_generator.c line 322 @@ -742,6 +809,23 @@ static int gen_recv_thread(void *arg) continue; for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) { pkt = odp_packet_from_event(

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: example/generator/odp_generator.c line 314 @@ -742,6 +809,23 @@ static int gen_recv_thread(void *arg) continue; for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) { pkt = odp_packet_from_event(

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: example/generator/odp_generator.c line 33 @@ -116,6 +126,10 @@ static args_t *args; /** Barrier to sync threads execution */ static odp_barrier_t barrier; +/** Packet processing function types */ +typedef odp_packet_t (*setup_pkt_ref_t)(odp_poo

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c line 125 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c line 88 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PRO

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -480,6 +522,11 @@ static inline int mbuf_to_pkt_zero(pktio_entry_t *pktio_entry, packet_set_ts(pkt_hdr, ts); + if (pkt_set_ol_rx(pktin_cfg, pkt_hdr, mbuf)) { Comment: OK html_url=

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -369,6 +404,12 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, packet_set_ts(pkt_hdr, ts); + if (pkt_set_ol_rx(pktin_cfg, pkt_hdr, mbuf)) { Comment: OK html_url=https:

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_ol_rx(od

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_ol_rx(od

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_ol_rx(od

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 340 @@ -908,9 +913,56 @@ static void dpdk_init_capability(pktio_entry_t *pktio_entry, PKTIO_MAX_QUEUES); capa->set_op.op.promisc_mode = 1; + ptype_cnt = rte

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -908,9 +913,56 @@ static void dpdk_init_capability(pktio_entry_t *pktio_entry, PKTIO_MAX_QUEUES); capa->set_op.op.promisc_mode = 1; + ptype_cnt = rte_eth_dev_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/odp_packet_io.c @@ -150,6 +150,8 @@ static void init_pktio_entry(pktio_entry_t *entry) init_out_queues(entry); pktio_classifier_init(entry); + + odp_pktio_config_init(&entry->s.config); Comment: Indeed. It w

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
GBalakrishna replied on github web page: platform/linux-generic/pktio/dpdk.c line 340 @@ -908,9 +913,56 @@ static void dpdk_init_capability(pktio_entry_t *pktio_entry, PKTIO_MAX_QUEUES); capa->set_op.op.promisc_mode = 1; + ptype_cnt = rte_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
GBalakrishna replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -426,6 +430,96 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, uint8_t *l3_proto_v4, + uint8

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
GBalakrishna replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -426,6 +430,96 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, uint8_t *l3_proto_v4, + uint8

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -426,6 +430,96 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, uint8_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -480,6 +522,11 @@ static inline int mbuf_to_pkt_zero(pktio_entry_t *pktio_entry, packet_set_ts(pkt_hdr, ts); + if (pkt_set_ol_rx(pktin_cfg, pkt_hdr, mbuf)) { Comment: Same

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -369,6 +404,12 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, packet_set_ts(pkt_hdr, ts); + if (pkt_set_ol_rx(pktin_cfg, pkt_hdr, mbuf)) { Comment: You could c

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -301,6 +301,40 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_L4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L4_MASK) == proto) + +static inline int pkt_set_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -908,9 +913,56 @@ static void dpdk_init_capability(pktio_entry_t *pktio_entry, PKTIO_MAX_QUEUES); capa->set_op.op.promisc_mode = 1; + ptype_cnt = rte_

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-01 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/odp_packet_io.c @@ -150,6 +150,8 @@ static void init_pktio_entry(pktio_entry_t *entry) init_out_queues(entry); pktio_classifier_init(entry); + + odp_pktio_config_init(&entry->s.config); Comment: It s