* [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow
@ 2020-01-21 11:56 chenmin.sun
2020-01-23 1:42 ` Zhang, Qi Z
2020-01-26 9:05 ` Ye Xiaolong
0 siblings, 2 replies; 3+ messages in thread
From: chenmin.sun @ 2020-01-21 11:56 UTC (permalink / raw)
To: yahui.cao, qi.z.zhang, beilei.xing; +Cc: dev, Chenmin Sun
From: Chenmin Sun <chenmin.sun@intel.com>
This patch adds the capability of matching the outer IPv4
headers for GTPU flows
Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel")
Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
---
drivers/net/ice/base/ice_fdir.c | 4 ++++
drivers/net/ice/ice_fdir_filter.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c
index 87fa0afba..2d61dbfd1 100644
--- a/drivers/net/ice/base/ice_fdir.c
+++ b/drivers/net/ice/base/ice_fdir.c
@@ -804,6 +804,10 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP:
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_ICMP:
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_OTHER:
+ ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
+ input->ip.v4.src_ip);
+ ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
+ input->ip.v4.dst_ip);
ice_pkt_insert_u32(loc, ICE_IPV4_GTPU_TEID_OFFSET,
input->gtpu_data.teid);
ice_pkt_insert_u6_qfi(loc, ICE_IPV4_GTPU_QFI_OFFSET,
diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c
index f356581d1..5aaa7abcf 100644
--- a/drivers/net/ice/ice_fdir_filter.c
+++ b/drivers/net/ice/ice_fdir_filter.c
@@ -68,9 +68,10 @@
ICE_INSET_TUN_SCTP_SRC_PORT | ICE_INSET_TUN_SCTP_DST_PORT)
#define ICE_FDIR_INSET_GTPU (\
- ICE_INSET_GTPU_TEID)
+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | ICE_INSET_GTPU_TEID)
#define ICE_FDIR_INSET_GTPU_EH (\
+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | \
ICE_INSET_GTPU_TEID | ICE_INSET_GTPU_QFI)
static struct ice_pattern_match_item ice_fdir_pattern_os[] = {
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow
2020-01-21 11:56 [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow chenmin.sun
@ 2020-01-23 1:42 ` Zhang, Qi Z
2020-01-26 9:05 ` Ye Xiaolong
1 sibling, 0 replies; 3+ messages in thread
From: Zhang, Qi Z @ 2020-01-23 1:42 UTC (permalink / raw)
To: Sun, Chenmin, Cao, Yahui, Xing, Beilei; +Cc: dev
> -----Original Message-----
> From: Sun, Chenmin <chenmin.sun@intel.com>
> Sent: Tuesday, January 21, 2020 7:57 PM
> To: Cao, Yahui <yahui.cao@intel.com>; Zhang, Qi Z <qi.z.zhang@intel.com>;
> Xing, Beilei <beilei.xing@intel.com>
> Cc: dev@dpdk.org; Sun, Chenmin <chenmin.sun@intel.com>
> Subject: [DPDK] net/ice: add outer IPv4 matching for GTPU flow
>
> From: Chenmin Sun <chenmin.sun@intel.com>
>
> This patch adds the capability of matching the outer IPv4 headers for GTPU
> flows
>
> Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel")
>
> Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow
2020-01-21 11:56 [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow chenmin.sun
2020-01-23 1:42 ` Zhang, Qi Z
@ 2020-01-26 9:05 ` Ye Xiaolong
1 sibling, 0 replies; 3+ messages in thread
From: Ye Xiaolong @ 2020-01-26 9:05 UTC (permalink / raw)
To: chenmin.sun; +Cc: yahui.cao, qi.z.zhang, beilei.xing, dev
On 01/21, chenmin.sun@intel.com wrote:
>From: Chenmin Sun <chenmin.sun@intel.com>
>
>This patch adds the capability of matching the outer IPv4
>headers for GTPU flows
>
>Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel")
>
>Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
>---
> drivers/net/ice/base/ice_fdir.c | 4 ++++
> drivers/net/ice/ice_fdir_filter.c | 3 ++-
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c
>index 87fa0afba..2d61dbfd1 100644
>--- a/drivers/net/ice/base/ice_fdir.c
>+++ b/drivers/net/ice/base/ice_fdir.c
>@@ -804,6 +804,10 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,
> case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP:
> case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_ICMP:
> case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_OTHER:
>+ ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
>+ input->ip.v4.src_ip);
>+ ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
>+ input->ip.v4.dst_ip);
> ice_pkt_insert_u32(loc, ICE_IPV4_GTPU_TEID_OFFSET,
> input->gtpu_data.teid);
> ice_pkt_insert_u6_qfi(loc, ICE_IPV4_GTPU_QFI_OFFSET,
>diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c
>index f356581d1..5aaa7abcf 100644
>--- a/drivers/net/ice/ice_fdir_filter.c
>+++ b/drivers/net/ice/ice_fdir_filter.c
>@@ -68,9 +68,10 @@
> ICE_INSET_TUN_SCTP_SRC_PORT | ICE_INSET_TUN_SCTP_DST_PORT)
>
> #define ICE_FDIR_INSET_GTPU (\
>- ICE_INSET_GTPU_TEID)
>+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | ICE_INSET_GTPU_TEID)
>
> #define ICE_FDIR_INSET_GTPU_EH (\
>+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | \
> ICE_INSET_GTPU_TEID | ICE_INSET_GTPU_QFI)
>
> static struct ice_pattern_match_item ice_fdir_pattern_os[] = {
>--
>2.17.1
>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
Applied to dpdk-next-net-intel, Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-26 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 11:56 [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow chenmin.sun
2020-01-23 1:42 ` Zhang, Qi Z
2020-01-26 9:05 ` Ye Xiaolong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).