app/testpmd: add TCP flags in flow API
PATCH 1/1 app/testpmd: add TCP flags in flow API
This commit adds TCP flags support in flow API as
some drivers have SYN filter.
--- app/test-pmd/cmdline_flow.c | 9 +++++++++ 1 file changed, 9 insertions(+)
app/test-pmd/cmdline_flow.c +9 -0
@@ -152,6 +152,7 @@ enum index {ITEM_TCP ,ITEM_TCP_SRC ,ITEM_TCP_DST , +ITEM_TCP_FLAGS ,ITEM_SCTP ,ITEM_SCTP_SRC , ITEM_SCTP_DST,
@@ -531,6 +532,7 @@ static const enum index item_udp[] = {static const enum index item_tcp[] = {ITEM_TCP_SRC ,ITEM_TCP_DST , +ITEM_TCP_FLAGS ,ITEM_NEXT ,ZERO , };
@@ -1267,6 +1269,13 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, hdr.dst_port)), }, + [ITEM_TCP_FLAGS] = { + .name = "flags", + .help = "TCP flags", + .next = NEXT(item_tcp, NEXT_ENTRY(UNSIGNED), item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, + hdr.tcp_flags)), + }, [ITEM_SCTP] = { .name = "sctp", .help = "match SCTP header",
Signature · 1 line
2.5.5
Test that patch use flow API of igb NIC syn filter, it is ok.
Quoted 52 lines
-----Original Message-----
From: Xing, Beilei
Sent: Thursday, May 18, 2017 5:06 PM
To: [email protected]
Cc: [email protected]; Zhao1, Wei <[email protected]>
Subject: [PATCH] app/testpmd: add TCP flags in flow APIThis commit adds TCP flags support in flow API as some drivers have SYN filter.
Signed-off-by Beilei Xing <[email protected]>--- app/test-pmd/cmdline_flow.c | 9 +++++++++ 1 file changed, 9 insertions(+)app/test-pmd/cmdline_flow.c +9
-0@@ -152,6 +152,7 @@ enum index {ITEM_TCP ,ITEM_TCP_SRC ,ITEM_TCP_DST , +ITEM_TCP_FLAGS ,ITEM_SCTP ,ITEM_SCTP_SRC , ITEM_SCTP_DST,@@ -531,6 +532,7 @@ static const enum index item_udp[] = { static constenum index item_tcp[] = {ITEM_TCP_SRC ,ITEM_TCP_DST , +ITEM_TCP_FLAGS ,ITEM_NEXT ,ZERO , };@@ -1267,6 +1269,13 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, hdr.dst_port)), }, + [ITEM_TCP_FLAGS] = { + .name = "flags", + .help = "TCP flags", + .next =NEXT (item_tcp,NEXT_ENTRY (UNSIGNED ), item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, + hdr.tcp_flags)), + }, [ITEM_SCTP] = { .name = "sctp",.help = "match SCTP header",
--
2.5.5
18/05/2017 11:14, Zhao1, Wei:
Quoted 3 lines
Test that patch use flow API of igb NIC syn filter, it is ok.
Acked-by Wei Zhao <[email protected]>
In this case, I think the appropriate tag is Tested-by ;) Thanks
Quoted 4 lines · Beilei Xing
This commit adds TCP flags support in flow API as
some drivers have SYN filter.Signed-off-by Beilei Xing <[email protected]>
Signature · 2 lines
Adrien Mazarguil 6WIND
Thomas Monjalon
Applied18/05/2017 11:22, Adrien Mazarguil:
Quoted 7 lines · Beilei Xing
Quoted 4 lines
This commit adds TCP flags support in flow API as
some drivers have SYN filter.Signed-off-by Beilei Xing <[email protected]>Acked-by Adrien Mazarguil <[email protected]>
Applied, thanks