net/mlx5: replace network to host macros
[dpdk.git] / drivers / net / mlx5 / mlx5_rxmode.c
index 4a51e47..db2e05b 100644 (file)
@@ -159,14 +159,18 @@ hash_rxq_special_flow_enable_vlan(struct hash_rxq *hash_rxq,
                                mac[0], mac[1], mac[2],
                                mac[3], mac[4], mac[5],
                        },
-                       .vlan_tag = (vlan_enabled ? htons(vlan_id) : 0),
+                       .vlan_tag = (vlan_enabled ?
+                                    rte_cpu_to_be_16(vlan_id) :
+                                    0),
                },
                .mask = {
                        .dst_mac = {
                                mask[0], mask[1], mask[2],
                                mask[3], mask[4], mask[5],
                        },
-                       .vlan_tag = (vlan_enabled ? htons(0xfff) : 0),
+                       .vlan_tag = (vlan_enabled ?
+                                    rte_cpu_to_be_16(0xfff) :
+                                    0),
                },
        };