Fix missing PLDM transport configuration

The PLDM transport option wasn't actually used. In addition,
throttle the PLDM open failure trace.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: I6c5f9151b3230171a1f050d54bbb143334577ab2
diff --git a/meson.build b/meson.build
index bbe2c33..9cfe9e1 100644
--- a/meson.build
+++ b/meson.build
@@ -43,6 +43,12 @@
 conf_data.set('PLDM', get_option('with-host-communication-protocol')=='pldm')
 conf_data.set('POWER10', get_option('power10-support').allowed())
 
+if get_option('transport-implementation') == 'mctp-demux'
+    conf_data.set('PLDM_TRANSPORT_WITH_MCTP_DEMUX', 1)
+elif get_option('transport-implementation') == 'af-mctp'
+    conf_data.set('PLDM_TRANSPORT_WITH_AF_MCTP', 1)
+endif
+
 if cxx.has_header('poll.h')
     conf_data.set('PLDM_HAS_POLL', 1)
 endif
diff --git a/pldm.cpp b/pldm.cpp
index 67c8cc4..3703a02 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -709,8 +709,11 @@
     auto rc = pldmOpen();
     if (rc)
     {
-        log<level::ERR>(
-            std::format("sendPldm: pldmOpen failed rc={}", rc).c_str());
+        if (!throttleTraces)
+        {
+            log<level::ERR>(
+                std::format("sendPldm: pldmOpen failed rc={}", rc).c_str());
+        }
         freePldmInstanceId();
         return;
     }