Disable FCS insert on TX and FCS check on RX


I am currently using the Mellanox ConnectX-5 adapter as part of a network service test solution and I am currently having an issue in setting up a particular test scenario.

I would like to transmit a frame with an invalid FCS and then receive that frame ignoring the incorrect FCS in order to verify if the network has dropped or allowed the frame through. I realise that this is not a typical use case. Currently I am using DPDK and would like to achieve this by configuring the port dynamically through my application. This functionality is not exposed in DPDK and I am happy to implement any change myself and contribute to the DPDK community if it is something that could be of interest.

Is it possible to achieve this using the ConnectX-5 adapter? If so, is there somewhere that I could find information on how to achieve this?

Thank you in advance for your help.

Best Regards,