ixgbevf: change hw_dbg to use netdev_dbg
Instead of the home brewed macro make use of netdev_dbg same as the ixgbe driver. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
a55defd897
commit
4ad6af0237
@ -502,12 +502,9 @@ extern void ixgbevf_write_eitr(struct ixgbevf_q_vector *q_vector);
|
||||
void ixgbe_napi_add_all(struct ixgbevf_adapter *adapter);
|
||||
void ixgbe_napi_del_all(struct ixgbevf_adapter *adapter);
|
||||
|
||||
#ifdef DEBUG
|
||||
char *ixgbevf_get_hw_dev_name(struct ixgbe_hw *hw);
|
||||
#define hw_dbg(hw, format, arg...) \
|
||||
printk(KERN_DEBUG "%s: " format, ixgbevf_get_hw_dev_name(hw), ##arg)
|
||||
#else
|
||||
#define hw_dbg(hw, format, arg...) do {} while (0)
|
||||
#endif
|
||||
#define ixgbevf_hw_to_netdev(hw) \
|
||||
(((struct ixgbevf_adapter *)(hw)->back)->netdev)
|
||||
|
||||
#define hw_dbg(hw, format, arg...) \
|
||||
netdev_dbg(ixgbevf_hw_to_netdev(hw), format, ## arg)
|
||||
#endif /* _IXGBEVF_H_ */
|
||||
|
@ -2993,6 +2993,7 @@ static void ixgbevf_free_all_tx_resources(struct ixgbevf_adapter *adapter)
|
||||
**/
|
||||
int ixgbevf_setup_tx_resources(struct ixgbevf_ring *tx_ring)
|
||||
{
|
||||
struct ixgbevf_adapter *adapter = netdev_priv(tx_ring->netdev);
|
||||
int size;
|
||||
|
||||
size = sizeof(struct ixgbevf_tx_buffer) * tx_ring->count;
|
||||
|
Loading…
Reference in New Issue
Block a user