#include <inttypes.h>
#include <errno.h>
#include <netinet/in.h>
-#include <sys/ioctl.h>
-#include <arpa/inet.h>
#include <rte_ether.h>
#include <rte_ethdev_driver.h>
uint16_t port_id;
struct mlx5_priv *priv = dev->data->dev_private;
- /* Configuring the VF instead of its representor. */
- if (priv->representor) {
+ /*
+ * Configuring the VF instead of its representor,
+ * need to skip the special case of HPF on Bluefield.
+ */
+ if (priv->representor && priv->representor_id >= 0) {
DRV_LOG(DEBUG, "VF represented by port %u setting primary MAC address",
dev->data->port_id);
RTE_ETH_FOREACH_DEV_SIBLING(port_id, dev->data->port_id) {