Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qnet and CRC checking: (2 Items)
   
Qnet and CRC checking  
I have implemented a QNet client and server application where data is passes between the two using an mqueue.  I want 
the data to be checked for corruption using a CRC so I specified the do_crc=1 and enforce_crc=1 options.  How will I be 
notified, if at all, when a crc failure happens?  Will the packet be retried?  I have read all the documentation I can 
find on crc checking over Qnet and all that it says is that the packet is dropped.  

Thanks for your insight.
Re: Qnet and CRC checking  
When a CRC error is detected, qnet will log an error in sloginfo which looks like this:

bad rxd packet - crc

and if you do this at the command line:

# cat /proc/qnetstats

you will see the L4 counter for "rxd bad L4" increase from zero.

The packet will be dropped and the remote end will time out and retransmit the packet.

Note that qnet also has the facility to hex dump the packet with the bad crc to sloginfo.  See the "dump_crc=X" qnet 
command line option.  This can help you figure out what's going on with the driver.