How to enable/disable NIC Rx

Hi,

My computer has two Ethernet ports(ConnectX 5 EN) for receiving data, and each port has an open socket. The sender also has two Ethernet ports, and they are synchronizing and transmitting the same data.

Based on my understanding, when a UDP socket is open, incoming data is accumulated in the socket buffer. However, I want to be able to receive the same data from the sender at my convenience.

How can I disable and enable the receiving (Rx) of the network interface card (NIC) in my application S/W?

My O/S is Rocky Linux 9(x86_64) and NIC device driver is ‘MLNX_OFED_LINUX-5.8-2.0.3.0’.

Thank you.

Not sure your requirement.

There is no way control NIC HW TX/RX.

But there are many way control TX/RX flow on software side.

EG,

iptables, tc, ethtool -N/-U

https://netfilter.org/documentation/

https://man7.org/linux/man-pages/man8/tc.8.html

https://www.man7.org/linux/man-pages/man8/ethtool.8.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.