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
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,
+
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
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
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
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,
+
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) (
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
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) (
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(
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(
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
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,
+
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,
+
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
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=
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:
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
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
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
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
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_
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
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_
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
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
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,
+
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
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
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_
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_
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_
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_
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
34 matches
Mail list logo