]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/main.c
crypto/mlx5: support 1MB data-unit
[dpdk.git] / examples / l2fwd-crypto / main.c
index 04a3bdace20c833c92993cc9a03cfff00f101a66..4d9f8861af9df4e2018a6a5b053fcb8c456908b6 100644 (file)
@@ -2218,6 +2218,11 @@ check_capabilities(struct l2fwd_crypto_options *options, uint8_t cdev_id)
                                                RTE_CRYPTO_CIPHER_DATA_UNIT_LEN_4096_BYTES))
                                                ret = -1;
                                        break;
+                               case 1048576:
+                                       if (!(cap->sym.cipher.dataunit_set &
+                                               RTE_CRYPTO_CIPHER_DATA_UNIT_LEN_1_MEGABYTES))
+                                               ret = -1;
+                                       break;
                                default:
                                        ret = -1;
                                }