]> git.droids-corp.org - dpdk.git/commitdiff
net/sfc: ignore direction attributes in transfer flows
authorIvan Malov <ivan.malov@oktetlabs.ru>
Mon, 25 Oct 2021 11:04:15 +0000 (14:04 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 2 Nov 2021 18:26:13 +0000 (19:26 +0100)
[1] has deprecated the use of direction attributes in "transfer"
flows. Ignore them during the transition period.

[1]
commit 9d2a349b388a ("ethdev: deprecate direction attributes in transfer flows")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/sfc/sfc_flow.c

index be2dfe778a0d3bc280d1d9cb4d0e0ed8583d04d6..fc74c8035e45a67cf68b020a4a84ffa7f0b86745 100644 (file)
@@ -1252,13 +1252,13 @@ sfc_flow_parse_attr(struct sfc_adapter *sa,
                                   "Groups are not supported");
                return -rte_errno;
        }
-       if (attr->egress != 0) {
+       if (attr->egress != 0 && attr->transfer == 0) {
                rte_flow_error_set(error, ENOTSUP,
                                   RTE_FLOW_ERROR_TYPE_ATTR_EGRESS, attr,
                                   "Egress is not supported");
                return -rte_errno;
        }
-       if (attr->ingress == 0) {
+       if (attr->ingress == 0 && attr->transfer == 0) {
                rte_flow_error_set(error, ENOTSUP,
                                   RTE_FLOW_ERROR_TYPE_ATTR_INGRESS, attr,
                                   "Ingress is compulsory");