# In the "Raw Ethernet Programming: Basic Introduction - Code Example" post, the code uses IBV\_QPT\_RAW\_PACKET and a steering rule to filter each packet. Will this reduce the bandwidth?

**URL:** <https://forums.developer.nvidia.com/t/in-the-raw-ethernet-programming-basic-introduction-code-example-post-the-code-uses-ibv-qpt-raw-packet-and-a-steering-rule-to-filter-each-packet-will-this-reduce-the-bandwidth/206493>\
**Category:** Software And Drivers\
**Tags:** nics, ethernet\
**Created:** [March 17, 2020, 8:32pm UTC](https://forums.developer.nvidia.com/t/in-the-raw-ethernet-programming-basic-introduction-code-example-post-the-code-uses-ibv-qpt-raw-packet-and-a-steering-rule-to-filter-each-packet-will-this-reduce-the-bandwidth/206493 "2020-03-17T20:32:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toole](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@toole](https://forums.developer.nvidia.com/u/toole)\
**Post date:** [March 17, 2020, 8:32pm UTC](https://forums.developer.nvidia.com/t/in-the-raw-ethernet-programming-basic-introduction-code-example-post-the-code-uses-ibv-qpt-raw-packet-and-a-steering-rule-to-filter-each-packet-will-this-reduce-the-bandwidth/206493/1 "2020-03-17T20:32:19Z")

</div>

In my test setup, I am using two MCX515A-CCAT NICs. They are installed in two linux computers which are connected by a single cable (no switch). Previously, when I was running tests like ib\_send\_bw or ib\_write\_bw and using UD, UC, or RC transport mode, I was seeing bandwidths ~90Gbps or higher. With the example in Raw Ethernet Programming: Basic introduction, after adding some code to count packets and measure time, I am seeing bandwidths around 10 Gbps. I have been playing with different parameters such as MTU, packet size, or IBV\_SEND\_INLINE. I am wondering if the reduction in bandwidth is due to the packet filtering being done by the steering rule and the use of IBV\_QPT\_RAW\_PACKET? Or should I expect to see similar bandwidths (~90 Gbps) as in my earlier tests and the problem is one of lack of optimization of my setup?

Thanks for any help you can provide.

---

<div class="post-metadata">

**Author:** ![jianxiongz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jianxiongz](https://forums.developer.nvidia.com/u/jianxiongz)\
**Post date:** [April 13, 2020, 11:32am UTC](https://forums.developer.nvidia.com/t/in-the-raw-ethernet-programming-basic-introduction-code-example-post-the-code-uses-ibv-qpt-raw-packet-and-a-steering-rule-to-filter-each-packet-will-this-reduce-the-bandwidth/206493/2 "2020-04-13T11:32:27Z")

</div>

It may because the code you add affect the performance. Could you share the code you added or provide a demo code you used? Thanks.
