diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-10-11 13:17:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-11 20:21:23 -0700 |
commit | 5dad61b83840d7eceaba5bf316419be11bbb993a (patch) | |
tree | c07691dc642b796a0e3f4870426dd43eaeda020c /drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
parent | 14c68c43b7695cbcfe148bf3c513b598c2886e7d (diff) | |
download | op-kernel-dev-5dad61b83840d7eceaba5bf316419be11bbb993a.zip op-kernel-dev-5dad61b83840d7eceaba5bf316419be11bbb993a.tar.gz |
net/mlx4_en: Replace netdev parameter with priv in XDP xmit function
The struct net_device parameter was passed only to extract
struct mlx4_en_priv out of it.
Here we pass the priv parameter directly.
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4_en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index 245e9ea..8cad9b4 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h @@ -693,7 +693,7 @@ u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb, netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev); netdev_tx_t mlx4_en_xmit_frame(struct mlx4_en_rx_ring *rx_ring, struct mlx4_en_rx_alloc *frame, - struct net_device *dev, unsigned int length, + struct mlx4_en_priv *priv, unsigned int length, int tx_ind, bool *doorbell_pending); void mlx4_en_xmit_doorbell(struct mlx4_en_tx_ring *ring); bool mlx4_en_rx_recycle(struct mlx4_en_rx_ring *ring, |