BFD packets are usually not routed. So, for a single hop sessions, it is always expected to have a TTL value of 255. If a switch receives a BFD packet destined to its IP address and mac-address with a TTL value other than 255, the following message is displayed.
<Warn:BFD.RxPktInv> MSM-A: Received BFD an invalid packet on VLAN Uplink Error:Invalid ttl value for single Hop
The above message will not be logged if the BFD packet is just traversing the switch and not destined to it.
This log message will be displayed irrepecive of the BFD configuration on the switch as the destination IP and the mac-address of the BFD packet is of the switch's. So, this will be processed by the switch CPU.
You could verify the BFD counters to confirm the reception of invalid TTL BFD packets.
# show bfd counters
Valid Tx Pkt : 0 Valid Rx Pkt : 0
Rx Invalid TTL : 7 Rx Invalid UDP SrcPort : 0
Interface Not found : 108 Rx Invalid Version : 0
Rx Invalid Length Pkt : 0 Rx Invalid Multiplier : 0
Rx Invalid Demand Mode : 0 Rx Poll & Final set : 0
Rx Invalid My Discriminator : 0 Rx Invalid Your Discriminator : 0
Rx Invalid Auth Length : 0 Rx session Not Found : 0
Auth Type Fails : 0 Authentication Fails : 0
Tx Fails : 0 Rx Discarded Pkt : 0