]> git.droids-corp.org - dpdk.git/commitdiff
devtools: use libabigail rule for mlx glue drivers
authorDavid Marchand <david.marchand@redhat.com>
Tue, 1 Mar 2022 16:54:04 +0000 (17:54 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 14:02:59 +0000 (15:02 +0100)
Convert the existing exception in the ABI script into a libabigail
suppression rule.

Note: file_name_regexp could be used to achieve the same with versions of
libabigail < 1.7 but soname_regexp has been preferred here since it is
already used with a recent change on common/mlx5.

While at it, fix indent from a recent change.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
devtools/check-abi.sh
devtools/libabigail.abignore

index 033f6252d00be80ff9bfb95dd6c30fddae413b8e..64e148070d03b3112ed771777771e8bd8044fa87 100755 (executable)
@@ -37,13 +37,6 @@ fi
 error=
 for dump in $(find $refdir -name "*.dump"); do
        name=$(basename $dump)
-       # skip glue drivers, example librte_pmd_mlx5_glue.dump
-       # We can't rely on a suppression rule for now:
-       # https://sourceware.org/bugzilla/show_bug.cgi?id=25480
-       if grep -qE "\<soname='[^']*_glue\.so\.[^']*'" $dump; then
-               echo "Skipped glue library $name."
-               continue
-       fi
        if grep -qE "\<librte_*.*_octeontx2" $dump; then
                echo "Skipped removed driver $name."
                continue
index 301b3dacb877b563875ef678196f64612d69a1ea..9c921c47d4c3e5c6d1d5e776a62e2690322b2924 100644 (file)
 [suppress_variable]
         name_regexp = _pmd_info$
 
+; Ignore changes on soname for mlx glue internal drivers
+[suppress_file]
+        soname_regexp = ^librte_.*mlx.*glue\.
+
 ; Ignore fields inserted in place of reserved_opts of rte_security_ipsec_sa_options
 [suppress_type]
-       name = rte_security_ipsec_sa_options
-       has_data_member_inserted_between = {offset_of(reserved_opts), end}
+        name = rte_security_ipsec_sa_options
+        has_data_member_inserted_between = {offset_of(reserved_opts), end}
 
 ; Ignore changes to rte_crypto_asym_op, asymmetric crypto API is experimental
 [suppress_type]