# Parsing Infiniband Packet with P4

**URL:** <https://forum.p4.org/t/parsing-infiniband-packet-with-p4/1130>\
**Category:** Getting Started with P4\
**Created:** [March 11, 2024, 12:36pm UTC](https://forum.p4.org/t/parsing-infiniband-packet-with-p4/1130 "2024-03-11T12:36:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![andyfingerhut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/andyfingerhut/32/17_2.png) [@andyfingerhut](https://forum.p4.org/u/andyfingerhut)\
**Post date:** [March 11, 2024, 12:43pm UTC](https://forum.p4.org/t/parsing-infiniband-packet-with-p4/1130/2 "2024-03-11T12:43:02Z")

</div>

If you want to know what Tofino 1 or 2 are capable of in detail, it is better to ask on Intel support forums about that. See this other question and its answers: [Intel(r) Tofino(tm) Family, TNA, and P4Studio questions](https://forum.p4.org/t/intel-r-tofino-tm-family-tna-and-p4studio-questions/504)

That said, I know that Tofino 1 and 2 have Ethernet ports with Ethernet MAC logic on the chip for receiving and sending Ethernet frames on those ports. If by “Infiniband switch” you mean a switch with Infiniband links, then my belief is that Infiniband links and Ethernet links are enough different that you cannot implement Infiniband links with Ethernet MAC logic.

Now if you mean “Can you implement an Ethernet switch that can parse RoCEv2 headers inside of Ethernet frames?”, then you can definitely do that: [RDMA over Converged Ethernet - Wikipedia](https://en.wikipedia.org/wiki/RDMA_over_Converged_Ethernet)

---

_[View the full topic](https://forum.p4.org/t/parsing-infiniband-packet-with-p4/1130)._
