This commit is the same as commit 0db38d54b57a ("net/txgbe: fix to
create FDIR filter for SCTP packet").

The check for the mask of SCTP item is repeated and wrong, fix it to
make it work.

Fixes: a1851465f825 ("net/txgbe: fix to create FDIR filter for tunnel packet")
Cc: [email protected]
Signed-off-by: Jiawen Wu <[email protected]>
---
 drivers/net/txgbe/txgbe_flow.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/net/txgbe/txgbe_flow.c b/drivers/net/txgbe/txgbe_flow.c
index 7cf079a1cf..5b03a35949 100644
--- a/drivers/net/txgbe/txgbe_flow.c
+++ b/drivers/net/txgbe/txgbe_flow.c
@@ -2798,19 +2798,6 @@ txgbe_parse_fdir_filter_tunnel(const struct 
rte_flow_attr *attr,
                        rule->input.dst_port =
                                sctp_spec->hdr.dst_port;
                }
-               /* others even sctp port is not supported */
-               sctp_mask = item->mask;
-               if (sctp_mask &&
-                   (sctp_mask->hdr.src_port ||
-                    sctp_mask->hdr.dst_port ||
-                    sctp_mask->hdr.tag ||
-                    sctp_mask->hdr.cksum)) {
-                       memset(rule, 0, sizeof(struct txgbe_fdir_rule));
-                       rte_flow_error_set(error, EINVAL,
-                                          RTE_FLOW_ERROR_TYPE_ITEM,
-                                          item, "Not supported by fdir 
filter");
-                       return -rte_errno;
-               }
        }
 
        if (item->type != RTE_FLOW_ITEM_TYPE_END) {
-- 
2.48.1

Reply via email to