aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/en_tx.c
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.co.il>2011-11-26 14:55:19 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-27 17:17:04 -0500
commit60d6fe99e4a507f77b63c090eb8aacb67e21687a (patch)
tree52473d54554d44fbaf2b020fd203965b934ccaeb /drivers/net/ethernet/mellanox/mlx4/en_tx.c
parent559a9f1d354b577af28f84181751820ff7d29feb (diff)
net/mlx4_en: adding loopback support
Device must be in promiscuous mode or DMAC must be same as the host MAC, or else packet will be dropped by the HW rx filtering. Signed-off-by: Amir Vadai <amirv@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_tx.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_tx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
index 3094f940b928..807c2186548c 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
@@ -679,8 +679,7 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
679 tx_desc->ctrl.vlan_tag = cpu_to_be16(vlan_tag); 679 tx_desc->ctrl.vlan_tag = cpu_to_be16(vlan_tag);
680 tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN * !!vlan_tag; 680 tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN * !!vlan_tag;
681 tx_desc->ctrl.fence_size = (real_size / 16) & 0x3f; 681 tx_desc->ctrl.fence_size = (real_size / 16) & 0x3f;
682 tx_desc->ctrl.srcrb_flags = cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE | 682 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags;
683 MLX4_WQE_CTRL_SOLICITED);
684 if (likely(skb->ip_summed == CHECKSUM_PARTIAL)) { 683 if (likely(skb->ip_summed == CHECKSUM_PARTIAL)) {
685 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM | 684 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM |
686 MLX4_WQE_CTRL_TCP_UDP_CSUM); 685 MLX4_WQE_CTRL_TCP_UDP_CSUM);