app/testpmd: fix gtp psc extention header length
PATCH 1/1 app/testpmd: fix gtp psc extention header length
Current implementation for raw encap sets the length to be in bytes, but, GTP extention header length is an 8-bit feild in 4-octet units.
This fixes the length calculation of the header length.
--- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/cmdline_flow.c +1 -1
@@ -9213,7 +9213,7 @@ cmd_set_raw_parsed(const struct buffer *in) uint8_t qfi:6;uint8_t next; } psc; - psc.len =sizeof (psc); + psc.len =sizeof (psc) /4 ; psc.pdu_type = opt->hdr.type; psc.qfi = opt->hdr.qfi; psc.next =0 ;
Signature · 1 line
2.25.1
PATCH v2 1/1 app/testpmd: fix gtp psc extension header length
Current implementation for raw encap sets the length to be in bytes, but, GTP 'extension' header length is an 8-bit field in 4-octet units.
This fixes the length calculation of the header length.
---
v2: fix spelling issues
--- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/cmdline_flow.c +1 -1
@@ -9213,7 +9213,7 @@ cmd_set_raw_parsed(const struct buffer *in) uint8_t qfi:6;uint8_t next; } psc; - psc.len =sizeof (psc); + psc.len =sizeof (psc) /4 ; psc.pdu_type = opt->hdr.type; psc.qfi = opt->hdr.qfi; psc.next =0 ;
Signature · 1 line
2.25.1
Re: [dpdk-dev] [PATCH v2] app/testpmd: fix gtp psc extension header length
Quoted 22 lines · Raslan Darawsheh
Current implementation for raw encap sets the length to be in bytes, but, GTP 'extension' header length is an 8-bit field in 4-octet units.
This fixes the length calculation of the header length.
Fixes 9213c50e36fa ("app/testpmd: support GTP PSC option in raw sets")Signed-off-by Raslan Darawsheh <[email protected]>---
v2: fix spelling issues--- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)app/test-pmd/cmdline_flow.c +0
-0
app/test-pmd/cmdline_flow.c cmd_set_raw_parsed(const struct buffer *in) · line 9219
Quoted 8 lines
app/test-pmd/cmdline_flow.c +1
-1@@ -9213,7 +9213,7 @@ cmd_set_raw_parsed(const struct buffer *in) uint8_t qfi:6;uint8_t next; } psc; - psc.len =sizeof (psc); + psc.len =sizeof (psc) /4 ; psc.pdu_type = opt->hdr.type; psc.qfi = opt->hdr.qfi; psc.next =0 ;
Hi Ori, Slava,
Can you please review this patch?
Slava Ovsiienko
Reviewed-byRE: [dpdk-dev] [PATCH v2] app/testpmd: fix gtp psc extension header length
Quoted 44 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 15, 2021 21:02
To: Raslan Darawsheh <[email protected]>; Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]; Xiaoyun Li <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix gtp psc extension header lengthQuoted 23 lines · Raslan Darawsheh
Current implementation for raw encap sets the length to be in bytes, but, GTP 'extension' header length is an 8-bit field in 4-octet units.
This fixes the length calculation of the header length.
Fixes 9213c50e36fa ("app/testpmd: support GTP PSC option in rawsets")
Cc: [email protected]
Cc: [email protected]Signed-off-by Raslan Darawsheh <[email protected]>---
v2: fix spelling issues--- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)app/test-pmd/cmdline_flow.c +0
-0app/test-pmd/cmdline_flow.c cmd_set_raw_parsed(const struct buffer *in) · line 9219
Quoted 8 lines
app/test-pmd/cmdline_flow.c +1
-1@@ -9213,7 +9213,7 @@ cmd_set_raw_parsed(const struct buffer *in) uint8_t qfi:6;uint8_t next; } psc; - psc.len =sizeof (psc); + psc.len =sizeof (psc) /4 ; psc.pdu_type = opt->hdr.type; psc.qfi = opt->hdr.qfi; psc.next =0 ;Hi Ori, Slava,
Quoted 1 line
Can you please review this patch?
Looks good to me.
Ferruh Yigit
AppliedRe: [dpdk-dev] [PATCH v2] app/testpmd: fix gtp psc extension header length
Quoted 20 lines · Slava Ovsiienko
Quoted 20 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, November 15, 2021 21:02
To: Raslan Darawsheh <[email protected]>; Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]; Xiaoyun Li <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix gtp psc extension header lengthQuoted 10 lines · Raslan Darawsheh
Current implementation for raw encap sets the length to be in bytes, but, GTP 'extension' header length is an 8-bit field in 4-octet units.
This fixes the length calculation of the header length.
Fixes 9213c50e36fa ("app/testpmd: support GTP PSC option in rawsets")
Cc: [email protected]
Cc: [email protected]
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Signed-off-by Raslan Darawsheh <[email protected]>Reviewed-by Viacheslav Ovsiienko <[email protected]>
Applied to dpdk-next-net/main, thanks.