i40e/i40evf: Add txring_txq function to match fm10k and ixgbe
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 12 Sep 2016 21:18:40 +0000 (14:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 25 Sep 2016 05:22:17 +0000 (22:22 -0700)
commite486bdfd7c491e997f29fcdf6a4216861ab1d06a
tree70564db7ad8a6bf7c046c7b133649f6179b335cc
parent64bfd68eaecdce7b86e179fe39662340c8aed20d
i40e/i40evf: Add txring_txq function to match fm10k and ixgbe

This patch adds a txring_txq function which allows us to convert a
i40e_ring/i40evf_ring to a netdev_tx_queue structure.  This way we
can avoid having to make a multi-line function call for all the spots
that need access to this.

Change-ID: Ic063b71d8b92ea406d2c32e798c8e2b02809d65b
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h