Commit 98f45da2 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller

vxge: NETIF_F_LLTX removal

NETIF_F_LLTX and it's usage of local transmit locks are depricated in
favor of using the netdev queue's transmit lock.  Remove the local
lock and all references to it, and use the netdev queue transmit lock
in the transmit completion handler.
Signed-off-by: default avatarJon Mason <jon.mason@exar.com>
Signed-off-by: default avatarRamkrishna Vepa <ramkrishna.vepa@exar.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7adf7d1b
This diff is collapsed.
...@@ -217,17 +217,13 @@ struct vxge_fifo_stats { ...@@ -217,17 +217,13 @@ struct vxge_fifo_stats {
}; };
struct vxge_fifo { struct vxge_fifo {
struct net_device *ndev; struct net_device *ndev;
struct pci_dev *pdev; struct pci_dev *pdev;
struct __vxge_hw_fifo *handle; struct __vxge_hw_fifo *handle;
struct netdev_queue *txq;
/* The vpath id maintained in the driver -
* 0 to 'maximum_vpaths_in_function - 1'
*/
int driver_id;
int tx_steering_type; int tx_steering_type;
int indicate_max_pkts; int indicate_max_pkts;
spinlock_t tx_lock;
/* Tx stats */ /* Tx stats */
struct vxge_fifo_stats stats; struct vxge_fifo_stats stats;
...@@ -275,7 +271,6 @@ struct vxge_ring { ...@@ -275,7 +271,6 @@ struct vxge_ring {
} ____cacheline_aligned; } ____cacheline_aligned;
struct vxge_vpath { struct vxge_vpath {
struct vxge_fifo fifo; struct vxge_fifo fifo;
struct vxge_ring ring; struct vxge_ring ring;
...@@ -443,10 +438,6 @@ int vxge_open_vpaths(struct vxgedev *vdev); ...@@ -443,10 +438,6 @@ int vxge_open_vpaths(struct vxgedev *vdev);
enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev); enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev);
void vxge_stop_tx_queue(struct vxge_fifo *fifo);
void vxge_wake_tx_queue(struct vxge_fifo *fifo);
enum vxge_hw_status vxge_add_mac_addr(struct vxgedev *vdev, enum vxge_hw_status vxge_add_mac_addr(struct vxgedev *vdev,
struct macInfo *mac); struct macInfo *mac);
......
...@@ -2466,14 +2466,12 @@ enum vxge_hw_status vxge_hw_vpath_poll_rx(struct __vxge_hw_ring *ring) ...@@ -2466,14 +2466,12 @@ enum vxge_hw_status vxge_hw_vpath_poll_rx(struct __vxge_hw_ring *ring)
* the same. * the same.
* @fifo: Handle to the fifo object used for non offload send * @fifo: Handle to the fifo object used for non offload send
* *
* The function polls the Tx for the completed descriptors and calls * The function polls the Tx for the completed descriptors and calls
* the driver via supplied completion callback. * the driver via supplied completion callback.
* *
* Returns: VXGE_HW_OK, if the polling is completed successful. * Returns: VXGE_HW_OK, if the polling is completed successful.
* VXGE_HW_COMPLETIONS_REMAIN: There are still more completed * VXGE_HW_COMPLETIONS_REMAIN: There are still more completed
* descriptors available which are yet to be processed. * descriptors available which are yet to be processed.
*
* See also: vxge_hw_vpath_poll_tx().
*/ */
enum vxge_hw_status vxge_hw_vpath_poll_tx(struct __vxge_hw_fifo *fifo, enum vxge_hw_status vxge_hw_vpath_poll_tx(struct __vxge_hw_fifo *fifo,
struct sk_buff ***skb_ptr, int nr_skb, struct sk_buff ***skb_ptr, int nr_skb,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment